Lauterbach TRACE32 GDB Front-End Debugger for Portenta H7

4th June, 2021

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:

Correct versions of Arduino Classic, Arduino Core and bootloader.

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.

Serial Number accepted.

Ignore the Wslcome dialog when you start-up TRACE32:

Welcome dialog of 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:

Debugger stops at line 24.

Source Code missing for Libraries:

Empty lines as library source code missing.

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 :

TEMP folder while your Arduino IDE is kept open.

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

Output of Arduino CLI commands.

Some more tips:

Extra tips: