Skip to content
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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Add defmt #41

wants to merge 2 commits into from

Conversation

Wratox
Copy link
Contributor

@Wratox Wratox commented Jan 29, 2025

No description provided.

Henrik Snöman added 2 commits January 29, 2025 10:19
@@ -1,8 +1,9 @@
[target.thumbv8m.main-none-eabihf]
runner = 'arm-none-eabi-gdb'
runner = 'probe-rs run --connect-under-reset'
Copy link
Contributor Author

@Wratox Wratox Jan 29, 2025

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

Copy link
Contributor

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"]
Copy link
Contributor

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

um3121 seems to cover 503 and 533 which both have PA5 as "aruino pin D13" which also is the led.

However for um3115 Nucleo-H563ZI it is PB0 by default(unless solderbridges are changed)

@astapleton
Copy link
Contributor

Nice. Adding defmt was something I was hoping to get around to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants