rtic icon indicating copy to clipboard operation
rtic copied to clipboard

rtic-monotonics v2.0.2 not compiling

Open MikeGstefan opened this issue 1 year ago • 1 comments

rtic-monotonics v2.0.2 fails to compile with this error: error[E0599]: no method namedfetch_addfound for structportable_atomic::AtomicU32in the current scope at rtic-monotonics-2.0.2\src\systick.rs:106:25 and rtic-monotonics-2.0.2\src\systick.rs:126:25

This project has the following config: ` [build] target = "thumbv6m-none-eabi"

[unstable] build-std = ["core"] `

MikeGstefan avatar Jul 08 '24 23:07 MikeGstefan

Hi @MikeGstefan

Have you enabled the feature on portable-atomic to emulate CAS instructions for thumbv6?

korken89 avatar Aug 07 '24 18:08 korken89

I just ran into this. I was able to hack around it by adding portable-atomic to my project and enabling critical-section since rtic-monotonics provides no way to enable this feature.

optlink avatar Sep 15 '24 19:09 optlink

I ran into this as well. Might be useful to add some docs for this?

robamu avatar Sep 18 '24 12:09 robamu

See https://github.com/rtic-rs/rtic/pull/977

robamu avatar Sep 18 '24 12:09 robamu