Skip to main content
New.Fish
Associate III
July 6, 2020
Question

How to debug two STM32MCU in one PC?

  • July 6, 2020
  • 4 replies
  • 1062 views

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?

This topic has been closed for replies.

4 replies

Uwe Bonnes
Chief
July 6, 2020

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

New.Fish
New.FishAuthor
Associate III
July 6, 2020

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
New.FishAuthor
Associate III
July 6, 2020

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
Chief
July 6, 2020

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