-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add support for defmt 0.3 #47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me, but there is a failure in build.
This is how I'm solving it in |
That's a good idea, I updated it to use a range.
I cannot reproduce the same failure on Linux, and unfortunately I don't have a Windows install easily accessible right now. Are you able to help me out with this? |
please ping me once CI is fixed |
Somebody on matrix pointed out the Windows build is not building for an embedded target, which is not supported by defmt: knurling-rs/defmt#463 I fixed the failure by removing that build for Windows 😅. @jonas-schievink CI is fixed. |
hmm, why did it work with 0.2? |
I did a quick scan through the code.
These symbols get defined by the global logger: I am guessing there is something about Windows that doesn't like GNU linker script or the |
bors r+ |
Build succeeded: |
Thanks for the review & merge! Would it be possible to get a |
Published 0.6.1 Regarding the linker error, I don't think that's a problem with defmt 0.3.0 specifically, since #49 also fails to link again defmt 0.2.3 (https://github.com/stm32-rs/bxcan/runs/4213689874?check_suite_focus=true) |
Update defmt (and other knurling-rs tools) to 0.3, see https://ferrous-systems.com/blog/defmt-3/