Silicon Laboratories F321DC manual Single-Stepping Through Firmware

Page 11

ToolStick-F321DC

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.

Rev. 0.1

11

Image 11
Contents Handling Recommendations ToolStick-F321DCToolStick Overview ContentsIDE System Requirements Getting StartedSoftware Overview Silicon Laboratories IDEKeil Demonstration C51 C Compiler Configuration WizardKeil Demonstration Toolset Keil Assembler and LinkerToolStick Terminal Keil uVision2 and uVision3 Silicon Laboratories DriversHardware Setup ToolStick C8051F321 Daughter Card Features DemoGo to Debug → Connect Connecting to the Device and Downloading FirmwareRunning and Stopping Code Execution IDE, go to Project → Open ProjectViewing and Modifying Registers Enabling and Using Watch Windows Setting and Running to Breakpoints Single-Stepping Through Firmware Go to the ToolStick → Settings menu Using ToolStick TerminalC8051F321 Pin Connections Using the C8051F321 Daughter Card as a Development PlatformAdditional Demo Example Information LocationsC8051F321 Daughter Card Schematic 10. C8051F321 Daughter Card SchematicToolStick-F321DC Contact Information