-
Notifications
You must be signed in to change notification settings - Fork 35
Errors compiling for ESP32 std #33
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
Comments
Hm, the error is unclear to me. It stems from this line in the https://github.com/rust-embedded/riscv/blob/498924d063b25f46c69d2888743a2f720528c927/build.rs#L22 This does not seem to be related to Btw, you do not need any special support for single-threaded bus-sharing. This means can use |
I can't see how it relates either. When I add Perhaps this issue belongs in the |
Yeah, I'd ask over in rust-embedded/riscv, maybe someone over there has an idea... Are you sure it works without embedded-hal = "0.2.3"
nb = "0.1.3"
atomic-polyfill = "0.1.6" |
It seems the problem is with atomic-polyfill. Adding it rather than shared-bus results in the same error. Bumping to newer versions doesn't solve it. |
Okay, that makes a bit more sense I guess... So maybe try asking over there if they have any idea. In the meantime: We plan to make |
It turns out the `AtomicCheckMutex` which was the reason for adding `atomic-polyfill` is currently gated behing the `cortex-m` feature. Thus we can gate the dependency behind this feature-flag to resolve issues on other platforms in the meantime. In the long run, `AtomicCheckMutex` should get its own feature-flag but for now this is the easiest solution and a non-breaking change. Ref: #31, #33
I pushed commit e873193 ("For now, only pull in |
Thanks for the update. I'm confident that should do it, at least it did in my fork. |
Hello!
I've recently taken a dive into the embedded rust world and have run across a problem. I have cloned this repo https://github.com/ivmarkov/rust-esp32-std-demo and gotten it running on my ESP32-C3-M1 using
nightly
. However, when I add this dependency I get a compilation error.I realize this library doesn't support riscv yet, however I thought since
std
is available that it would work anyway.Is this possible with a config change? My rust knowledge is very limited at this point.
The text was updated successfully, but these errors were encountered: