STM32 Custom Bootloader (Part 7): Wireless OTA Update Using ESP8266 and External Flash Memory
Feb 7, 2026
Build a *wireless STM32 OTA bootloader* using an ESP8266 WiFi module and W25Q external Flash memory to download and install firmware updates without a wired network connection.
In this tutorial, we continue the STM32 OTA bootloader series and implement a *WiFi-based firmware update system*. The ESP8266 connects to a WiFi network, establishes a TCP connection to the OTA server, downloads the firmware in chunks, and transfers the data to the STM32 over UART. The firmware is stored in W25Q external Flash before the update begins.
After the firmware download is complete, the application sets the OTA flag and resets the MCU. The bootloader reads the OTA image from external Flash, validates the firmware, programs it into the internal application region, and finally jumps to the updated application. This approach is especially useful for STM32 devices with limited internal Flash memory.
#STM32 #STM32Bootloader #EmbeddedSystems #Bootloader
š *Download Project Files & Full Article:* https://controllerstech.com/stm32-wireless-ota-bootloader-esp8266-external-flash/
š *STM32 Tutorials:* https://controllerstech.com/stm32-tutorials/
š *ControllersTech Home:* https://controllerstech.com/
### ā¶ļø Related Videos
1ļøā£ *OTA Update from TCP Server:* https://youtu.be/1RzCtTO1kl8
2ļøā£ *STM32 IoT with ESP8266 Playlist:* https://www.youtube.com/playlist?list=PLXv4V8GOVZB8
Show More Show Less #Science

