Skip to main content
MDeva.1
Associate III
Jul 30, 2021 5:26 AM UTC
Solved

STMCUBE IDE can we use two debug window at time?

Hello,

I am using the NUCLEO-h745ziq board. I am using two board for SPI loopbacking.One board as master and one board as SLAVE. Can we use the two debug window at time. Because I launch the one stmcubeIDE window 1.5.1 and another from stmcubeide 1.6.1 because i have only one drive C. When i debugging the two board, one board debugging ic completed when i try to debug second borad i get the error of GDB server failed. I am unable to undestand why it is shown .Becuase my two board independantly working when i debug it one by one.Can someone please helpme?

This topic has been closed for replies.
ChahinezC
ChahinezCBest answer
Associate II
Jul 30, 2021 1:37 PM UTC

Hello @MDeva.1​,

Yes debugging programs with two or multiple boards is possible within STM32CubeIDE.

It can be realized using two ST-LINK or SEGGER J-Link probes at the same time. Please ensure that you are not using the same port number for both projects selected in the Debugger tab in the Debug Configurations dialog.

I recommend you to following the 3.6.3 section "Debug multiple boards" of the UM2609 STM32CubeIDE user guide.

Chahinez.

4 replies

Jul 30, 2021 6:44 AM UTC

Hi,

I believe the issue is that both GDB servers are using the same port (usually it is port 61234). You should try to change the "Debug configuration" -> "Debugger" -> "GDB port" for one of the 2 IDE instances (I'm not using CubeIDE, so I can't help precisely here), and maybe also specify the ST-Link serial number to use for each debug instance, so the IDE knows which debugger to use.

See the picture below for Atollic:

0693W00000D144VQAR.png

ChahinezC
ChahinezCBest answer
Associate II
Jul 30, 2021 1:37 PM UTC

Hello @MDeva.1​,

Yes debugging programs with two or multiple boards is possible within STM32CubeIDE.

It can be realized using two ST-LINK or SEGGER J-Link probes at the same time. Please ensure that you are not using the same port number for both projects selected in the Debugger tab in the Debug Configurations dialog.

I recommend you to following the 3.6.3 section "Debug multiple boards" of the UM2609 STM32CubeIDE user guide.

Chahinez.

Explorer
Jul 31, 2024 6:47 PM UTC

Don't forget to change the ports on your RTOS Kernel Awareness and Serial Wire Viewer if you're using them.

StevenF_0-1722451619699.png

 

Graduate II
Apr 22, 2025 12:59 AM UTC

Just for your information.

 

The chapter number 3.6.3 Debug multiple boards mentioned by ChahinezC is now chapter 3.1.6.3 Debug multiple boards of user manual UM2609 as of today, April-22-2025.

Menu of STM32CubeIDE is also slightly changed on STM32CubeIDE 1.18.0.
Select Run >  Run Configurations... , and you can find Run Configuraions window.

 

MultipleBoard00.pngMultilpleBoard01.png