Partition Error on Boot
Posted: Wed Jun 20, 2018 4:32 pm
Hi guys,
I'm getting an error on startup:
If I change the nvs partition to length 0x4000, the error goes away, but the BT/Wifi stacks run out of space. If I make the partition anything other than 0x4000, I get this error. Here's my partition .csv:
The atmosphere partition is intended to be used by the application as raw SPI Flash space. I've tried turning off NVS for the Wifi and changing the nvs back to 0x4000. That works, but I don't understand why my configuration doesn't work.
Erasing the spi flash before programming has no effect, and this happens on two different boards with both ESP IDF 2.0 and the latest from git.
Any help would be greatly appreciated,
Nick
I'm getting an error on startup:
Code: Select all
I (29) boot: ESP-IDF 2nd stage bootloader
I (29) boot: compile time 12:21:48
I (30) boot: Enabling RNG early entropy source...
I (33) boot: SPI Speed : 40MHz
I (38) boot: SPI Mode : DIO
I (42) boot: SPI Flash Size : 4MB
I (46) boot: Partition Table:
I (49) boot: ## Label Usage Type ST Offset Length
I (56) boot: 0 nvs WiFi data 01 02 00009000 00040000
I (64) boot: 1 otadata OTA data 01 00 00049000 00002000
I (71) boot: 2 ota_0 OTA app 00 10 00050000 00177000
I (79) boot: 3 atmosphere OTA data 01 02 001c7000 001c2000
I (86) boot: End of partition table
E (91) boot: ota data partition invalid and no factory, will try all partitions
E (98) esp_image: image at 0x50000 has invalid magic byte
W (105) esp_image: image at 0x50000 has invalid SPI mode 12
E (111) boot: OTA app partition slot 0 is not bootable
E (117) boot: No bootable app partitions in the partition table
user code done
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
#reserved, data, data, 0x0000, 4K
#bootldr, app, boot, 0x1000, 28K
#parttbl, data, part, 0x8000, 4K
nvs, data, nvs, 0x9000, 256K
otadata, data, ota, , 0x2000
ota_0, app, ota_0, , 1500K
atmosphere, data, ota, , 1800K
Erasing the spi flash before programming has no effect, and this happens on two different boards with both ESP IDF 2.0 and the latest from git.
Any help would be greatly appreciated,
Nick