|
|
||||||
|
|||||||
|
|
|||||||||||||||
|
Hardware debugging is the build-in mechanism used to stop the core from running on the target, permitting a scan of the target device. This is different than software mode debugging, because in software mode when a breakpoint is encountered, the target is still running its monitor code. The ZSP has mapped the registers to indicate the bits used to make up each register. In hardware mode debugging the ZSP map file is used to report on the state of the registers. In hardware mode debugging users can read and write any register, but they cannot access memory. Since memory cannot be accessed once a hardware breakpoint is hit, BoxView IDE uses Cache to hold desired memory ranges prior to the hardware break; once the break has hit, the IDE displays the previously captured memory data in the windows; this is useful to represent the instructions being executed. For G1, a hardware breakpoint can be defined based on:
Once the hardware break occurs, users can cycle step through their code. Note, instruction stepping is implemented in software debugging; cycle stepping is used in hardware debugging. Multple instructions may be executed per cycle; this is reflected by the value of the program counter which represents the latest fetch address. The following steps should be followed when using hardware debugging mode:
|
|||||||||||||||
|
|
|||||||||||||||
|
|||||||||||||||
|
Home
Products
Support
Downloads
Contacts
e-shop |
|||||||||||||||