rtic: My project upgraded to 1.1.0, but compilation fails
My project upgraded to 1.1.0, but compilation fails most likely due to cortex-m-rtic-macros not being updated to 1.1.0 in main Cargo.toml. The root cause seems to be this commit missing (MASKS missing in macros/src/codegen/util.rs).
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (1 by maintainers)
Commits related to this issue
- led-box-firmware: workaround upstream bug This works around https://github.com/rtic-rs/cortex-m-rtic/issues/631 — committed to strawlab/strand-braid by astraw 2 years ago
Did anyone have a go with the released
v1.1.2?I propose we close this issue, but if there’s something it is easy to reopen 👍
For now we have yanked the 1.1 release until we get it properly fixed.
In case it is useful, here is a recipe to reproduce the issue:
The error I currently get is the following:
This is with rustc version 1.60.0 (7737e0b5c 2022-04-04)
We are working on a real fix, in the meantime you can try:
As seen the problem occurs only in case an interrupt with a vector index >31 is actually used (causing the over-shift in non-used code). Our tests did not cover this edge case, so it slipped by.
Thanks @Crzyrndm and @mryndzionek for the quick and prompt reporting.
/Per
I will try fixing it tomorrow then. I guess it slipped through the CI since we are testing on a fake device. I never seen this error, could be that the compiler has become more picky. You could try with an older compiler (but then again some other stuff might fail (at least on stable.)
New version coming up shortly (maybe already released).
Please report back so we know if that solved the issue. /Per