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

[Firmware] Implement nrf52840 usb serial logger as a defmt logger #85

Closed
TheButlah opened this issue Dec 3, 2022 · 2 comments
Closed
Labels
Area: Firmware Relating to the firmware subprojct Status: Help Wanted Requires help from another person to progress

Comments

@TheButlah
Copy link
Collaborator

TheButlah commented Dec 3, 2022

defmt requires a global logger. The nrf52840 support defmt-rtt out of the box, but unlike the esp32c3, we don't have USB JTAG, so we would need to read the RTT via a hardware probe + JTAG or SWD. I would prefer to implement defmt::Logger using the nrf's usb serial, to make logging really easy and provide a good way to verify that the device is working.

There is some example code here that demonstrates how to set up the nrf52 for usb serial. We should take that code and adapt it for the firmware, and then implement a global logger using it.

@TheButlah TheButlah added Status: Help Wanted Requires help from another person to progress Area: Firmware Relating to the firmware subprojct labels Dec 3, 2022
@TheButlah
Copy link
Collaborator Author

Most likely we will actually use defmt_bbq as explained in #93 , just have an async usb task that processes the queue.

@TheButlah
Copy link
Collaborator Author

Implemented in #101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Firmware Relating to the firmware subprojct Status: Help Wanted Requires help from another person to progress
Projects
None yet
Development

No branches or pull requests

1 participant