ESP32 Master update firmware to ESP32 Slave by using .bin file in SPIFFS

tienpm
Posts: 6
Joined: Fri May 27, 2022 2:10 pm

ESP32 Master update firmware to ESP32 Slave by using .bin file in SPIFFS

Postby tienpm » Sat May 28, 2022 9:00 am

Hi everyone, I have 2 ESP32 , ESP32 1 is master and ESP32 2 is slave. I want to let the ESP32 master use .bin file in SPIFFS to update firmware for the ESP32 slave (may be via serial). If anyone has sample code for this, please let me know. Thank you very much.


tienpm
Posts: 6
Joined: Fri May 27, 2022 2:10 pm

Re: ESP32 Master update firmware to ESP32 Slave by using .bin file in SPIFFS

Postby tienpm » Sun May 29, 2022 2:11 am

Tks for your reply.

tienpm
Posts: 6
Joined: Fri May 27, 2022 2:10 pm

Re: ESP32 Master update firmware to ESP32 Slave by using .bin file in SPIFFS

Postby tienpm » Mon May 30, 2022 4:22 am

Hi sir, I have tested with 2 esp32 nodemcu , and use newest commit. But when I open idf.py monitor to ESP32 Slave ( It have updated "hello-world.bin" by ESP32 Master. But it not reset.
I have test with another file "count.bin". ESP32 Slave updated successful via Serial Flasher, but it only print 0 in Monitor ( expect is 0 1 2 3 4 5 6 7 8 ,....)
Can you help me slove this problem? Tks a lot
Attachments
Screenshot 2022-05-30 111644.png
Screenshot 2022-05-30 111644.png (108.95 KiB) Viewed 4526 times

Who is online

Users browsing this forum: No registered users and 52 guests