Monitoring the Standalone Instrumented System

After the build completes, connect the board to your computer and power up the board. Click the Debug button to launch the application on the target. Switch to the Debug perspective. After programming the PL and launching the ELF, the program halts in main. Click on Window > Perspective.

Select Performance Analysis in the Open Perspective dialog and click OK.

Switch back to the SDx perspective.

Expand the SDDebug folder in the Project Explorer view. Right click the ELF executable and select Debug As > Launch on Hardware (SDSoC Debugger). If you are prompted to relaunch the application, click OK.

Click Yes to switch to the Debug perspective. After the application launches and halts at a breakpoint in the main function, switch back to the Performance Analysis perspective.

In the Debug view in the top left of the perspective, click on ARM Cortex-A9 MPCore #0.

Next, click on the Start Analysis button, which opens the Performance Analysis Input dialog.

Check the box to Enable APM Counters. Click the Edit button to set up APM Hardware Information.

Click the Load button in the APM Hardware Information dialog. Navigate to workspace_path/project/SDDebug/_sds/p0/ipi/zc702.sdk and select the zc702.hdf file (zc702 is the platform name used in this example - use your platform instead). Click Open, then click OK in the APM Hardware Information dialog. Finally, click OK in the Performance Analysis Input dialog.

The Analysis views open in the PL Performance tab. Click the Resume button to run the application.

After your program completes execution, click the Stop Analysis button. If prompted by the Confirm Perspective Switch dialog to stay in the Performance Analysis perspective, click No.

Scroll through the analysis plots in the lower portion of the perspective to view different performance statistics. Click in any plot area to show a bigger version in the middle of the perspective. The orange box below allows you to focus on a particular time slice of data.