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.

MSPM0G5187: LP-MSPM0G5187 USB HOST

Part Number: MSPM0G5187

We are using LP-MSPM0G5187 to test the usb module and set it work in host mode.

image.png

We have tested with the example code in the SDK and found several issues when we are using uart to send the command to load the file in the USB. There is a txt file named 1.txt stored in the flash disk. Take the 'cat' command as an example.

  1. With a 16GB USB flash disk.
  2.  
  • I send the command 'cat 1.txt' through the uart.

    1. With a 16GB USB flash disk. It can only recognize the first 5 character(including the space)
    2.  With a 256GB SD card. It can't recognize the character '.'

    So both of these two devices can't find the correct file. We want to know how to correctly use this demo, and do we have any limitation on the size of the USB storage device for MSPM0G5187 to communicate with?

  • Hi Sophie,

    I tested this on my end and was able to read back some text I put in a file called 1.txt:

    Maybe the issue is because you are not including the "." between 1 and txt? i.e., 1.txt rather than 1txt

    I don't believe there is a size limitation for the USB drive.

    Best,

    Owen

  • After comment out line 74 in the msc_app.c file, I can get full print at the CIO window. But  I always get mount fail after it print the information for device. I'm not sure whether it caused by that I use a large size storage device.

  • Hi Sophie,

    The disk size shouldn't matter here. Since you are seeing it detect the device, I don't suspect VBUS power supply is an issue.

    Ensure that the flash drive is formatted in a standard configuration of FatFS such as FAT32, FAT16, or FAT12.

    Best,

    Owen