Page 1 of 1

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

Posted: Sun Sep 11, 2022 8:58 pm
by mkeyno
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?

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

Posted: Mon Sep 12, 2022 6:00 am
by ozcar
The serial protocol is described here: http://www.st.com/web/en/resource/techn ... 264342.pdf

I'm not sure if anybody has written exactly what you need. If not, you could maybe use something like this as a starting point: https://sourceforge.net/projects/stm32flash/