I'm try following the Embedded Rust (no_std), target to ESP32-C6.
First I try keep everything as it is and run cargo check. Everything checked successfully.
Then, I try to change the target to ESP32-C6 and try to check again. Unfortunately, it failed.
Here is the output
error[E0599]: no method named `compare_exchange` found for struct `AtomicU8` in the current scope
--> C:\Users\mymon\.cargo\registry\src\index.crates.io-6f17d22bba15001f\esp-hal-0.16.1\src\soc\mod.rs:43:14
|
42 | if MAC_OVERRIDE_STATE
| ____________-
43 | | .compare_exchange(0, 1, Ordering::Relaxed, Ordering::Relaxed)
| | -^^^^^^^^^^^^^^^^ method not found in `AtomicU8`
| |_____________|
|
For more information about this error, try `rustc --explain E0599`.
error: could not compile `esp-hal` (lib) due to previous error
Here is the Cargo.toml file:
[package]
name = "hello_world"
version = "0.1.0"
authors = ["Sergio Gasquez <sergio.gasquez@gmail.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
esp-hal = { version = "0.16.1", features = ["esp32c6"] }
esp-backtrace = { version = "0.11.0", features = [
"esp32c6",
"panic-handler",
"exception-handler",
"println",
] }
esp-println = { version = "0.9.0", features = ["esp32c6", "uart"] }
I'm try following the Embedded Rust (no_std), target to ESP32-C6. First I try keep everything as it is and run
cargo check
. Everything checked successfully. Then, I try to change the target to ESP32-C6 and try to check again. Unfortunately, it failed. Here is the outputHere is the Cargo.toml file:
And rust-toolchain.toml file: