Use the following steps to debug the AI Engine graph and the bare-metal PS application on the Hardware build target.
Here, Vitis builds the PS application as a separate application component. You must manually include the component in the launch configuration for debug. Follow the steps below.
- Right-click on the top-level system project and select the command.
This opens the Debug Configurations dialog box.
Important: For the hardware build, you need to create two Debug configurations. Create one configuration for the top-level system project, and a second for the bare-metal PS application. - In the Debug Configurations
dialog box, select the New Launch
Configuration (
) command to open the Debug Configurations dialog box.
The Debug Configurations screen contains the following options.
- Project: The name of the top-level system project. Includes the AI Engine graph application, the PL kernels, and the HW-Link projects.
- Hardware Server: Specifies a local connection to the board. You can configure this differently for a remotely connected board.
- Linux TCF Agent: Is disabled for bare-metal systems.
- Stop At Main and Stop At Program Entry: Enable these options to prevent the application from running before you have a chance to start debug.
- Select Apply to save and apply your changes, and select Close to close the dialog box.
- Click Debug from the
Flow Navigator
under the Hardware
heading.Tip: The tool prompts you to create two launch configurations: one for the top-level system project, and a second for the PS application.
This opens the Debug view. The PS application and AI Engine graph are running on their respective cores. The application automatically breaks at the
main()function for all the ELF files.
You can step in, step over, view variables, or
apply break points in the emulation environment. Refer to Using the Debug Environment for more information.