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
defmt with rtic #450
Comments
If I remember correctly, I had this issue when I used |
Apply this workaround in You'll probably have to adjust it for the |
Thank you. Both solutions worked! I had no idle function, which presumably meant that rtic was putting the CPU to sleep. Adding an idle function with a loop made it work: #[idle]
fn idle(_ctx: idle::Context) -> ! {
loop {}
} Alternatively, based of @Dirbaio's suggestion, adding the following to my init function fixed it. ctx.device.RCC.ahbenr.modify(|_, w| w.dmaen().set_bit()); I now realise that probe-run mentioned in the error that "Depending on the target, sleep modes can interfere with RTT". I was thinking of sending a PR to add some documentation about how to make this work. Do you have any thoughts about where such documentation should belong? Alternatively, more detail could be added to the error - or perhaps a link to suggestions for how to resolve the problem. |
Hi @davidlattimore, good to see that you were able to figure it out with the help of the community! Such documentation would fit well into our "Troubleshooting" section in the REAMDE: https://github.com/knurling-rs/probe-run#troubleshooting |
Additional context: knurling-rs/defmt#450
Additional context: knurling-rs/defmt#450
183: README.md: Add troubleshooting for use with RTIC r=Urhengulas a=davidlattimore Additional context: knurling-rs/defmt#450 Co-authored-by: David Lattimore <dml@google.com>
Solved by knurling-rs/probe-run#183 |
I'm not sure whether to file this under rtic or defmt, but I'm having trouble using these together.
When I do, I get this:
That's when I do
cargo run
with an stm32g071 dev board attached. Relatively minimal source directory attached:defmt_and_rtic.tar.gz
If I comment out the rtic code and uncomment the regular
#[entry]
, then it works as expected.Is it expected that these can't work together, or is there something I can do to make it work?
Thanks for defmt by the way, it's been awesome.
The text was updated successfully, but these errors were encountered: