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

USB Logger can fail/cause freezing if interrupts start too soon after StartLog #343

Closed
stephenhensley opened this issue May 13, 2021 · 1 comment · Fixed by #463
Closed
Labels
bug Something isn't working

Comments

@stephenhensley
Copy link
Collaborator

Seems like this is probably a callback function from the USB getting interrupted by the audio IRQs which are higher priority. Specifically I'm guessing the descriptor functions are getting interrupted, but I haven't stepped through everything myself yet.

A workaround for now is to use a delay (500ms seems acceptable) between StartLog and any subsequent Init or Start functions that would cause periodic interrupts.

Longterm we should add ScopedIrqBlockers to the functions that can cause issues when interrupted.

@stephenhensley stephenhensley added the bug Something isn't working label May 13, 2021
@stephenhensley stephenhensley changed the title USB Logger can fail/cause freezing if interrupts start too soon after Startlog USB Logger can fail/cause freezing if interrupts start too soon after StartLog May 13, 2021
@stephenhensley
Copy link
Collaborator Author

Also, possibly related to this, the freezing seems to trigger from hot-plugging the USB cable while the Daisy is powered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant