In our application, the memory is allocated to a factory(720K), OTA_0(1.7M), and OTA_1(1.7M) partitions. The app we are loading in the factory slot is designed to do basic operations and set up OTA updates from a mobile device. Our core functionality will reside in the app loaded in the larger OTA slots.
Our current method of getting the ESP32 up and going is to flash the bootloader, partition info, and factory binaries to memory. Next we do a OTA update from the mobile app. This method works and is OK for testing, but we are about to have 20K units to load. I haven't found information on how to flash the factory and OTA slots and have the ESP boot the OTA app not factory. I assume the OTA boot data could be flashed as well? Is there documentation that I'm overlooking on how to set this up?
Serial Flashing factory and OTA
Re: Serial Flashing factory and OTA
+1
I am also interested in knowing this answer, maybe someone else can comment on this?
Autom8n, did you find a way to do it?
I am also interested in knowing this answer, maybe someone else can comment on this?
Autom8n, did you find a way to do it?
Re: Serial Flashing factory and OTA
You can use esp32 flash download tool which allows you to flash few esp32 boards at the same time with all partitions you need or https://esp32.com/viewtopic.php?f=14&t= ... 890#p29890
Re: Serial Flashing factory and OTA
Thank you Chegewara!
I didn't know about this tool, very handy!
I wish it could also read flash contents into bin file, in order to get actual state of ota_data partition, etc. But as you mentioned I may be able to do everything using esptool.py
I didn't know about this tool, very handy!
I wish it could also read flash contents into bin file, in order to get actual state of ota_data partition, etc. But as you mentioned I may be able to do everything using esptool.py
Who is online
Users browsing this forum: No registered users and 130 guests