Skip to content

msd_Close causes the calculator to freeze with certain flashdrives. #477

@TheMiningTeamYT

Description

@TheMiningTeamYT
          I think you've convinced me - hopefully in your program you can work around it your code for now until I get the time to fix it. Yes, please make another issue and document the drive you are using (maybe an Amazon link too)

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 using msd_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 in closeUSB in usb.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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions