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

Boot messages are lost due to tinyUSB detaches (to write boot log and secrets if required). It would be nice if they were buffered / displayed later #655

Open
tyeth opened this issue Oct 25, 2024 · 1 comment
Assignees

Comments

@tyeth
Copy link
Contributor

tyeth commented Oct 25, 2024

As part of the PR to fix file system corruption when devices brownout, I've decided to split off this piece of work that would buffer log output until usb serial is reattached.
This is a ticket for that work.

@tyeth tyeth changed the title Boot messages are lost when tinyUSB detaches (to write boot log and secrets if required). It would be nice if they were buffered / displayed later Boot messages are lost due to tinyUSB detaches (to write boot log and secrets if required). It would be nice if they were buffered / displayed later Oct 25, 2024
@tyeth tyeth self-assigned this Oct 25, 2024
@tyeth
Copy link
Contributor Author

tyeth commented Dec 11, 2024

Side quest, the SAMD (m4 airlift) seems to be truncating the initial bit of the device info in serial, the firmware version line gets the label merged with Adafruit WipperSnapper line from the parent calling method, and the title ------Device Information--- is lost completely. I tried adding flushing but no difference.

EDIT - Future me: try adding yield to debug print as well as flush, as it gives tinyusb cdc a kick too.

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