fix(flash): give zigbee persistence its own partition

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.
This commit is contained in:
Matt Spencer committed 2026-10-17 16:13:47 +01:00
1 parent 74b3a4a06b
commit b0e3b6f4a0
3 files changed
+12 -5

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x6000,
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 0x3D0000,
# Zigbee persistence: the stack writes this region directly, so it must not
# overlap the app partition. Keep in sync with FLASH_RANGE in zigbee_stack.rs.
storage, data, nvs, 0x3E0000, 0x20000,
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,