Skip to main content
Associate
July 23, 2025
Solved

STM32CubeIDE code run error and ST-LINK/V2 firmware update error

  • July 23, 2025
  • 2 replies
  • 371 views

I was trying to run a code in STM32CubeIDE v1.19.0. I have connected the MCU to my laptop via ST-LINK/V2 but when I tried running the program or updating the firmware on the ST-LINK/V2 I get the respective error messages:

yadukrishnan_p_0-1753255992662.jpeg

yadukrishnan_p_1-1753256001097.jpeg

I am new to STM32 development. 

Best answer by TDK

Could your ST-Link/V2 programmer be counterfeit?

Do you have a nucleo board or something else you could try?

2 replies

Pavel A.
Super User
July 23, 2025

Click on "Open in update mode". If the current firmware version is older than yours, proceed with update.

Then unplug and replug the USB cable and enjoy debugging.

 

Associate
August 6, 2025

Oh, I tried that... Seems like it was an issue with the ST-LINK that I purchased. As of now, I am programming the STM32 with a USB to TTL FTDI adapter. Thanks for the reply!

TDK
TDKBest answer
Super User
July 23, 2025

Could your ST-Link/V2 programmer be counterfeit?

Do you have a nucleo board or something else you could try?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate
August 6, 2025

Thanks man, I think it was the problem with the ST-LINK, not any software issue. There was definitely a connection issue. I am using a USB to TTL adapter to program the STM32 rn. Thanks!