4.3 Memory debugging examples
4.3.1 Directions
In this example, we will connect to the device, reading and writing data, import and export data, including data compression. Through the example of practice, you will understand the registration debugging tool better.
4.3.2 Operation
Connection device
When the connection between the PC and device changed or connected, HiReg will immediately to valid chip type. The validation is to check whether the chip type user currently selected is well matched with the device currently connected. If valid, the you can use the register tool. Otherwise you can only use memory tool. If the type is not consistent, then system to prompt the user type Detection not through, then unable to register and inside Save debugging Function, users can properly board after type to try Again.
When passed the chip type after test, register in the browser views that showed the chip of the tree structure. The user can be in register browser views, to register according to address search or by name search, also can filtering operate Users can double click or through the context menu, the specific register a single or batch adds to register in the editor. Only in the register editor register, just can read and write operation, etc. When register is added to the register in the editor, the user can click a register, the register of detail Fine descriptionInformation will be in register information describing the view shown.
Users in the register in the editor selected a register, can pass the right mouse button, single or batch read mail The value of the storage. Users in the register in the editor selected and read a register numerical, can be in editor at the bottom of cells Double-click on the,Edit the registerEdit the register value (the editor just in the PC memory editor, only Carried out the write operation, the value will beWrite toPlate end). Can also be selected the register, the editor of the 32-bit data editor, through the double-click on the way An editorRegister data value. Content is changed register data cell, and font color will not change with the different.Users can write batch or single write in the editor register cell numerical Can click on the editor on the toolbar timing read button, and set the timing read parameters (minimum for 200 milliseconds) , the editor register data value timing reads. Timing read register data, also can record to file, in setting timing reads parameters, can be set to record the file path. When a reader not is completed, the next to be automatic reading time point to, then the next read is automatically cancelled, Read the next time and arrival, judgment rule, only when a read, after the completion of automatic read The next task can only be carried out.
Choose Hireg toolbar, the choice of data derived button, can the current register editor of data export to suffix name. Data data file. Choose data import, can will have derived suffix called. Data data files import to register the editor.
Import registration data from file to register compare, press refresh, read value into register from device,if the value is different from values of file,show the register by highlighting.User can write the value into device by context menu or write all action in the toolbar.Be careful not all values can write into device(some registers can't modify).
In the register editor, click on the HiReg tool bar of the "timing read" button, and set the timing read time Interval for 300 milliseconds, data file for "C:\TestData.data",determines the start timing data after recording In the console see tool in constant refresh read data, and in the editor also corresponding refresh data value. To be recorded data files is also continuously increasing, and recording data is constantly writing.
Write after reading: after this operation, execute a read operation. Auto writes: write a new value after edit registers. Auto read: Once a register adds to the editor, read its value from the device.