cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 debugger stopping before 'received monitor command' line.

SPare.17
Associate

When I try to debug using a j-link onto an STM32 chip using STM32CubeIDE, the launching of the .elf file gets stuck around 92%. The console output is attached. Also I am running on a mac if that helps.

Any help would be greatly appreciated.

Thanks in advance.

1 REPLY 1
mattias norlander
ST Employee

"GDB closed TCP/IP connection". Difficult to tell why. Do you have any firewall or anti-virus software that could interrupt the connection?

If you google the error message you will find forum threads where other people have come across this on other competitor silicon together with SEGGER probes. The solutions they propose are not really applicable in CubeIDE.

Things to try to narrow down the problem:

  • Start a new project and try to debug it on your hardware
    • If the above worked, try to create a new debug configuration for your real project
  • Try a different board
  • Try to install latest SEGGER J-Link software. Launch it externally and use connect to remote in CubeIDE debug config to see if problem is solved in later version of SEGGER SW

Let us know about your findings!