cancel
Showing results for 
Search instead for 
Did you mean: 

CLion: GDB unkown error

dvp
Associate II

I’m using a NUCLEO-H533RE and CLion as my development environment. Configuring and building my STM32 project works fine, but I haven’t been able to get debugging to work. I receive the following error:

  • Error in initializing ST-LINK device.
    Reason: Unknown. Please check power and cabling to target.

Using STM3CubeProgrammer I can connect with the board and did the full chip erase.

The attached images show the current settings.

Does anyone have any idea?

3 REPLIES 3
MGogr.1
Senior

Can this be due "Debug in Low power enabled"? 

It seems that Power Saving Mode is enabled by default and cannot be unchecked in CubeMX. Or maybe it is possible, but I can't seem to find the option.


@MGogr.1 wrote:

Can this be due "Debug in Low power enabled"? 


That shouldn't prevent a connection - it's there to prevent disconnection during low-power modes.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.