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

Using defmt for logging #29

Open
romancardenas opened this issue Sep 22, 2023 · 1 comment
Open

Using defmt for logging #29

romancardenas opened this issue Sep 22, 2023 · 1 comment

Comments

@romancardenas
Copy link
Contributor

Hi all!

Is it possible to set defmt for logging with a hifive1 board? So far I've been using the UART, but I suspect the serial port is interfering with GDB and the debugging experience with cortex-debug is poor.

@almindor
Copy link
Collaborator

almindor commented Sep 22, 2023

I've haven't used defmt with riscv board yet.

I generally just use gdb for running/debugging and serial-monitor on the /dev/ttyACMx for the log output.

As for code I just use the sprintln! macro from the hifive1 crate.

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

2 participants