Hi
We have ESP32-WROOM-32-U with 4MB flash memory.
Our current program takes about 700kb (.bin file)
Is it possible to have factory partition + ota + storage with 500kb-1M ?
We hqave used OTA before in different project, but now we also need some storage for camera pictures.
Can it be done with 4MB ?
EG. how to modify this example?
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, , 0x4000,
otadata, data, ota, , 0x2000,
phy_init, data, phy, , 0x1000,
factory, app, factory, , 1M,
ota_0, app, ota_0, , 1M,
ota_1, app, ota_1, , 1M,
Best,
Marek
factory partition + OTA +filesystem
Re: factory partition + OTA +filesystem
You can add spiffs partition as a storage. I think its best to start from here:
https://docs.espressif.com/projects/esp ... index.html
On this forum also is few topics about spiffs and storage static files. Here is one of them:
https://esp32.com/viewtopic.php?f=2&t=676&p=6484#p6484
Pozdrawiam
https://docs.espressif.com/projects/esp ... index.html
On this forum also is few topics about spiffs and storage static files. Here is one of them:
https://esp32.com/viewtopic.php?f=2&t=676&p=6484#p6484
Pozdrawiam
Re: factory partition + OTA +filesystem
I'm wondering.... can the partition table be changed as follows. So that you can flash an OTA as if it were factory and then switch back and forth on OTA updates? Such that ota_0 acts like the factory but also works with OTA?
Code: Select all
nvs, data, nvs, , 0x4000,
otadata, data, ota, , 0x2000,
phy_init, data, phy, , 0x1000,
ota_0, app, ota_0, 0x10000, 1M,
ota_1, app, ota_1, , 1M,
storage, data, spiffs,,1M,
Re: factory partition + OTA +filesystem
Yes @fly135 you can do that..we started with that solution but for space limitation we turned out to have a small factory which does ota operation and an ota partition where program is executed in "normal" operation.
Who is online
Users browsing this forum: No registered users and 269 guests