2025-02-14 01:21 AM
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.
2025-02-14 01:25 AM - edited 2025-02-14 01:29 AM
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.
2025-02-14 01:26 AM
Is it a genuine ST-Link?
What is your target hardware? Give details.
How to write your question to maximize your chances to find a solution
2025-02-14 11:49 AM - edited 2025-02-14 11:49 AM
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.