I've been attempting to start working with the OTA functions in our project, but I've had some issue getting the firmware to boot with the OTA partitions added.
I'm using the 'factory+2 OTA' csv, however I've shrank the partitions just to ensure I wasn't running out of space on the device.
On boot, I get the following error:
This is with the following CSV file:load:0x40080000,len:260
entry 0x40080034
␛[0;31mE (31) esp_image: image at 0x110000 has invalid magic byte␛[0m
␛[0;33mW (32) esp_image: image at 0x110000 has invalid SPI mode 255␛[0m
␛[0;33mW (34) esp_image: image at 0x110000 has invalid SPI size 15␛[0m
␛[0;31mE (40) boot: Failed to verify app image @ 0x110000 (8194)␛[0m
user code done
I'm testing on a Sparkfun ESP32Thing, however I've gotten similar errors on the WROOM-32. Am I missing something? The docs on partitioning don't suggest much beyond what I've done as far as I can tell.# Name, Type, SubType, Offset, Size
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
nvs, data, nvs, 0x9000, 0x4000
otadata, data, ota, 0xd000, 0x2000
phy_init, data, phy, 0xf000, 0x1000
factory, 0, 0, 0x10000, 512K
ota_0, 0, ota_0, , 512K
ota_1, 0, ota_1, , 512K
Thanks