Skip to content

Commit d546551

Browse files
committed
efuse: Correct block0 offset definitions for ESP32-C2, -C3, and -S3
According to both the technical reference manuals and to the esptool definitions these are all at 0x02C.
1 parent d1e1fff commit d546551

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

espflash/src/target/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,14 @@ impl Chip {
386386
pub fn block0_offset(&self) -> u32 {
387387
match self {
388388
Chip::Esp32 => 0x0,
389-
Chip::Esp32c2 => 0x35,
390-
Chip::Esp32c3 => 0x2D,
389+
Chip::Esp32c2 => 0x2C,
390+
Chip::Esp32c3 => 0x2C,
391391
Chip::Esp32c5 => 0x2C,
392392
Chip::Esp32c6 => 0x2C,
393393
Chip::Esp32h2 => 0x2C,
394394
Chip::Esp32p4 => 0x2C,
395395
Chip::Esp32s2 => 0x2C,
396-
Chip::Esp32s3 => 0x2D,
396+
Chip::Esp32s3 => 0x2C,
397397
}
398398
}
399399

0 commit comments

Comments
 (0)