D E B U G G E R
11
Debugger
Debug mode allow step-by-step and realtime snapshot visualization for all program flow,
register and variables content and many more«
or emulation purposes, there is no need of the special bond-out chip for Scenix microcontrollers.
do not have to worry about the potential variations in electrical characteristics of a bond-out chip and
actual chip are used in the target application. Each Scenix microcontroller have built-in hardware
support for real-time in-circuit emulation. This built-in extra hardware defines main features of the in-
circuit emulation with Scenix microcontrollers: single hardware breakpoint or watchpoint and special debug
driver located in main program memory.
Special debug driver should be located in main program memory in Debug mode. Size of this driver depended
from the debug resources necessary. To start Debug mode, SX-DEV writes into target SX microcontroller
user code and selected debug driver (see &hapter 4 for debug driver selection). To allow debug, user program
should not be located on the following addresses:
SX28:
1FE«1FF, 78E«7FF
SX52:
1FE«1FF, F00«FFF or F7D«FFF, depended of debug driver selected
Start address and size of the debug drivers can be changed in future releases of SX-DEV software. In any case,
you will get warning, if your user code will overlap space, used by debug driver and software will not enter into
Debug mode in this case.
Enter Debug mode
To start Debug mode, choose Make/Debug Start option from the drop-down menu or use (ctrl+H) hotkey.
The following operations will be performed:
Source code assembled (proceed to the next step, only if assembled without errors and warnings)
Target SX programmed with user code and debug driver
Debug connection with target SX established
All required target SX registers content transferred into SX-DEV software
&hapter
F