The device has to be configured to record the trace information
in SRAM. The allocated size for recording the program trace can be configured from this
setting. The memory can be allocated in:
-
Source code, allocating a global array
-
Linker scripts, reserving an amount of the memory map
Select the memory size to be allocated for recording the
program trace. Copy the snippet of code displayed in configuration window by clicking on
the CopyToClipBoard button and paste into your source code. Follow
the instructions given in the dialog to enable the tracing capability.
Figure 1. Trace Settings Window Through Source Code
Note: If both the linker
script and the source code is configured for trace, the linker script settings takes the
higher precedence over source code settings.
Figure 2. Trace Settings Window through Linker Script