If the project is not built already, use this tutorial’s Makefile.emu
that has --package.enable_aie_debug
option in the packaging step. This option inserts configuration data object (CDO) that generates stop requests for the AI Engine cores, so that they stop at the reset vector. This option is required to add debug capabilities. Issue command make package_dbg
with this tutorial’s Makefile.emu
to package binaries that can be debugged.
Note: The packaged binaries that have debug capabilities require to run with debugger. Run without debugger will see execution hang due to wait for debugger invocation. Run command make package
to package back regular binaries.
cp Makefile.emu Makefile
make
make package_dbg