Skip to main content
Associate
February 14, 2025
Question

STM32cubeIDE cannot use ST-LinkV2 run/debug software

  • February 14, 2025
  • 3 replies
  • 1020 views

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

STTwo-32
Technical Moderator
February 14, 2025

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

Andrew Neil
Super User
February 14, 2025
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.
Super User
February 14, 2025

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.