Skip to content

Commit e8a55ca

Browse files
committed
efuse: Correct block sizes for ESP32-C2, ESP32-C3, and ESP32-S3
1 parent ed5dc97 commit e8a55ca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

espflash/src/target/efuse/esp32c2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use super::EfuseField;
1111

1212
/// Total size in bytes of each block
13-
pub(crate) const BLOCK_SIZES: &[u32] = &[8, 11, 32, 32];
13+
pub(crate) const BLOCK_SIZES: &[u32] = &[12, 12, 32, 32];
1414

1515
/// Disable programming of individual eFuses
1616
pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 8);

espflash/src/target/efuse/esp32c3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use super::EfuseField;
1111

1212
/// Total size in bytes of each block
13-
pub(crate) const BLOCK_SIZES: &[u32] = &[23, 24, 32, 32, 32, 32, 32, 32, 32, 32, 32];
13+
pub(crate) const BLOCK_SIZES: &[u32] = &[24, 24, 32, 32, 32, 32, 32, 32, 32, 32, 32];
1414

1515
/// Disable programming of individual eFuses
1616
pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 32);

espflash/src/target/efuse/esp32s3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use super::EfuseField;
1111

1212
/// Total size in bytes of each block
13-
pub(crate) const BLOCK_SIZES: &[u32] = &[23, 24, 32, 32, 32, 32, 32, 32, 32, 32, 32];
13+
pub(crate) const BLOCK_SIZES: &[u32] = &[24, 24, 32, 32, 32, 32, 32, 32, 32, 32, 32];
1414

1515
/// Disable programming of individual eFuses
1616
pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 32);

0 commit comments

Comments
 (0)