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:
1 parent
74b3a4a06b
commit
b0e3b6f4a0
3 files changed
+12
-5
No files matched your search
+4
-4
@@ -41,10 +41,10 @@ use crate::light;
|
||||
|
||||
/// Flash region reserved for Zigbee persistence.
|
||||
///
|
||||
/// MUST match the partition table: erase-sector aligned (4 KiB) and at least
|
||||
/// two sectors so sequential-storage has a spare for garbage collection. The
|
||||
/// address assumes the 4 MiB flash of the XIAO ESP32C6.
|
||||
pub const FLASH_RANGE: Range<u32> = 0x3f_0000..0x3f_4000;
|
||||
/// MUST match the `storage` partition in partitions.csv: erase-sector aligned
|
||||
/// (4 KiB) and at least two sectors so sequential-storage has a spare for
|
||||
/// garbage collection.
|
||||
pub const FLASH_RANGE: Range<u32> = 0x3e_0000..0x3e_4000;
|
||||
|
||||
/// Extended PAN ID of the network to join.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user