Skip to content

Commit a478f1e

Browse files
committed
Match NVM and flash prop sizes
1 parent 83fb9bd commit a478f1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

output/esp32.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ variants:
1313
- Nvm:
1414
range:
1515
start: 0
16-
end: 8388608
16+
end: 67108864
1717
is_boot_memory: true
1818
cores:
1919
- main

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub static FlashDevice: FlashDeviceDescription = FlashDeviceDescription {
166166
dev_name: [0u8; 128],
167167
dev_type: 5,
168168
dev_addr: 0x0,
169-
device_size: u32::MAX, /* Set to max, is limited by NVM size */
169+
device_size: 0x4000000, /* Max of 64MB */ // TODO change per variant?
170170
page_size: 2048,
171171
_reserved: 0,
172172
empty: 0xFF,

0 commit comments

Comments
 (0)