Configure your debug session
In Arm® Development Studio, you configure a debugging session by creating a debug connection to your target using the New Debug Connection wizard.
Depending on your requirements, you can configure a connection to hardware, a Linux application, or a model:
- Hardware debug connections are for configuring connections to run and debug applications directly on the hardware.
- Linux application connections are for configuring connections to debug Linux applications running on a target.
- Model connections are for configuring connections to run and debug applications directly on a CADI-compliant model.
The following example takes you through configuring a Model Connection to a Cortex®-A9 Fixed Virtual Platform (FVP), using the project you created in the previous section of this tutorial.
- From the main menu, select File > New > Model Connection.
In the Model Connection dialog box, specify the details of the connection:
- Enter a name for the debug connection, for example HelloWorld_FVP.
- Select Associate debug connection with an existing project, and select the project that you created and built in the previous section Build your project.
- Click Next.
In the Target Selection dialog box, specify the details of the target:
Select Arm FVP (Installed with Arm DS) > VE_Cortex_A9x1.
Figure 5-3 Select VE_Cortex_A9x1 model
- Click Finish.
- Select Arm FVP (Installed with Arm DS) > VE_Cortex_A9x1.
In the Edit Configuration dialog, ensure the right target is selected, the appropriate application files are specified, and the debugger knows where to start debugging from:
Under the Connection tab, ensure that Arm FVP (Installed with Arm DS) > VE_Cortex_A9x1 > Bare Metal Debug > Debug Cortex-A9 is selected.
Figure 5-4 Edit configuration Connection tab
In the Files tab, select Target Configuration > Application on host to download > Workspace.
Figure 5-5 Edit configuration Files tab
Click and expand the HelloWorld project and from the Debug folder, select
HelloWorld.axfand click OK.
Figure 5-6 Select helloworld.axf file
In the Debugger tab, select Debug from symbol.
Figure 5-7 Debug from symbol main
- Under the Connection tab, ensure that Arm FVP (Installed with Arm DS) > VE_Cortex_A9x1 > Bare Metal Debug > Debug Cortex-A9 is selected.
- Click Debug to load the application on the target, and load the debug information into the debugger.
Arm Development Studio connects to the model and displays the connection status in the Debug Control view.
Figure 5-8 Debug Control View
The application loads on the target, and stops at the
main() function, ready to run.
Figure 5-9 main () in code editor