Single-stepping through firmware, Toolstick-f321dc – Silicon Laboratories F321DC User Manual

Page 11

Advertising
background image

ToolStick-F321DC

Rev. 0.1

11

6.7. Single-Stepping Through Firmware

The IDE supports the ability to single-step through firmware one assembly instruction at a time. The IDE reads the
Flash from the device, converts the instructions to assembly and displays them in a disassembly window. The
following steps show how to open the disassembly window and single step through firmware.
1. If there is already not a breakpoint set on line of code that increments the Num_LED_Flashes variable, set the

breakpoint using the steps described in Section 6.6.

2. Start the processor using the “Go” button and wait till it stops on the breakpoint.
3. Select View

Debug Windows Disassembly. The disassembly window will appear on the right-hand side

of the IDE, if it is not already open.

4. To execute one assembly instruction at a time, click the “Step” button on the toolbar or select the Debug

Step menu option. The highlighted line in the disassembly window indicates the next instruction to be executed.
The blue line marker in the editor window will stay on the same .C source line until all of the assembly
instructions are completed.

The disassembly window has three columns. The left column is the address of the instruction in Flash. The middle
column is the instruction in hex. The right column is the disassembled instruction. The Disassembly debug window
and the capability to single-step through firmware allows a developer to see exactly what instructions are executed
and their output.

Advertising