2026-04-04 9:15 AM
I have an stm32 board connected to a raspberry pi.
I am trying to start a remote debug session from StmCube IDE Installed on my computer and I get this error.
I haven't encountered this problem before and I don't quite understand its cause because I have configured everything correctly :
- in Cube IDE Debug Configuration I selected connect to remote GDB Server with correct host name and port 3333.
- in the pi side I created an openocd.cfg file which includes "bindto 0.0.0.0" command in order to allow connections from any ip.
2026-04-06 2:27 AM
Hello @retroBoy69, and Welcome to ST Community!
Are you using ST-Link or OpenOCD on STM32CubeIDE? If STM32CubeIDE expects an ST-Link GDB server but receives different responses, it may fail to verify the ST device and close the connection.
Best regards,
2026-04-06 5:29 AM - last edited on 2026-04-06 8:44 AM by STackPointer64
Hello @STackPointer64, thanks for your reply.
Here is my full Debug Configuration :
Any help will be appreciated.
2026-04-06 8:26 AM - edited 2026-04-06 8:27 AM
Try launching a debug session from your PC terminal by opening a command prompt and entering the following commands:
arm-none-eabi-gdb your_firmware.elf
(gdb) target remote <pi-ip>:3333
(gdb) monitor reset halt
(gdb) monitor init
(gdb) load
If this works, your OpenOCD setup is correct, and we can proceed to replicate it in STM32CubeIDE.
2026-04-21 8:44 AM
Hello @retroBoy69, have you managed to resolve the issue?