User`s manual

256 digi.com Graphical User Interface
Toggle Hard Breakpoint <Alt+F2>
Toggles a hard breakpoint at the current cursor location. A hard breakpoint differs from a soft break-
point in that interrupts are disabled when the hard breakpoint is reached.
Starting with Dynamic C 9, breakpoints can be toggled in edit mode as well as in debug mode. Break-
point information is not only retained when going back and forth from edit mode to debug mode, it is
stored when a file is closed and restored when the file is reopened.
Clear All Breakpoints
<Ctrl+A>
Clears all software breakpoints.
Poll Target
<Ctrl+L>
A check mark means that Dynamic C will poll the target. The absence of a check mark means that
Dynamic C will not poll the target. Prior to Dynamic C 7.30, this option was named “Toggle Polling;”
however, now Dynamic C will not restart polling without the user explicitly requesting it.
If “Poll Target” is selected, Dynamic C sends a message to the target every three seconds and expects a
response. If no response is received, Dynamic C ends the debugging session. Several things can be
responsible for the target not replying to a polling message, such as loss of power, running in a loop
with interrupts disabled, leaving interrupts disabled long enough to disrupt the serial port A ISR, or
overwriting serial port A configuration, among other things. Polling does introduce overhead, but it is
minimal since it only occurs every three seconds. Without polling turned on, Dynamic C will only
notice an unresponsive target when the user attempts to do some other sort of debugging such as stop-
ping the target, setting a breakpoint, single stepping, setting or evaluating a watch, etc.
Reset Program
<Ctrl+F2>
Resets program to its initial state. The execution cursor is positioned at the start of the main function,
prior to any global initialization and variable initialization. (Memory locations not covered by normal
program initialization may not be reset.)
The initial state includes only the execution point (program counter), memory map registers, and the
stack pointer. The “Reset Program” command will not reload the program if the previous execution
overwrites the code segment. That is, if your code is corrupted, the reset will not be enough; you will
have to reload the program to the target.
Debug Mode
<Shift+F5>
Dynamic C 9 introduces the ability
to switch back to debug mode from
edit mode without having to
recompile the program. If the
source file has been modified while
in edit mode, a popup dialog lets
you choose whether to run the non-
modified code or to go ahead and recompile and download again.
Close Connection
If using a serial connection, disconnects the programming serial port between PC and target so that the
target serial port and the PC serial port are both accessible to other applications.
If using a TCP/IP connection, closes the socket between the PC and the RabbitLink or between the PC
and the RabbitSys-enabled board.