Hi all,
I’m trying C6748_StarterWare_1_20_02_02\examples\evmC6748\usb_host_msc but failed.
I connect a fat32 format usb disk to logic pd L138 EVM usb otg port. And use CCS5.2 run this demo. First use gel file to set the cpu 300M ddr 150M and psc enable all.
then run this demo:
If use DMA_MODE the program always failed at usb_host_msc.c
if(USBHMSCDriveReady(g_ulMSCInstance) != 0)
{ // // Wait about 100ms before attempting to check if the // device is ready again. // delay(100);
break; }
When I disable DMA_MODE it always loop at usbhostenum.c
while(g_sUSBHCD.USBOUTPipes[ulPipeIdx].eState == PIPE_WRITING)
{
}
Do you have any commits? Thanks!
Hi Denny,
Could you please test the prebuilt binary on your setup? The prebuilt binary can be located at -
C6748_StarterWare_1_20_02_02\binary\c674x\cgt\c6748\evmC6748\usb_host_msc\Release\usb_host_msc.out
Also, make sure that
Please refer to User guide for details.
If the prebuilt binary is working fine, then
- Build and test the example application without modification
- Test after adding the modifications one by one
It is observed that non standard USB disks fail to function with starterware.
Regards,
Vinay
Vinay,
Thanks for your commits, I follow you instructions do the test.
hardware: connect the usb disk to logic PD otg interface via mini-a cable(I have verified it use L138 SOM, run linux it can mount this disk)
software:
1,use the pre-build release version
2,use starterware gel file(setup memory map->set cpu and ddr frequency->psc all on)
it seems the same like debug version
1, the uart2 can output:
"USB Mass Storage Host program
Type 'help' for help
NODEV> "
but I can't input anything.
2,when I stop the program at ccs, it allways stop at
USBHCDPipeRead(.....)
thanks!
Could you please verify the setup with a different standard USB disk?
The prebuilt binaries should work with logicPD EVM.
If you are using gel file C6748_StarterWare_1_20_02_02\tools\gel\C6748.gel ;
1. Load the gel file before connecting to board
2. Connect to target (C674x)
On target connect the gel file initailzies everything.
You do not have to setup anything manually. Just load and run the prebuilt binary.
Please let me know if this works for you.
Hi Vinay,
I have test it follow your instructions.
1,load gel before connect to c674x
2,use pre-build binary file.
3,use different use disk do the test.
but failed , it still like previous description.
BR,Denny
As i have told earlier, non standard USB disks fail to function with starterware.
Could you please use a standard USB 2.0 compliant disk ?
For ex:
Thanks for your help it can work now, here is my test result.
1,kingston dt101 g2 can work
2,transcend 2GB jf t3 can work
3,kawau sdhc mmc card reader can work
4,lenove usb disk can't work
5,aigo can't work
2 conditions:
1, usb 2.0 disk
2,fat32 file system format