adafruit / adafruit/Adafruit_CircuitPython_MacroPad

Device Crashes when Host Device goes to sleep/powers down

Open
#23 16 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
99
Forks
26
PR merge metrics
No merged PRs in 30d

Description

So, odd bug: the device will crash when the host goes into sleep/powers down.

The Display reads "USBerror: USB busy". Doesn't matter if USB memory is set to readonly or not, if usb_cdc is enabled, etc. It seems that any interactions with memory in the main loop while the Host device is in these power states causes the USB issue.

Code can be found here: https://github.com/LibertyBeta/macro_pady

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the linked macro_pady repository and reproducing the crash while the host device sleeps or powers down. Trace the USB and main-loop interactions described in the report; done means the device no longer crashes or displays "USBerror: USB busy" in those host power states.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.