-
Notifications
You must be signed in to change notification settings - Fork 1.3k
atmel-samd: USB mass storage tweaks. #425
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.
These are good, but I made these changes manually on the tip of master and I'm still seeing the #422 problems on Windows.
* Be more liberal with critical sections to ensure ordering. * Correct usb_busy so that it is busy when no errors occur on transfer. I believe it worked before because it would be false momentarily until a second transfer was attempted and a busy error was returned, therefore setting usb_busy to true. That risks the first "failed" transfer completing before a second one is attempted.
|
@tannewt Is there any conflict between turning the caches and the errata 1.6 regarding the DSU CRC32 which may fail if NVM caches are disabled? Does this apply? |
|
I don't think we're checking the CRC32 anywhere. We probably should though. |
|
Not with the cache disabled ;-) - Thanks for clarifying - I just wanted to make sure one fix was not going to introduce another latent bug. |
|
Yup, I appreciate the second set of eyes on it. |
Unrevert the revert below, in preparation for PR #425 (tannewt/circuitpython, align_usb branch).
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.
@kattni and @hukuzatuna have tested this. I've tried it on Windows and it seems to be fine (not sure why my testing earlier seemed to point to an issue).
No description provided.