MQX4.1-USB-MSD (RAM DISK) example is not working on tower kit

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX4.1-USB-MSD (RAM DISK) example is not working on tower kit

781 Views
hardikdave
Contributor II

we are developing application which needs access to flash via USB mass storage. for that we are evaluating USB MSD RAM application provided with mqx 4.1 with TOWER kit K60.

USB mass storage RAM application is ported on tower kit without any modification. in normal case "FORMAT disk" popup comes on LAPTOP screen and format of disc is possible. but sometimes (1 out of 4 tries) it is observed that disk is not giving response to host ("FORMAT disk" popup doesn't come).

when I captured USB packet we found that device is not giving response to below USB bulk read query packet.

55 53 42 43 10 A0 15 12 00 00 01 00 80 00 0A 28   USBC. ......€..(

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00      ...............

I have also observed that in normal case USB gives proper response to "READ CAPACITY" command (REAPONSE 1).but in such case it gives improper response(RESPONSE 2)

55 53 42 43 D0 3B B5 06 08 00 00 00 80 00 0A 25   USBCÐ;µ.....€..%

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00      ...............

RESPONSE 1 -  00 00 00 3B 00 00 02 00                            ...;....

RESPONSE 2 -  00 00 00 00 D1 01 01 00                           ....Ñ... (after this response host issues above mention read(10) command and USB device is not able to answer it)

Am I missing something while porting USB stack?

Your valuable help is required.

Thanks in advance for support.

0 Kudos
3 Replies

472 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Dave:

I tried the format command on USB msd (device) demo about ten times, I can't reproduce your issue.  Did you try it on another board?


Have a nice day,
Daniel

0 Kudos

472 Views
hardikdave
Contributor II

Hello Daniel,

Thanks for reply.

I tried with our custom board having K60 controller but found same result.

Does stack have any linkage with operating system or host controller because device works fine with 32 bit operating system having OHCI controller while fails with 64 bit operating system and 3.0 USB EHCI controller?

Hardik Dave


0 Kudos

472 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Dave:

I can't reproduce your issue in my PC with Tower board, I am using win7 64bit. Now Freescale released MQX 4.2, it includes a new USB stack, under the folder of usb_v2, you can try your custom board with the demo on this Stack.


Have a nice day,
Daniel

0 Kudos