2021-12-06 07:36 PM
I want to programming my STM32 MCU using OTA programming MCU is connected to SWD or UART with WIFI module for communicate but i don't know how can i do it?
2021-12-06 10:14 PM
First option is to toggle boot / reset pins using EPS8266 and then use STM's system bootloader.
Second option is to make your own bootloader. Most reliable approach would be
For custom bootloader, flash utility needs to send commands over UART to
Hypothetical example:
sending reset command 0x55 0x00
Sleep(100) - bootloader starts
preventing bootloader from loading user app 0x55 0x01
writing block of data 0x55 [addr] [length] [data bytes] [crc32]
if crc32 is not equal to calculated checksum on stm32 side, then re-send block of data
sending reset command 0x55 0x00
bootloader waits <1sec, nothing received, sector 1 have valid data, jumping to user app at sector 1.
2021-12-06 10:49 PM
STM32 BOOT method used on an Arduino board vis a Murata LoRa module with an L072/82 part.
https://github.com/arduino-libraries/MKRWAN/tree/master/examples/MKRWANFWUpdate_standalone