Partition for large app with OTA support
Posted: Tue Aug 18, 2020 2:51 am
Hi all,
I've been reading through the docs on partitions and I have a few question. This is what I currently have:
I'd like to have a small amount of NVS, and support OTA. My app uses both bluetooth and wifi so it's quite large. As it stands, it occupies 80% of the 1.5M i've allocated to "factory".
Here are my concerns/questions:
1) I think factory has to start at 0x10000. Is that correct?
2) Why do I get an error about alignment when I set the "ota_0" partition's offset? Does it need to be offset (aligned) to multiples of 0x10000?
3) I seem to remember reading that OTA requires no less than 2 OTA partitions. Is this true? I can't find it anywhere, I may have imagined it.
4) As I have it set up, am I taking full advantage of the available 4MB of flash?
Also, my app seems to upload and run fine, but the ESP spits out these errors/warning over serial:
Thanks!
I've been reading through the docs on partitions and I have a few question. This is what I currently have:
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x4000,
otadata, data, ota, 0xd000, 0x2000,
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 0x16E360,
ota_0, 0, ota_0, , 0x16E360,
Here are my concerns/questions:
1) I think factory has to start at 0x10000. Is that correct?
2) Why do I get an error about alignment when I set the "ota_0" partition's offset? Does it need to be offset (aligned) to multiples of 0x10000?
3) I seem to remember reading that OTA requires no less than 2 OTA partitions. Is this true? I can't find it anywhere, I may have imagined it.
4) As I have it set up, am I taking full advantage of the available 4MB of flash?
Also, my app seems to upload and run fine, but the ESP spits out these errors/warning over serial:
Code: Select all
E (110) esp_image: image at 0x180000 has invalid magic byte
E (116) boot_comm: mismatch chip ID, expected 0, found 38689
E (122) boot_comm: can't run on lower chip revision, expected 1, found 151
W (130) esp_image: image at 0x180000 has invalid SPI mode 83
E (136) boot: OTA app partition slot 0 is not bootable