A simple ESP-IDF component and example project, used to flash firmware to ESP32 from…. ESP32 🙂
- To provide C++ component
- Make it easier to use and possibly extend to support more functionality in the future
Why do on earth we need to flash ESP32 from anothe ESP32, you may ask?
- Able to flash ESP32 without using computer/laptop/SBC (e.g Raspberry Pi) should be beneficial and practical, especially in the field.
- Because we can
How to use
Just look at
main.cpp, should be self-descriptive.
Especially check function of
- It loads example firmware which consists of 3 parts: bootloader, partition, and the app itself.
- The actual bins are in
main/bin2array.cmaketo load another firmware files. It essentially convert all bin files to C array.
Pins connection between host and target MCU by default is as following.
|ESP32 (host)||ESP32 (target)|
Of course, you can use other pins and specify them on
This project is not possible without this awesome component: esp-serial-flasher