2022-09-11 03:13 PM
Hi
I compile my simple program either by Arduino or cube IDE for the STM32F103 series board
now I have a bin file and intend to put it inside my hardware through a serial link by another MCU(ESP32)
I can set the Boot1 to HIGH and reset the board by another MCU so it goes to programming mode
my question is what is the algorithm or steps to sync the MCU and make it ready to put the bin file in flash memory?
2022-09-11 04:20 PM
The algorithm is described in app note AN3155
There's a working demonstration of this for the Arduino MKR WAN 1300 github repository, where it programs a Murata module that has an STM32L078 inside.
2022-09-11 04:26 PM
https://github.com/arduino-libraries/MKRWAN/tree/master/examples/MKRWANFWUpdate_standalone