-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix HID; fix interface name table creation #4734
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes #4724 - tested on neopixel_trinkey_m0, qtpu_rp2040 and pirkey_m0 -- all work now.
There is an issue with the pirkey_m0. The current build is without pulseio. usb_hid works ok. However, if is restore pulseio then the pirkey_m0 will not boot - the dotstar just blinks and no USB device is mounted. Should I open a new issue for this once this is merged?
BTW - It worked on a qtpy_rp2040 even though CI reported a build issue. Presumably a CI issue.
One bit of information regarding the pirkey_m0 issue -- If I resotore pulseio and build from main without this PR, then the pirkey_m0 boots ok -- but USB_HID does not work, With this PR -- USB_HID is ok but it won't boot if I restore pulseio... I tried adding pulseio into another "small build (rfm9x) and it works OK with this PR I don't know if you want to invest any time the pirkey_m0. I just wanted to report the results. |
@jerryneedell I added a commit to restore I would not give up on the pirkey right now because the problems you are seeing might indicate a more general bug. |
@dhalbert Can you remind me where I find the artifacts for a PR? |
@dhalbert OK - I found the artifacts and I get the same results with your build (that is reassuring!)
|
I would suggest merging this PR to get the usb_hid fixed and deal with the pirkey_m0 separately. |
I loaded the pirkey build onto a trinket m0 and it worked. I also added pulseio to the Trinket build and it also worked. So it may be something peculiar about your pirkey, or perhaps it's running a boot.py or code.py that's crashing. You could erase the filesystem and see if it works, if you have not done that already. But given those tests, I feel comfortable in moving on. |
Fixes #4727 in all the tests I could think of. |
@dhalbert This is very odd. You are correct that the issue is related to my code.py. If I remove my code.py, then the pirkey_m0 boots OK -- but with the code.py, it fails -- this happens on 2 different prirkey_m0s! |
@dhalbert Hold on!! I have no idea what is wrong. One difference for other boards is that these M0's are using .mpy file or "frozen" in libraries -- could that be an issue from a code.py? |
OK -- one more example. It's not as simple as I had hoped -- loading the irremote_simpletest.py as code.py works OK on the CPX....I will see if I can identify the trigger of the failure. using just this as code,py on te CPX does induce the failure.
It is this line that induces the failure
however - that is also present in the irremote_simpletest that works.... |
My guess is that this is some kind of storage-related flaw in the USB code or |
Thanks Dan! I agree with merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes! I'm going to merge to get them in. Isn't a word usually 32 bits and 16 bits are halfwords or nibbles? May want to change that in the future. Fine for now though. Thanks!
Fixes #4724. @jerryneedell
Fixes #4727. @Neradoc