The default espflash layout hands the whole 0x10000..0x400000 span to the app partition, so the storage range sat inside it. Shrink the app and reserve a dedicated storage partition above it.
391 B
391 B
| 1 | # Name, Type, SubType, Offset, Size, Flags |
|---|---|
| 2 | nvs, data, nvs, 0x9000, 0x6000, |
| 3 | phy_init, data, phy, 0xf000, 0x1000, |
| 4 | factory, app, factory, 0x10000, 0x3D0000, |
| 5 | # Zigbee persistence: the stack writes this region directly, so it must not |
| 6 | # overlap the app partition. Keep in sync with FLASH_RANGE in zigbee_stack.rs. |
| 7 | storage, data, nvs, 0x3E0000, 0x20000, |