-
Notifications
You must be signed in to change notification settings - Fork 2
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 defmt #41
base: master
Are you sure you want to change the base?
Add defmt #41
Conversation
@@ -1,8 +1,9 @@ | |||
[target.thumbv8m.main-none-eabihf] | |||
runner = 'arm-none-eabi-gdb' | |||
runner = 'probe-rs run --connect-under-reset' |
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.
Is this something you want?
How to run defmt with probe-rs:
DEFMT_LOG=trace cargo r --features stm32h503,defmt --example blinky -- --chip stm32h503RETx
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.
Yeah. The private fork we use is using probe-rs, so happy to have this change
@@ -83,4 +85,4 @@ opt-level = "s" # optimize for binary size | |||
|
|||
[[example]] | |||
name = "blinky" | |||
required-features = ["stm32h503"] | |||
#required-features = ["stm32h503"] |
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.
I added this requirement because the example was written for the H503 nucleo board. If its the same pin assignment on other nucleo boards we can remove the feature, or add different pin assignments for different boards, I guess.
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.
Nice. Adding |
No description provided.