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.

MSP432E401Y: issues with Mass Storage Device Class API (USB library)

Part Number: MSP432E401Y

Hello,

In MSP432E4 SDK, Mass Storage Device Class API is provided as part of USB library. But no example are provided. Did anyone manage to use these Mass Storage Device Class API files and have their board recognized as an MSC device on the host computer?

It seems that there are a few bugs in the library. An easy one to start with: 

ASSERT(psCompEntry != 0);

that we see in function USBDMSCCompositeInit(uint32_t ui32Index, tUSBDMSCDevice *psMSCDevice, tCompositeEntry *psCompEntry). But the call to that function is:

USBDMSCCompositeInit(ui32Index, psMSCDevice, 0);

So psCompEntry is always 0, and the assert always fails.

What is the status of this library on TI side? Is it "work in progress" or is it a library that has been tested and validated?

Best regards,

Stephane

  • Hi Stephanie,

      I'm currently out of office until 8/3. I will look into your question when I come back tomorrow. 

  • Hi Stephane,

    There is no MSC device example in MSP432E SDK but rather only a MSC host example. However, I find a MSC device example for a different platform (TM4C129 MCU). MSP432E and TM4C129 uses the same usblib. I have attached the source code for this MSC device example. The example was created for a TM4C129 EVM board with a LCD screen on it but  this DK-TM4C129x board is no longer in production. Therefore, you will need to disregard code that interfaces to the LCD display. I hope the example will be helpful to you as I don't have the expertise with MSC myself. I will also suggest you get the example to work before venturing into a composite class. 

    usb_dev_msc.zip

      

  • Hello Charles,

    Thank you, I will look at the example and let you know how it goes after I come back from vacations in a couple of weeks.

    Regards,

    Stephane