You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: espflash/src/error.rs
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -253,6 +253,12 @@ pub enum Error {
253
253
help("Make sure you set the correct flash size with the `--flash-size` option")
254
254
)]
255
255
PartitionTableDoesNotFit(FlashSize),
256
+
257
+
#[error(
258
+
"The app descriptor is not present in the project. You need to add the https://github.com/esp-rs/esp-hal/tree/main/esp-bootloader-esp-idf to your project."
Copy file name to clipboardExpand all lines: espflash/src/image_format/esp_idf.rs
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,15 @@ use std::{borrow::Cow, ffi::c_char, io::Write, iter::once, mem::size_of};
5
5
use bytemuck::{Pod,Zeroable, bytes_of, from_bytes, pod_read_unaligned};
6
6
use esp_idf_part::{AppType,DataType,Flags,Partition,PartitionTable,SubType,Type};
7
7
use log::warn;
8
-
use object::{Endianness,Object,ObjectSection, read::elf::ElfFile32asElfFile};
8
+
use miette::{IntoDiagnostic,Result};
9
+
use object::{
10
+
Endianness,
11
+
File,
12
+
Object,
13
+
ObjectSection,
14
+
ObjectSymbol,
15
+
read::elf::ElfFile32asElfFile,
16
+
};
9
17
use sha2::{Digest,Sha256};
10
18
11
19
usesuper::{Segment, ram_segments, rom_segments};
@@ -666,6 +674,19 @@ where
666
674
s
667
675
}
668
676
677
+
/// Check if the provided ELF contains the app descriptor required by [the IDF bootloader](https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/bootloader.html).
0 commit comments