Skip to main content
abaldur
Associate III
April 8, 2019
Solved

Source code for STM32 bootloader?

  • April 8, 2019
  • 15 replies
  • 7687 views

Hi all,

Is the source code of the bootloader (that is used to perform application programming over serial interface) available to download?

The AN2606 says that "The bootloader is stored in the internal boot ROM memory (system memory) of STM32 devices. It is programmed by ST during production."

Best Regards,

abaldur

This topic has been closed for replies.
Best answer by After Forever

OpenBLT (linked above) is rather robust and well-known, it supports firmware uploading over the CAN bus (one of several supported interfaces). It has its own command line tools in the "Host" directory for working with the bootloader ("Target" directory).

15 replies

ihouses ihouses
Associate III
April 23, 2019

Hello,

Thanks the hint, it was very userful. I have writen the Python protocol and is not working because in the verification I see that the bootloader actually can not write anything. My guess is because the flash is protected but I don't know where I can change this seeting in System Workbench using Stlink V2.

Any ideas what can cause the the bootloader works fine but in the verification phase the written code and the readed code are different?

BTW. I am not deleteting the flash before since this requires a reset and control the Boot0 pin, something that I can not handle thats why the only way for me is a special command that makes jump the execution code into the bootloader code.​