-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
NotImplementedError could give reason why not implemented #9798
Comments
It's because space is extremely tight on the Trinkeys. When this feature was added it overflowed builds on the smallest boards. See #6247 for a little discussion on this. It would be possible to make a custom build to make it fit. It might fit in some language translations. |
Try |
You have to do Try submitting a PR with It might fit for this particular Trinkey but not others. Now that you know how to do builds, you can make your own custom build here. |
Sure, I can build it myself, even can hardcode VID/PID etc myself, no problem. My issue was that it had this weird behaviour, while there was no docs saying that I should expect this behaviour, so after you pointed towards the PR I started going deeper into the rabbit hole :) It's just that having this single piece of API unavailable for some reason is counter-intuitive. Maybe it could return message indicating why it's saying NotImplementedException? Also, if I have some free time I'll try, maybe my Github Actions could just auto pull latest master create custom UF2 for Trinkey with this API enabled, if maintainers decide it's not worth the balancing :D |
That would be a helpful message. We could raise |
I think having message like "Excluded during build process" could still be useful in that it would indicate that it was purposefully excluded, in contrast to somebody introducing a bug or just forget to implement something. It could lead me to looking at the firmware build process instead of creating this issue in the first place - I honestly believed this to be a bug :D |
I agree we could have a better message: |
CircuitPython version
Code/REPL
Behavior
Description
I wanted my Trinkey to pretend it's Unifying Receiver, so I used
set_usb_identification
function as per documentation.Documentation says:
which, I believe, both cases are fulfilled - I call it in
boot.py
, and as far as I know samd21e18 has native hardware USB implementation.Maybe CircuitPython uses some hacky USB stack for this MCU, digispark-like software instead of native hardware peripheral?
Additional information
No response
The text was updated successfully, but these errors were encountered: