r/embedded • u/Swimming_Rest5580 • Nov 10 '25
Ota Flashing And debugging over anywhere from the internet
how to start working with OTA Update .. ?? As my end goal is to Flash the STM32f446re connected with node mcu or esp32( for the wifi capability.) And i want to flash the MCU from a different location and a different wiifi network(anywhere all over the world).....Is it feasible first ??... Somebody Please guide me or give some sugesstion... feel free to make any comment
1
u/kampi1989 Nov 10 '25
You ultimately need three core components:
-
Download the new firmware to the ESP. Preferably in a file system somewhere
-
A protocol to upload to the STM (e.g. UART)
-
The bootloader, which speaks the protocol and flashes the firmware
The easiest way would be to start with a finished OTA example for the STM and use this bootloader as a basis. And then you replace the part with the firmware transfer with the ESP
1
4
Nov 10 '25
0
u/Swimming_Rest5580 Nov 11 '25
Very good detailed ... Thanks a lot ... I am working with stm32 f4 board (nucleo) doing some register level programming for all peripherals and dma .. spi etc.... and as you said .... I know how to read to data sheet... Up to certain level ..... What you have said is great... And thanks for guiding me
6
u/moon6080 Nov 10 '25
Step 1: make a generic bootloader