
Running the demo project
UM0299
Figure 6.
Trace options
3.
To open the Trace Display, from the title bar select "Debug", then "Trace", then "View".
A blank Trace Display window appears.
A Trace Display file can display program source code in both C and Assembly formats.
Tracing runs in the background with little impact on the real-time performance of the
project.
3.8.2 Displaying
traces
1.
Go back to the file
led_blink.c
by clicking on its file tab.
2.
Set one breakpoint at the following line of code (before
while(1)
) :
PSD_reg.DATAOUT_D |= LED_OFF; // Initialize LED to OFF
To set the breakpoint, click on the green dot to the left of the line of code. The green dot
turns into a red S and the line is highlighted in red.
3. Click
"Go".
The MCU will run until it hits the breakpoint. A window displaying the disassembly code
appears, as shown in
.