PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
165 stars 85 forks source link

MassStorageDriver can't open all drives #59

Open lukehutch opened 3 years ago

lukehutch commented 3 years ago

I tested MassStorageDriver with two USB flash drives. I can detect one of the drives, but not the other:

(1) Working drive (identifies as "S31B1008 USB DISK (1100)", 2GB):

msDrive1  connected/initilized
msDrive1 is NOT Mounted

   connected 1
   initialized 1
   USB Vendor ID: 090c
  USB Product ID: 1000
      HUB Number: 0
        HUB Port: 0
  Device Address: 3
Removable Device: YES
        VendorID: S31B1008
       ProductID: USB DISK        
      RevisionID: 1100
         Version: 0
    Sector Count: 3917823
     Sector size: 512
   Disk Capacity: 2005925376 Bytes

(2) Non-working drive (identifies as "Kingston DT 101 G2 (PMAP)", 4GB):

msDrive1 not connected: Code: 35

Code 35 appears to be MS_UNIT_NOT_READY.

Both drives were newly partitioned and formatted to FAT in Linux -- and both drives work fine in Linux on a desktop machine.

I can ship the non-working Kingston drive to you for testing, if you would like.