Custom STM32 Bootloader with ESP32 OTA & Secure Communication

Замовник: AI | Опубліковано: 29.09.2025

Description: I need a custom STM32 bootloader that receives firmware over-the-air from an ESP32 module. The two devices will communicate primarily over UART (SWD optional if feasible without extra hardware). Core Bootloader Requirements: Firmware verification: never boot corrupted images Automatic rollback to last known-good image on failure AES-encrypted firmware packages, end-to-end security Clean reboot into new firmware after successful update ESP32 Role: Download firmware via HTTP Store image and stream it to STM32 (UART baseline, SWD optional) Manage transfer + status updates Communication Goals (STM32 ↔ ESP32): Regular data transfer Command execution Status monitoring Extensible command set for future expansion Deliverables: Commented STM32 bootloader source (C/C++, HAL or bare-metal) ESP32 firmware for OTA + UART/SWD transfer PC-based flashing tool (Python script acceptable) for initial provisioning Documentation: memory map, update sequence, encryption key handling, rollback procedure Success Criteria: Demo of a full update cycle Forced failure scenario showing automatic rollback Encrypted transport with successful verification If you’re an embedded developer with STM32 + ESP32 + OTA experience, this is a challenging project that needs your expertise.