Step 5. Launch Vitis IDE and XRT Server - 2022.2 English

Vitis Tutorials: AI Engine Development

Document ID
XD100
Release Date
2022-12-01
Version
2022.2 English

From terminal 2, setup the tool path properly and issue this command to launch the XRT server and Vitis IDE.

vitis -debug -flow embedded -os baremetal -port 4352 -launch-script ${PROJECT_PATH}/aie_app_debug_em.tcl
xrt_server -I30000 -S -s tcp::4352

Command options:

  1. vitis -debug: Launches the Vitis IDE in standalone debug mode.

  2. -flow embedded: Specifies the embedded processor flow for the AI Engine processor.

  3. -os baremetal: For baremetal OS of the AI Engine domain.

  4. -port 4352: Specifies the xrt_server port as discussed in Step 3.

  5. -launch_script ${aie_project}/aie_app_debug_em.tcl: Specifies the Tcl script which sets up the AI Engine debug environment.

  6. -I30000: Defines an idle timeout in seconds, in which the server will quit if there is no response.

  7. -S: Specifies print server properties in JSON format to stdout.

  8. -s tcp::${xrt_server_port}: Defines the agent listening protocol and port. It is 4352 in example, but can be any free port.

Note: Debugger could be blocked from PS execution initially. Run PS application from simulator shell so debugger stops at first line of main function (default) from AI Engine tiles.