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.

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.