Forums

USB Host Lite with LPC2478 works with Transcend Jetflash V30 & not with Transcend Jetflash 300

Started by Hiren Shah July 6, 2011
I am using USB hostlite stack with LPC2478.

with transcend pen drive (2gb) (Jetflash V30) 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-Jetflash300). 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