Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

USB Host MSC Example Concerto

$
0
0

Hello,

I have problems using the "usb_host_msc" example on M3. Similar to Abhijit kelkar in a former post I run into a Fault ISR. The program detects the USB stick but it encounters problems with commands using the file system and reading from the USB device (like 'cd' or 'cat'). I stepped into it and figured out that somehow the problem must be inside the function USBHCDPipeRead(). To me it looks like to be a problem if the block read is larger than 64 bytes?

I have tried out two different sticks, an old one with 64MB and a new one with 16GB. The newer one seems to be more stable since I was able to list the content of the root directory. I have read in the forum that this might be an issue of the response time of the stick?

Since we use our own hardware platform there might be problems with the USB but this should not lead to a software crash like this!

The only modification I did is adapt the initialisation of the UART pins and the USB pin usage at the beginning of main() to our hardware:

    //
    // Set the USB pins to be controlled by the USB controller.
    //
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG);
    GPIOPinConfigure(GPIO_PD0_USB0EPEN);
    GPIOPinConfigure(GPIO_PD1_USB0PFLT);
    GPIOPinTypeUSBDigital(GPIO_PORTD_BASE, GPIO_PIN_0);
    GPIOPinTypeUSBDigital(GPIO_PORTD_BASE, GPIO_PIN_1);
    GPIOPinTypeUSBAnalog(GPIO_PORTF_BASE, GPIO_PIN_6);
    GPIOPinTypeUSBAnalog(GPIO_PORTG_BASE, GPIO_PIN_2 | GPIO_PIN_5 /*| GPIO_PIN_6*/);

---------------------------------------
Concerto M28F35H52C
CodeComposer  5.3.0.00090
MWARE V1.60

Any suggestions are welcome!

Regards,
Stefan


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>