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:
vitis -debug
: Launches the Vitis IDE in standalone debug mode.-flow embedded
: Specifies the embedded processor flow for the AI Engine processor.-os baremetal
: For baremetal OS of the AI Engine domain.-port 4352
: Specifies the xrt_server port as discussed in Step 3.-launch_script ${aie_project}/aie_app_debug_em.tcl
: Specifies the Tcl script which sets up the AI Engine debug environment.-I30000
: Defines an idle timeout in seconds, in which the server will quit if there is no response.-S
: Specifies print server properties in JSON format to stdout.-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.