-
Notifications
You must be signed in to change notification settings - Fork 94
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
esp-wifi 0.3.0 does not compile for ESP32-C3, it depends on portable-atomic, and that doesnt build for RiscV #426
Comments
I was able to fix the atomic error thanks to taiki-e/portable-atomic#148, however no i get this when compiling esp-wifi 0.3.0 error[E0432]: unresolved import error[E0432]: unresolved imports |
esp-wifi releases are tied to esp-hal releases - they need to match! e.g. for 0.3.0 the C3 hal is 0.15.0: https://crates.io/crates/esp-wifi/0.3.0/dependencies additionally the way how atomics are handled in esp-hal changed at some point in time - for later HAL versions atomic emulation was removed so you need to remove this: https://github.com/makepaddev/rc_radio/blob/a04fd8eec7278f7d924d11488b25bf384c249050/.cargo/config.toml#L13-L27 |
That message about the esp32s3 is coming from ROM code, which is burned into flash at the factory - this means you have an esp32s3 board, not a esp32c3 board. Try flashing the example targetting the esp32s3. |
Sorry im mistaken, i had an S3 board plugged in, nevermind. |
Alright it works! I have a working example. Thanks. Closing. |
I can only build esp-wifi 0.1.1 for the ESP32-C3 (riscV), so this means i can't try the newer releases.
The 0.1.1 version has significant problems on ESP32-C3 with wifi connectivity, UDP packets arrive super slowly or not at all. A quick check with the C++ stack on arduino IDE show its not a hardware issue as it works perfectly there.
Trying to compile with 0.3.0 gives this error:
error: cfg(portable_atomic_unsafe_assume_single_core) does not compatible with this target;
if you need cfg(portable_atomic_unsafe_assume_single_core) support for this target,
please submit an issue at https://github.com/taiki-e/portable-atomic
--> /Users/admin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/portable-atomic-1.6.0/src/lib.rs:362:1
|
362 | / compile_error!(
363 | | "cfg(portable_atomic_unsafe_assume_single_core) does not compatible with this target;\n
364 | | if you need cfg(portable_atomic_unsafe_assume_single_core) support for this target,\n
365 | | please submit an issue at https://github.com/taiki-e/portable-atomic"
366 | | );
| |_^
The text was updated successfully, but these errors were encountered: