Esp32 build error #421
-
Im trying to use Embassy for an ESP32. As far as I'm aware the Embassy for ESP is based in the esp-rs tools. error: One of the feature flags must be provided: esp32, esp32c2, esp32c3, esp32c6, esp32h2, esp32p4, esp32s2, esp32s3,
--> /Users/bruger/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-hal-0.16.0/build.rs:36:9
|
36 | compile_error!(concat!("One of the feature flags must be provided: ", $($all, ", "),*));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
106 | / assert_unique_used_features!(
107 | | "esp32", "esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32p4", "esp32s2", "esp32s3"
108 | | );
| |_____- in this macro invocation
|
= note: this error originates in the macro `assert_used_features` which comes from the expansion of the macro `assert_unique_used_features` (in Nightly builds, run with -Z macro-backtrace for more info) I'm not sure how to fix this error message. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You need to specify the chip that you are targeting via a feature, in your case you'd need to use |
Beta Was this translation helpful? Give feedback.
You need to specify the chip that you are targeting via a feature, in your case you'd need to use
esp32
feature ofesp-hal
. I'd suggest joining our matrix channel (https://matrix.to/#/#esp-rs:matrix.org) for similar questions since this is not really related withespup