cancel
Showing results for 
Search instead for 
Did you mean: 

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

yadukrishnan_p
Associate II

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

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".

View solution in original post

4 REPLIES 4
Pavel A.
Super User

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.

 

TDK
Super User

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".

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!

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!