Skip to content

Commit b7e7e96

Browse files
authored
Add esp32h2 flashloader (#3)
* Add esp32h2 flashloader * Add load_address to yaml
1 parent 01d8ea0 commit b7e7e96

File tree

6 files changed

+477
-2
lines changed

6 files changed

+477
-2
lines changed

.cargo/config.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ rustflags = [
55
"-C", "link-arg=-Tld/loader.x",
66
"-C", "link-args=-Map=target/esp-loader.map",
77
"-C", "link-args=--nmagic",
8-
]
8+
]
9+
10+
[unstable]
11+
build-std = [ "core" ]

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ log = ["ufmt"]
1515
# targets
1616
esp32c3 = []
1717
esp32c6 = []
18+
esp32h2 = []
1819

1920
[profile.release]
2021
codegen-units = 1

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ fn main() {
1212
let chip = "esp32c3";
1313
#[cfg(feature = "esp32c6")]
1414
let chip = "esp32c6";
15+
#[cfg(feature = "esp32h2")]
16+
let chip = "esp32h2";
1517

1618

1719
{

0 commit comments

Comments
 (0)