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

method not found in AtomicBool #29

Closed
pdgilbert opened this issue Jan 30, 2022 · 5 comments · Fixed by #30
Closed

method not found in AtomicBool #29

pdgilbert opened this issue Jan 30, 2022 · 5 comments · Fixed by #30
Labels
bug Something isn't working

Comments

@pdgilbert
Copy link

(Related to #4 and #17.)
Using shared-bus v0.2.0 I have several examples building on several device HALs but with stm32f0xx I have a problem with .compare_exchange. (Also happening with git shared-bus #0f429435.)

Compiling shared-bus v0.2.2 (https://github.com/Rahix/shared-bus#0f429435)
error[E0599]: no method named `compare_exchange` found for struct `AtomicBool` in the current scope
   --> /home/paul/.cargo/git/checkouts/shared-bus-afeeec54cdff0f33/0f42943/src/mutex.rs:208:14
    |
208 |             .compare_exchange(
    |              ^^^^^^^^^^^^^^^^ method not found in `AtomicBool`

CI with examples working on other device HALs is at https://github.com/pdgilbert/rust-integration-testing/runs/4998981227?check_suite_focus=true. (stm32f030 is a job at the bottom.)

@Rahix
Copy link
Owner

Rahix commented Jan 31, 2022

That's a thumbv6 platform, right? I think we need to use atomic-polyfill as a workaround...

@Rahix Rahix added the bug Something isn't working label Jan 31, 2022
@pdgilbert
Copy link
Author

Yes, thumbv6m-none-eabi. I suppose I would have the same problem testing on stm32l0xx-hal but I have that disabled for other reasons.

@Rahix
Copy link
Owner

Rahix commented Feb 1, 2022

Do you want to look into integrating atomic-polyfill or should I take care of it?

@pdgilbert
Copy link
Author

@Rahix could you please take care of it. (It is somewhat beyond my current state of understanding and I am already stretched pretty thin.)

@Rahix
Copy link
Owner

Rahix commented Feb 1, 2022

No problem, I'll do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants