-
Notifications
You must be signed in to change notification settings - Fork 154
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
Fix control transfers on SAMD #80
base: gh-pages
Are you sure you want to change the base?
Conversation
On SAMD-based boards it appears that the entire control transfer reply needs to be passed to USB_SendControl() at once. The original code took advantage of making multiple calls to construct replies from smaller chunks. This has been rewritten to construct and send the entire responce at once. Fixes #79.
@reillyeon Didn't work for me. |
Thanks for checking. It looks like something else is broken here as well. |
Alright. Please let me know if you managed to figure it out. |
Hi, let m know if I can help. I've few SAMD boards for testing. Cheers |
Before this pull request I was also facing symptoms like #41, #60, #69 Tested this pull request with the following
Tested all working fine. This pull request should fix issue #41, #60, #69 I would like to suggest to have this pull request merged. As for Android, this pull request works ok for the AVR (ATmega32U4) but not working for SAMD. In |
@TedNIVAN could you explain what exactly you want to do with your app and webusb please? It will me much easier if you can explain your use case and proper recommendation can be provided. From your app fruity market, I am not able to see how it is used with a webusb device. |
@reillyeon , I did a bit more digging on Android Chrome. Below are the logs, when clicking My opinion is Android Chrome does not like the way Arduino SAMD's USBCore.cpp doing the Will you be able to check Android Chrome's (Version 87.0.4280.101) source why it behave differently than the desktop Chrome ? SAMD When Clicking Get Configuration Descriptor
ATMEGA34U4 When Clicking Get Configuration Descriptor
|
Any updates on this? I seem to be running into the same above errors in the screenshot on desktop chrome. On both gh-pages and samd-fix. |
@Delonous if you try the pull request, this fixes the SAMD issues on desktop. |
On SAMD-based boards it appears that the entire control transfer reply
needs to be passed to USB_SendControl() at once. The original code took
advantage of making multiple calls to construct replies from smaller
chunks. This has been rewritten to construct and send the entire
responce at once.
Fixes #79.