cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug two STM32MCU in one PC?

New.Fish
Associate III

There are two STM32MCU in my application board, I need debug two MCU at the same time, my tool is TrueStudio. Is it possible to debug two MCU in one PC?

4 REPLIES 4
Uwe Bonnes
Principal II

Most debuggers know an option to specify ther debugger serial number to talk to a specific debugger.

New.Fish
Associate III

I go to "Debug Configuration" ==>"Debugger", choose "SWD" and tick "Use specific ST-Link S/N".

When I debug one MCU, it works.

But when I debug two MCU, the second MCU will come this error message

"Failed to bind to port 61234, error code -1: Result too large

Failure starting GDB server: TCP port 61234 not available."

Any good suggestion?

New.Fish
Associate III

After I try to debug two MCU in one PC, the STM32 ST-Link Utility doesn't work,

even I restart the PC, uninstall and reinstall the ST-Link Utility, it still fails.

Uwe Bonnes
Principal II

You need to specify another gdb port for the second gdb.