Skip to content

Commit d32fc02

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

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Fixed
1515

1616
- Corrected eFuse BLOCK0 definitions for ESP32-C2, ESP32-C3, and ESP32-S3 (#961)
17+
- Corrected eFuse block sizes for ESP32-C2, ESP32-C3, and ESP32-S3 (#964)
1718

1819
### Removed
1920

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)