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

Compilation Fails #3

Open
barafael opened this issue Dec 10, 2023 · 3 comments · May be fixed by #4
Open

Compilation Fails #3

barafael opened this issue Dec 10, 2023 · 3 comments · May be fixed by #4

Comments

@barafael
Copy link

I'm getting a compile error when compiling this according to the instructions from the readme:

error[E0432]: unresolved import `core::sync::atomic::AtomicU64`
 --> /home/rafael/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-hal-0.41.2/src/interrupt.rs:1:26
  |
1 | use core::sync::atomic::{AtomicU64, Ordering};
  |                          ^^^^^^^^^
  |                          |
  |                          no `AtomicU64` in `sync::atomic`
  |                          help: a similar name exists in the module: `AtomicU32`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `esp-idf-hal` (lib) due to previous error
@HenningHolmDE
Copy link

I ran into the same error and managed to get around it by bumping some dependencies:

 [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"

Afterwards, the demo ran sucessfully on my ESP32-C3-DevKit-RUST-1. 🎉

@jasta Thanks for making this possible! ❤️

@jasta
Copy link
Owner

jasta commented Dec 15, 2023

If you throw up a PR I'm happy to merge it, otherwise I'll try to get to it next week, thanks!

@HenningHolmDE HenningHolmDE linked a pull request Dec 15, 2023 that will close this issue
@HenningHolmDE
Copy link

PR is ready.

The reason for the compilation error I found quite interesting, for reference see rust-lang/rust#117305

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

Successfully merging a pull request may close this issue.

3 participants