cancel
Showing results for 
Search instead for 
Did you mean: 

how to program STM32 MCU with another MCU through a serial link

mkeyno
Associate

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?

2 REPLIES 2

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.

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

https://github.com/arduino-libraries/MKRWAN/tree/master/examples/MKRWANFWUpdate_standalone

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