11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

•Flashing green — Target is running under control of the debugger.•Solid red — Target is stopped at a breakpoint or because execution is paused.•Flashing red — CrossStudio is programming the application into the target.Setting a breakpointCrossStudio will run a program until it hits a breakpoint. We'll place a breakpoint onthe call to debug_printf in main.c. To set the breakpoint, Move the cursor to the linecontaining debug_printf and do one of the following:•On the Build tool bar, click the Toggle Breakpoint button — .—or—•Type F9.Alternatively, you can set a breakpoint without moving the cursor by clicking in thegutter of the line to set the breakpoint on.The gutter displays an icon on lines where the breakpoints are set. The Breakpointswindow updates to show where each breakpoint is set and whether it's set, disabled,or invalid—you can find more detailed in<strong>for</strong>mation in the Breakpoints window (page102) section. The breakpoints that you set are stored in the session file associated withthe project which means that your breakpoints are remembered if you exit and re-runCrossStudio.Starting the applicationYou can now start the program in one of these ways:•From the Debug menu, click Start Debugging.—or—•On the Build tool bar, click the Start Debugging button — .—or—28 Chapter 2 CrossStudio Tutorial

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!