0

Is there a way to update the firmware on one ESP32 from another ESP32 over USB, similar to how firmware can be updated using esptool.py?

This would essentially be like a port of whatever magic esptool.py uses over USB to update an ESP32, but instead of running through Python it would be an Arduino C++ sketch and would read the firmware to write to the other ESP32 from SPIFFS.

5
  • 1
    since ESP32 doesn't have an USB peripheral on chip, a better idea would be to that over the UART. did you research before asking? did you find something? did you try something?
    – Juraj
    Commented Oct 19, 2021 at 4:53
  • Thanks for sharing your opinion, @Juraj. However, all of the ESP32s that I am working with include a CP2102 USB to UART bridge.
    – Dan
    Commented Oct 20, 2021 at 1:43
  • 1
    can CP2102 act as USB host? no.
    – Juraj
    Commented Oct 20, 2021 at 5:48
  • That's a great point, @Juraj
    – Dan
    Commented Oct 20, 2021 at 13:58
  • 1
    you know that you can use OTA upload?
    – Juraj
    Commented Oct 22, 2021 at 5:26

2 Answers 2

0

You can use the SD card to update the firmware. Here is the example code

0

Espressif has an official library. Here's the link:

https://github.com/espressif/esp-serial-flasher

Personally, I recommend this GitHub repository named "FlashBox - Esp32 serial flasher" by Machiel80. Here's the link:

https://github.com/Machiel80/esp32-serial-flasher

it has good documentation and even a video on YouTube explaining how it's done.

Finally, the flipperZero project also has a serial flasher project on Github, the "flipperzero-esp-flasher". Here's the link:

https://github.com/0xchocolate/flipperzero-esp-flasher

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.