There is a common practice of today’s embedded systems to perform firmware upgrade using custom procedures in order to support different communication protocols during the data transfer such as (KWP2000 etc). For that reason the solid STM bootloader is not useful and the development should proceed by creating a custom bootloader that supports the requested functionalities as well as the core procedure of writing the new firmware (transferred data) to the flash memory.

Below is the header/source files which can be used in almost all the stm32 series by just adjusting the memory addresses (Flash sectors start address) etc.. Beware that this code is the minimum required to write to the flash memory. You are strongly advised to extend it by adding fail condition handlers.



Write A Comment