cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to setup CLion environment with ST-LINK_gdbserver

nilssonm
Associate

Hi everyone,

I am a little desperate due to my problem in debugging my programs on my newly purchased STM32N6570-DK discovery board. I am running all the software on my Macbook Pro 2024 with M4 Max processor with macOS Sequoia 15.6.1.

I have been using STM32 Cube IDE version 1.19 and have successfully managed to debug a binary. It was the classic blink example. It seems to be working fine in the Cube IDE but not when I am trying to setup a debug target in my CLion environment. I have been comparing all of the parameters to the debugger between Cube IDE and CLion and tried using exact same. I have also tried using the separate CLT package for the programmer and debugger from ST.

It always results in a timeout and releasing debugger with a disconnection and the following message:

Error in initializing ST-LINK device.
Reason: Target not halted.
GDB Server stopped, exit code 9

Anyone having ideas?

0 REPLIES 0