TRACE32 cannot find COM port

Hi All,
I've been trying to enable debug with Trace32 on the Portenta H7 board.
Trace32 doesn't seem to be successful in flashing the board.
It says Flashing done though.
I tried GDB port auto detection and also tried entering the right COM port via the system-setting.cmm file.
In both cases the flashing seems to fail.
On the Trace32 it shows the message Cannot establish connection. Cannot open communication port.

I'm using a Type-C to Type-C connector.

With the same COM port I'm able to flash successfully with the Adruino 1.8.15 ide.

Please provide any suggestions.

Hi @Vin218. You can try doing a double reset to put the Portenta H7 into bootloader mode before flashing via Trace32:

  1. Press and release the reset button on the Portenta H7.
  2. Wait for the green light to come on. It does this almost immediately, but you do need to wait for it.
  3. While the green LED is still on (it only stays on for one second so you need to be quick), press and release the reset button again.
  4. You should now see the green LED pulsing, which indicates the bootloader is running. If not, repeat the process.

The board will now stay in bootloader mode until one of the following occurs:

  • A sketch is uploaded to the board.
  • The reset button is pressed.
  • The board is power cycled.

Note that the board will often have a different COM port when it is in bootloader mode than when in application mode. So make sure to select the current COM port after putting it into bootloader mode.

Hi @pert , I was trying in the boot loader mode.
And yes, I did update the COM Port number to match the change.
However, that didn't help.
I even manually changed the COM Port value from the Device manager.
It still doesn't seem to work.

I think I narrowed down the problem. Seems like gdbserver is not able to communicate over serial ports on my system. Not sure why, but that seems to be the problem.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.