Skip to content

Commit 06b8ca6

Browse files
playfulFencexobs
authored andcommitted
Fix flash size
1 parent 7c3f4d7 commit 06b8ca6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/properties.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ pub const FLASH_BLOCK_SIZE: u32 = 65536;
77
feature = "esp32c2",
88
feature = "esp32c3",
99
feature = "esp32c6",
10-
feature = "esp32h2",
11-
feature = "esp32p4"
10+
feature = "esp32h2"
1211
))]
1312
// Max of 16MB
1413
pub const FLASH_SIZE: u32 = 0x1000000;
@@ -17,6 +16,10 @@ pub const FLASH_SIZE: u32 = 0x1000000;
1716
// Max of 32MB
1817
pub const FLASH_SIZE: u32 = 0x2000000;
1918

19+
// Max of 64MB
20+
#[cfg(feature = "esp32p4")]
21+
pub const FLASH_SIZE: u32 = 0x4000000;
22+
2023
#[cfg(any(feature = "esp32s2", feature = "esp32s3"))]
2124
// Max of 1GB
2225
pub const FLASH_SIZE: u32 = 0x40000000;

0 commit comments

Comments
 (0)