cancel
Showing results for 
Search instead for 
Did you mean: 

How to flash a common bootloader on NUCLEO-G071RB

Aiswarya1
Visitor

Hi,

I am using a NUCLEO-G071RB development board. I accidentally erased the original bootloader while flashing a custom one. Is it possible to reflash or restore the built-in bootloader on the NUCLEO-G071RB development board? If so, where can I obtain the original bootloader file?

 

Thanks,

Aiswarya

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

Welcome @Aiswarya1, to the community!

It is impossible to erase the original bootloader – at least the one that was permanently stored by STMicroelectronics in the bootloader area. You can only erase a bootloader that you programmed yourself, which you may have programmed in the user flash.

Please describe what led you to believe that the original bootloader had been deleted?

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
Peter BENSCH
ST Employee

Welcome @Aiswarya1, to the community!

It is impossible to erase the original bootloader – at least the one that was permanently stored by STMicroelectronics in the bootloader area. You can only erase a bootloader that you programmed yourself, which you may have programmed in the user flash.

Please describe what led you to believe that the original bootloader had been deleted?

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.

Thank you for your response.

I have uploaded the AM32 bootloader to the NUCLEO-G071RB development board. I believe the original bootloader was erased when I flashed the AM32 bootloader. Could you please let me know how to erase the custom bootloader that I programmed myself? If I select FULL CHIP ERASE, will it erase the entire bootloader as well?

 

Thanks & Regards,

Aiswarya

Yes, when the chip is completely erased, your custom bootloader, which you previously programmed into the user flash yourself, will also be erased.

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.

If I select FULL CHIP ERASE, will it erase the original bootloader from the Nucleo - G071 board?

As mentioned, the original bootloader cannot be deleted.

So the short answer is: no.

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.

Thank you, sir, for your support.


@Aiswarya1 wrote:

will it erase the original bootloader from the Nucleo - G071 board?


The original ST bootloader is permanently built into the chip at manufacture - it is nothing to do with the board.

As @Peter BENSCH said, it can never be erased.

 

Note that this is different from Arduino - where the Arduino bootloader is a "user" bootloader, loaded during board manufacture.

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.