cancel
Showing results for 
Search instead for 
Did you mean: 

How do I put the original flash bootloader back onto a device if I've erased or corrupted it?

Michael Joya
Associate II

I'm not sure how I did it, but my Blue Pill STM32F103C8T6 doesn't respond to st-info --probe any more. This has happened twice in a row with identical devices. It seems that if I Ctrl-D out of GDB (an old bad habit) the device seems to brick itself and won't respond to programming or STLINK probes. I'm using an STLINK/V2 programmer attached to the SWIO/SWCLK pins.

I can still set the BOOT0 pin to boot the system ROM bootloader and get proper responses from the STLINK/V2 programmer. So, I'm wondering where I can download the original flash bootloader and what address I'd need to use with st-flash to flash it back onto the device so that I can return to a nice wholesome flash bootloader.

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Thank you for your understanding.

Regards
/Peter

In order 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.

View solution in original post

7 REPLIES 7
Michael Joya
Associate II

I mean these are both respectable USB bootloaders but the original flash bootloader that I had was just an STLINK/V2 over SWD programmer. Do you know if that is available for download?

Uwe Bonnes
Principal III

Look on github

SSoor.1
Associate

I'm facing the same issue.

The ST-link want respond. but the code uploads over uart

AScha.3
Chief III

>I'm facing the same issue.

really ?

i didnt see any specification , what "original" bootloader he is talking about...you can tell this ?

is it arduino ???

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

No you're here with a "Me Too" issue 3 years later

The Blue-Pill board does not include an ST-LINK, you'll always get an "ST-LINK Not Found" type error with them. STM32 Cube Programmer can connect via USART/COM methods.

What "errors" specifically are you getting?

There are precompiled binaries for the code reside ON the Blue-Pill board that are called out on the pages already cited.

https://github.com/rogerclarkmelbourne/STM32duino-bootloader/tree/master/binaries

https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Flashing-Bootloader-for-BluePill-Boards

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Peter BENSCH
ST Employee

This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Thank you for your understanding.

Regards
/Peter

In order 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.