AnsweredAssumed Answered

Usb pen drive is not recognized by example mfs_usb 52259demo (MQX 3.6.2)

Question asked by ShinjiIkari on Jan 13, 2011
Latest reply on Mar 1, 2011 by ShinjiIkari

Hi!

I'm using MQX (3.6.2) + MFS + USB HOST on a micro 52259 like host that read and write a configuration on a usb pen drive. I notice that in your standard mfs_usb example on a 52259demo (also for 52259evb) this pen drive is not recognized, so I have analysed the problem (watching the usb host code) but I haven't the solution ...

I can supply information about this pen drive:

  • FAT32 with no partition
  • utilizing the usbview software there are these information

Device Descriptor:
bcdUSB:             0x0200
bDeviceClass:         0x00
bDeviceSubClass:      0x00
bDeviceProtocol:      0x00
bMaxPacketSize0:      0x40 (64)
idVendor:           0x090C (Feiya Technology Corporation)
idProduct:          0x1000
bcdDevice:          0x1100
iManufacturer:        0x01
0x0409: "General"
iProduct:             0x02
0x0409: "USB FLASH DISK"
iSerialNumber:        0x03
0x0409: "AA330463000360004727"
bNumConfigurations:   0x01

ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed:     Full
Device Address:       0x01
Open Pipes:              2

Endpoint Descriptor:
bEndpointAddress:     0x81  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0040 (64)
bInterval:            0xFF

Endpoint Descriptor:
bEndpointAddress:     0x02  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0040 (64)
bInterval:            0xFF

Configuration Descriptor:
wTotalLength:       0x0020
bNumInterfaces:       0x01
bConfigurationValue:  0x01
iConfiguration:       0x00
bmAttributes:         0x80 (Bus Powered )
MaxPower:             0x32 (100 Ma)

Interface Descriptor:
bInterfaceNumber:     0x00
bAlternateSetting:    0x00
bNumEndpoints:        0x02
bInterfaceClass:      0x08
bInterfaceSubClass:   0x06
bInterfaceProtocol:   0x50
iInterface:           0x00

Endpoint Descriptor:
bEndpointAddress:     0x81  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0040 (64)
bInterval:            0xFF

Endpoint Descriptor:
bEndpointAddress:     0x02  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0040 (64)
bInterval:            0xFF

 

  • on the file attached there are the debug strings of your official demo ... I see strange things like usb_host_new_tr_element that in others pen drive doesn't appear
  • usb host detects the attached event but the file system is not installed

 

 

 

Thanks for suggestions!

Outcomes