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

Bootloader for STM32F103 and STM32F4xx micro-controllers
No special driver is required. Support for Windows, Linux and Mac Operating System
Post Reply
mkeyno
Posts: 1
Joined: Sun Sep 11, 2022 8:50 pm

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

Post 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?
ozcar
Posts: 102
Joined: Wed Apr 29, 2020 9:07 pm
Answers: 3

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

Post 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/
Post Reply

Return to “STM32 HID bootloader”