cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get STM32CubeIDE to work with ST-LINK V2 debugger.

JPesc
Associate II

Created a new project on known-good hardware and attempted to debug. Upon launch, I get this message window:

'Launching TestProject Debug' has encountered a problem.

Error in final launch sequence:

Error in initializing ST-LINK device.

Reason: (13) Unknown. Please check power and cabling to target.

If I do the same thing under IAR Embedded Workbench, it works just fine, so it isn't the debugger hardware, nor the target hardware.

I've installed STM32CubeIDE on a Windows machine and a Ubuntu machine. Same exact message.

1 REPLY 1
jovijuan
Associate II

I am getting the exact same error message:

Error in final launch sequence:

Error in initializing ST-LINK device.

Reason: (13) Unknown. Please check power and cabling to target.

Error in initializing ST-LINK device.

Reason: (13) Unknown. Please check power and cabling to target.

I am using a STLink V3 (FW version V3J4M2B3S1) and STM32CubeIDE 1.2.1

I am trying to program a STM32L052

The same debugger is working fine with different target boards.

I can connect/disconnect flash/erase the uC using ST-LINK Utility, but I cannot program or debug from STM32CubeIDE

I have not tried with a different IDE.