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

nrf52: usb: do not print debug!() info on startup #1945

Merged
merged 1 commit into from Jun 16, 2020
Merged

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Jun 16, 2020

Debug statements at the beginning of the USB driver init process conflict with using the USB stack for UART/debug!(), since those debug outputs cause the USB driver to try to start sending before it is fully initialized. Eventually, an assertion fails and everything crashes.

They are also a little noisy for users not debugging the USB stack.

Testing Strategy

This pull request was tested by getting CDC working on the nano33ble board.

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

This conflicts with using the USB stack for UART/debug!(), since those
debug outputs cause the USB driver to try to start sending before it is
fully initalized. Eventually, an assertion fails and everything crashes.

They are also a little noisy for users not debugging the USB stack.
@bradjc bradjc added the nrf Change pertains to the nRF5x family of MCUs. label Jun 16, 2020
@brghena
Copy link
Contributor

brghena commented Jun 16, 2020

Disabling debug in the USB stack by default seems good.

bors r+

@bors bors bot merged commit 7cf62ee into master Jun 16, 2020
@bors bors bot deleted the nrf52-usb-quiet branch June 16, 2020 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nrf Change pertains to the nRF5x family of MCUs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants