-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
msd_Close causes the calculator to freeze with certain flashdrives. #477
Comments
By the way, I noticed in your list of supported flash drives, you have a SanDisk Ultra 32GB listed. However, when I tried plugging one of my SanDisk Ultra 32GB drives into my calculator, it caused the calculator to stop responding until I unplugged it. (As in, I was in Cesium, I plugged in the flash drive, then it stopped responding to the keyboard until the instant I unplugged it). I wonder what's up with that. I'm plugging the flash drive directly into my calculator using a USB on the go mini B to full A adapter, if that helps. |
Ok update, while attempting to gather some data on what exactly is going on, I discovered that: |
More updates: |
I have ordered a SanDisk Cruzer Micro U3 16GB and will update this issue with findings once I get it on the 15th |
I tested this on a SanDisk Cruzer Micro U3 and was able to reproduce the issue, determined it was due to the volatile cache sync command that was sent to the MSD - since like zero flash drives support caching and external SSDs generally require you to enable the cache, I just removed it and things work as expected now. I updated the supported list here. New libraries: https://github.com/CE-Programming/libraries/releases/latest |
Originally posted by @mateoconlechuga in #475 (comment)
Well then.
If you initialize a USB flash drive using USBDRVCE and
msd_Open
from MSDDRVCE, then try to deinitialize that flash drive usingmsd_Close
, with some flash drives, it will freeze and require the calculator to be reset. If you remove the msd_Close call, the calculator will not freeze.The drive I'm using is a SanDisk Cruzer Micro U3 16GB (something like this) The code I experienced this issue with can be found here. As it stands, accessing the flash drive doesn't cause the calculator to freeze, however, if you uncomment the
msd_Close
call incloseUSB
inusb.c
and rebuild, the calculator will freeze every time after the drive is accessed, when closeUSB is called.I personally suspect this error is specific to this 1 ancient flash drive, so if there's anything you'd like me to do, any data you'd like me to collect, let me know.
The text was updated successfully, but these errors were encountered: