Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ESP32-C6 #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build]
# Uncomment the relevant target for your chip here (ESP32, ESP32-S2, ESP32-S3 or ESP32-C3)
# Uncomment the relevant target for your chip here (ESP32, ESP32-S2, ESP32-S3, ESP32-C3 or ESP32-C6)
#target = "xtensa-esp32-espidf"
#target = "xtensa-esp32s2-espidf"
#target = "xtensa-esp32s3-espidf"
target = "riscv32imc-esp-espidf"
#target = "riscv32imac-esp-espidf"
#target = "riscv32imac-esp-espidf" # for ESP32-C6, set MCU environment variable at the end of the file as well

[target.xtensa-esp32-espidf]
linker = "ldproxy"
Expand Down Expand Up @@ -35,5 +35,5 @@ rustflags = ["--cfg", "mio_unsupported_force_poll_poll", "--cfg", "espidf_time64
build-std = ["std", "panic_abort"]

[env]
ESP_IDF_VERSION = "release/v5.0"
CROSS_COMPILE = { value = ".embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/riscv32-esp-elf", relative = true }
#MCU = "esp32c6" # esp-idf build for `riscv32imac-esp-espidf` target defaults to ESP32-H2 MCU
ESP_IDF_VERSION = "release/v5.1"
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ socket2 = { git = "https://github.com/rust-lang/socket2", branch = "master" }

[dependencies]
esp-idf-sys = { version = "0.33.1", features = ["binstart"] }
esp-idf-svc = { version = "0.46.0", features = ["experimental"] }
esp-idf-hal = "0.41.2"
embedded-svc = { version = "0.25.3", features = ["experimental"] }
esp-idf-svc = { version = "0.47.3", features = ["experimental"] }
esp-idf-hal = "0.42.5"
embedded-svc = { version = "0.26.4", features = ["experimental"] }
embedded-hal = "0.2.7"
log = "0.4.17"
anyhow = "1"
Expand Down