cancel
Showing results for 
Search instead for 
Did you mean: 

STM32cubeIDE cannot use ST-LinkV2 run/debug software

JohnsonWang
Associate

When I click run to program, it pops-up an error, see attached error picture:

I checked the configure setting, it shows in the attached files.

and the IDE log: 

Log output file: C:\Users\Johnson\AppData\Local\Temp\STM32CubeProgrammer_a14788.log

ST-LINK SN : 361F0D14C216303030303032

ST-LINK FW : V2J45S7

Board : --

Voltage : 3.16V

Error: ST-LINK error (DEV_TARGET_RESET_ERR)

Encountered Error when opening C:\ST\STM32CubeIDE_1.16.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.400.202404281720\tools\bin\STM32_Programmer_CLI.exe

Error in STM32CubeProgrammer

Shutting down...

Exit.

I don't know what had happen. I can use STE32CubeProgrammer flash the firmware success. But can not debug with STM32cubeIDE.

3 REPLIES 3
STTwo-32
ST Employee

Hello @JohnsonWang 

Could you please add more details (the MCU you are using, is it an ST Board or your own design, a picture of your ST-LINK to see if you are using a clone or genuine one as mentioned in this article ,..)

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Is it a genuine ST-Link?

https://community.st.com/t5/stm32-mcus/how-to-recognize-a-genuine-st-link-v2-versus-a-cloned-one/ta-p/49471

What is your target hardware? Give details.

How to write your question to maximize your chances to find a solution

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.
Pavel A.
Evangelist III

This can happen after upgrade of CubeIDE when using a stale debug/run configuration with invalid path to STM32_Programmer_CLI.exe. Quick check: create a new debug configuration from scratch.