This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: Detect USB as a mass storage device.

Part Number: AM5728

Dear Team,

Like a mobile phone If we connect mobile USB port to computer

then it could be detected as mass storage device (media storage).

The same thing we want to perform on 5728 Evaluation board (TMDSEVM572X).

we want to access SD card file system through USB which is on MMC1.

Please suggest the appropriate method to perform this.

Regards

Krishna Vashistha

  • Hello,

    Please note that on the for the desired use case, the USB instance/port on the AM5728 need to operate in USB peripheral mode. On 5728 Evaluation board, USB1 as Super-Speed host port and have a on-board Super-Speed hub which provides 3 Super-Speed Host (Type-A) ports. USB2 is used as High-Speed peripheral port. Hence for this use case, the USB2 port need to be used and connected to the computer.  

    Can you tell us which TI SDK is being used for the above use case? Linux or RTOS?

    Thanks.

  • Dear Praveen,

    Thank you for the reply.

    We are using Linux SDK 06.02.00.81

    I will try to perform this on AM5728 EVM  board then

    get back to you.

  • Hi Krishna,

    On Linux SDK, to operate in USB peripheral mode, you would need to load the g_mass_storage gadget and associate it with the sd card instance that you would like to use. Search the usage on TI E2E or google and you will find the required command to call.

    examplemodprobe g_mass_storage file=/dev/mmcblk1p1 stall=0 removable=1

    Thanks.