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

Embassy STM32 examples not providing timestamps on defmt logs #3569

Open
henryshunt opened this issue Nov 24, 2024 · 0 comments
Open

Embassy STM32 examples not providing timestamps on defmt logs #3569

henryshunt opened this issue Nov 24, 2024 · 0 comments

Comments

@henryshunt
Copy link

When I run the STM32 examples, I don't see timestamps on the defmt logs as the getting started docs show, despite the examples apparently having the necessary configuration to provide timestamps. I've also been unable to get timestamps when creating my own Embassy projects.

If I change the cargo run command to explicitly display timestamps in probe-rs, I get timestamps (presumably from the host side rather than the target) and the following message is output:

WARN defmt_decoder::log::format: logger format contains timestamp but no timestamp implementation was provided; consider removing the timestamp (`{t}` or `{T}`) from the logger format or provide a `defmt::timestamp!` implementation

This seems to imply the target isn't actually providing timestamps to the host.

Does anyone have any idea how to solve this and get timestamps from the target? My probe-rs version is v0.24.0.

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

No branches or pull requests

1 participant