Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions espflash/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ pub enum Error {
/// Key is not in the expected section
#[error("Misplaced key, check your configuration file. Key: {0}")]
MisplacedKey(String),

/// Specified eFuse block does not exist
#[error("specified eFuse block does not exist: {0}")]
InvalidEfuseBlock(u8),
}

#[cfg(feature = "serialport")]
Expand Down
25 changes: 21 additions & 4 deletions espflash/src/target/efuse/esp32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,32 @@
//!
//! This file was automatically generated, please do not edit it manually!
//!
//! Generated: 2025-06-25 11:06
//! Generated: 2025-11-19 16:57
//! Version: 369d2d860d34e777c0f7d545a7dfc3c4

#![allow(unused)]

use super::EfuseField;
use super::{EfuseBlock, EfuseField};

/// Total size in bytes of each block
pub(crate) const BLOCK_SIZES: &[u32] = &[28, 32, 32, 32];
/// All eFuse blocks available on this device.
pub(crate) const BLOCKS: &[EfuseBlock] = &[
EfuseBlock {
length: 7u8,
read_address: 1073061888u32,
},
EfuseBlock {
length: 8u8,
read_address: 1073061944u32,
},
EfuseBlock {
length: 8u8,
read_address: 1073061976u32,
},
EfuseBlock {
length: 8u8,
read_address: 1073062008u32,
},
];

/// Efuse write disable mask
pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 16);
Expand Down
25 changes: 21 additions & 4 deletions espflash/src/target/efuse/esp32c2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,32 @@
//!
//! This file was automatically generated, please do not edit it manually!
//!
//! Generated: 2025-06-26 09:47
//! Generated: 2025-11-19 16:57
//! Version: 897499b0349a608b895d467abbcf006b

#![allow(unused)]

use super::EfuseField;
use super::{EfuseBlock, EfuseField};

/// Total size in bytes of each block
pub(crate) const BLOCK_SIZES: &[u32] = &[8, 11, 32, 32];
/// All eFuse blocks available on this device.
pub(crate) const BLOCKS: &[EfuseBlock] = &[
EfuseBlock {
length: 2u8,
read_address: 1610647596u32,
},
EfuseBlock {
length: 3u8,
read_address: 1610647604u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647616u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647648u32,
},
];

/// Disable programming of individual eFuses
pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 8);
Expand Down
53 changes: 49 additions & 4 deletions espflash/src/target/efuse/esp32c3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,60 @@
//!
//! This file was automatically generated, please do not edit it manually!
//!
//! Generated: 2025-06-26 09:47
//! Generated: 2025-11-19 16:57
//! Version: 4622cf9245401eca0eb1df8122449a6d

#![allow(unused)]

use super::EfuseField;
use super::{EfuseBlock, EfuseField};

/// Total size in bytes of each block
pub(crate) const BLOCK_SIZES: &[u32] = &[23, 24, 32, 32, 32, 32, 32, 32, 32, 32, 32];
/// All eFuse blocks available on this device.
pub(crate) const BLOCKS: &[EfuseBlock] = &[
EfuseBlock {
length: 6u8,
read_address: 1610647596u32,
},
EfuseBlock {
length: 6u8,
read_address: 1610647620u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647644u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647676u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647708u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647740u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647772u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647804u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647836u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647868u32,
},
EfuseBlock {
length: 8u8,
read_address: 1610647900u32,
},
];

/// Disable programming of individual eFuses
pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 32);
Expand Down
53 changes: 49 additions & 4 deletions espflash/src/target/efuse/esp32c5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,60 @@
//!
//! This file was automatically generated, please do not edit it manually!
//!
//! Generated: 2025-06-26 09:47
//! Generated: 2025-11-19 16:57
//! Version: 31c7fe3f5f4e0a55b178a57126c0aca7

#![allow(unused)]

use super::EfuseField;
use super::{EfuseBlock, EfuseField};

/// Total size in bytes of each block
pub(crate) const BLOCK_SIZES: &[u32] = &[24, 24, 32, 32, 32, 32, 32, 32, 32, 32, 32];
/// All eFuse blocks available on this device.
pub(crate) const BLOCKS: &[EfuseBlock] = &[
EfuseBlock {
length: 6u8,
read_address: 1611352108u32,
},
EfuseBlock {
length: 6u8,
read_address: 1611352132u32,
},
EfuseBlock {
length: 8u8,
read_address: 1611352156u32,
},
EfuseBlock {
length: 8u8,
read_address: 1611352188u32,
},
EfuseBlock {
length: 8u8,
read_address: 1611352220u32,
},
EfuseBlock {
length: 8u8,
read_address: 1611352252u32,
},
EfuseBlock {
length: 8u8,
read_address: 1611352284u32,
},
EfuseBlock {
length: 8u8,
read_address: 1611352316u32,
},
EfuseBlock {
length: 8u8,
read_address: 1611352348u32,
},
EfuseBlock {
length: 8u8,
read_address: 1611352380u32,
},
EfuseBlock {
length: 8u8,
read_address: 1611352412u32,
},
];

/// Disable programming of individual eFuses
pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 32);
Expand Down
Loading
Loading