Skip to main content
JPesc
Associate II
November 19, 2019
Question

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

  • November 19, 2019
  • 1 reply
  • 628 views

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.

This topic has been closed for replies.

1 reply

jovijuan
Associate III
February 17, 2020

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.