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

Issue with critical #7

Open
cchance27 opened this issue Apr 5, 2024 · 1 comment
Open

Issue with critical #7

cchance27 opened this issue Apr 5, 2024 · 1 comment

Comments

@cchance27
Copy link

When i try to import this as a dependency to play with i get the error below, just wondering if you had any tips as i'm new to ESP programming and this library.

Compiling critical-section v1.1.2
error: You must set at most one of these Cargo features: restore-state-none, restore-state-bool, restore-state-u8, restore-state-u16, restore-state-u32, restore-state-u64
  --> /Users/cc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/critical-section-1.1.2/src/lib.rs:64:1
   |
64 | compile_error!("You must set at most one of these Cargo features: restore-state-none, restore-state-bool, restore-state-u8, restore-state-u16, restore-state-u32, restore-state-u64..."

i'm importing it like...

esp-openthread = { git = "https://github.com/esp-rs/esp-openthread.git", branch = "update-esp-hal-0.16.1", features = ["esp32h2"] }
@bjoernQ
Copy link
Collaborator

bjoernQ commented Apr 8, 2024

You will need the HAL and some other dependencies, too:

e.g.

hal = { package = "esp32c6-hal", version = "0.8.0" }
esp-backtrace = { version = "0.10.0", features = ["esp32c6", "panic-handler", "exception-handler", "print-uart"] }
esp-println = { version = "0.8.0", features = ["esp32c6", "log"] }
heapless = "0.8.0"
no-std-net = "0.6.0"
critical-section = "1.1.0"
esp-ieee802154 = { git = "https://github.com/esp-rs/esp-ieee802154.git", rev = "bfe32f6d2e2251050011a4134ba82d6316cbfa95", features = ["esp32c6"] }

There is a PR to get this to use the currently released HAL here: https://github.com/esp-rs/esp-openthread/pull/6/files#diff-685817f10569a9c56a23757a25209b7ba447bc9c7541e8a9c5fb39bef4e8f64d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants