Debugging with Trace

Once you have created a project and built an object file, follow these steps to start to debug your code using the AVR ONE!:

1. Click "Run" on the menu, and select "Open Debug Dialog"

2. Select "AVR32 Application" and then "New Launch Configuration"

3. Verify that the correct Target is selected.

4. On the Trace tab, check "Enable trace", and select Trace method to "Auxiliary Trace"

5. Click "Debug" to start the debug session.

6. Right click on the margin next to a line near the top of the program code, and select "Add tracepoint"

7. Select "Program trace" and "Start trace"

8. Similarly add a "Stop trace" tracepoint further down in the program code.

9. Start program execution

10. Trace data will be displayed in the "Trace Data" view. Selecting a frame in this view will display the corresponding source code statement in the code editor, as well as showing the disassembly in the right hand panel.