Setting up the Debug Configuration
To set up the debug configuration:
-
In the Project Explorer view click on the ELF (.elf) file in the Debug
folder in the lab6 project and in the toolbar click on the
Debug icon or use the Debug icon pull-down menu
to select Debug As > Launch on Hardware (SDSoC Debugger). Alternatively, right-click the project and select Debug As > Launch on Hardware (SDSoC Debugger). The Confirm Perspective Switch dialog box appears.
Important: Ensure that the board is switched on before debugging the project.
-
Click Yes to switch to the debug perspective.
You are now in the Debug Perspective of the SDx IDE. Note that the debugger resets the system, programs and initializes the device, then breaks at the
mainfunction. The source code is shown in the center panel, local variables in the top right corner panel and the SDx log at the bottom right panel shows the Debug configuration log. -
Before you start running your application you need to connect a serial terminal to the
board so you can see the output from your program. In this example, we are using the SDSoC
environment Terminal view invoked by Window > Show View > Other and selecting Terminal > Terminal. Click the Terminal tab
near
the bottom of the Debug perspective and then click
the Connect icon
to connect the terminal to the board (which should be
powered up already). Use the following settings: (Connection Type:
Serial, Port: COM<n>, Baud Rate: 115200
baud).