ULINK2 User's Guide

Debug

The Debug section controls caching, downloading, and device resetting options applied each time a debugging session is started.

Debug Options

Cache Options
improve the performance of the µVision Debugger by caching target memory areas in the PC memory. By default, these options are enabled to get maximum performance.

  • Cache Code informs the debugger that the downloaded program code will not change. When this option is set, µVision never reads the program code from the target system. Disable this option if the application includes self-modifying code or if the program code might get overwritten.
  • Cache Memory determines whether memory displays are updated during a program stop. When this option is set, the debugger does not update memory displays until the next single step, procedure step, or go command executes. Disable this option to see the actual memory content (for example, the content of memory mapped peripherals) when the debugger is halted.

Download Options
compare and prepare the code downloaded to target for debugging.

  • Verify Code Download compares the content of the target memory with the application program loaded in the µVision Debugger. Enable this option to ensure program correlation between the target system and µVision.
  • Download to Flash downloads code to all memory regions. When disabled, the debugger does not download code to the memory address ranges defined in the dialog Flash Download Setup. Enable the option if the application is loaded into RAM and the Flash algorithm is defined for the same address range. By default, this option is disabled. Refer to the knowledgebase article µVision Debugger: Error 57:Illegal Address in Debugger Output Window.

Misc Options

  • Use Reset at Startup issues a CPU Reset to the target when the debugger starts. When disabled, the debugger just stops the CPU at the currently executed instruction. This allows to start a debugging session and debug a program that is currently executing on target. Refer to Start Sequence for more information.