This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB Host Lite with LPC2478 doesnt work with few pen drives

I am using USB hostlite stack with LPC2478.

with transcend pen drive (2gb) formatted as FAT16 was working fine. i.e. I was able to read data from any file as well as write data into any file...

But the same software is not working with any other make pen drive (e.g. Sony 4gb, Transcend 2gb new pen drive). In following routine the TDBuffer[12] does not become 0, hence it sets rc as ERR_MS_CMD_FAILED.

USB_INT32S MS_TestUnitReady (void)
{ USB_INT32S rc;

Fill_MSCommand(0, 0, 0, MS_DATA_DIR_NONE, SCSI_CMD_TEST_UNIT_READY, 6); rc = Host_ProcessTD(EDBulkOut, TD_OUT, TDBuffer, CBW_SIZE); if (rc == OK) { rc = Host_ProcessTD(EDBulkIn, TD_IN, TDBuffer, CSW_SIZE); if (rc == OK) { if (TDBuffer[12] != 0) { rc = ERR_MS_CMD_FAILED; } } } return (rc);
}

Can anyone give me some remedy for this problem...
Thanks
Hiren