3.6 Register debugging examples
3.6.1 Explain
In this example, we will connect board, and register, speaking, reading and writing data operation and derivation and contrast operation. Through the example of practice, the user can better control register debugging tool use.
3.6.1 Operate
When the PC HiReg tools and board successfully established connection, HiReg will immediately to chip type matching The detection is contrast users in the tool platform choice of the current chip types and user actual things Principle of the connection of the single coretype. If the type is consistent, then pass the test, user can continue to register and memory data debugging. If the type is not consistent, then system to prompt the user type detection not through, then unable to register and inside Save debuggingFunction, users can proper 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 add 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£©the editor register data value timing read.Timing read register data, also can record to file, in setting timing read parameters, can be set To record the file path.When a read 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 readThe 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 register data from file to register compare, press refresh,read value into register form device,if the value is diffrent from velues of file,show the register by highlight.User can write value into device by contect meun or write all action in the toolbar.Be carefull not all value 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", determine 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 are also continuously and recording data is constantly writing. |