Skip to content

DRAFT: attempt to fix USB crash for CIRCUITPY access + rapid read() polling#10626

Closed
samblenny wants to merge 1 commit intoadafruit:mainfrom
samblenny:fix-usb-crash
Closed

DRAFT: attempt to fix USB crash for CIRCUITPY access + rapid read() polling#10626
samblenny wants to merge 1 commit intoadafruit:mainfrom
samblenny:fix-usb-crash

Conversation

@samblenny
Copy link
Copy Markdown

This attempts to fix a problem where a Fruit Jam board crashes if you access the CIRCUITPY drive while code.py is rapidly polling a gamepad using usb.core.Device.read(). For details on the problem see

This fix is only marginally effective. It's still kinda crashy, but marginally less so than without the changes. I'm posting this here so people can poke at the code or try the CI build if they want.

This attempts to fix a problem where a Fruit Jam board crashes if
you access the CIRCUITPY drive while it's rapidly polling a gamepad
using usb.core.Device.read(). The fix is incomplete.
Copy link
Copy Markdown
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to do this. It is TinyUSB's job to ensure it is in a good state to handle a read() call.

@samblenny
Copy link
Copy Markdown
Author

Okay. Sounds reasonable. I'll leave this for you or Thach to sort out then.

@samblenny samblenny closed this Sep 10, 2025
@samblenny samblenny deleted the fix-usb-crash branch December 10, 2025 01:16
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

Successfully merging this pull request may close these issues.

2 participants