The goal for this project is to debug code written for the Portenta H7. Firstly study the tutorial: Lauterbach TRACE32 GDB Front-End Debugger for Portenta H7.
Check carefully that you have the most current versions of everything:
Work through the steps outlined in the tutorial. If you are unable to see the Serial Number of your Portenta Board in the Board Info dialog try the same steps in the Classic Arduino IDE.
Ignore the Wslcome dialog when you start-up TRACE32:
When running the first demo under "ELF File Selection" access to the source code for the Arduino Core for your platform and the mbed-os are not available:
Source Code missing for Libraries:
If you wish to step through the Arduino Core source code for your platform compile and upload T32ThreadDebug.ino in the Arduino IDE: Do not close the Arduino IDE just open TRACE32 :
Another method of avoiding the Arduino IDE automatic clear out of files is to use Arduino-CLI commands for compile and upload:
If you try the Arduino-CLI command for debug you will see an error message "debugging not supported for board arduino:mbed_portenta:envie_m7". However you are now ready to use TRACE32 with the file portenta_blink.ino.elf
Some more tips: