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.

TM4C129ENCPDT: Library for multiple MSC devices

Part Number: TM4C129ENCPDT


Hello,

I've got a design that has a HUB (USB2512B) connected on the TM4C129x processor. There are two MSC devices connected on that hub. One none removable NAND drive and one removable USB stick. I got it working that the two devices are connecting with the processor. But I can't get the FAT library working because its a one device FAT Library. (Note, when i disconnect the hub from the processor and connect it to my computer direcly, it works, so I know for sure the hardware is okee).

There is a wrapper file, that can be used with multiple MSC devices. (Dual-disk-driver.c), somewhere hidden in the TIVAWARE library but that one can't work with the same driver. 

My question: Is there a library/wrapper or an example available that I can use to connect and use two MSC devices?

Best regards,

Kees de Boer

  • Hello Kees,

    Our FAT library offerings were from a third party, so we didn't develop them at all. What is there is all we offer with TivaWare though, I don't believe we have a library or wrapper that handles your exact use case.

    Perhaps if you setup the USB interface to be a composite interface with two unique MSC drives, then you may be able to leverage what already exists? Just an idea, not sure if it's viable as this is really outside of our area of expertise as device-level experts.
  • Hi Ralph,

    Thanx for your response and suggestion.

    I didn't try your suggestion but (correct me if I'm wrong) is using the composite driver a good idea? If I'm reading the usermanual of the Tivaware USB Library, the composite class is a part of the device driver. But I don't want to use my controller as a USB device but as a host (to host the two USB flash drives).

    Agian, I never tried it and I also not compleatly understand the composite class driver.

    Best regards,
    Kees
  • Hello Kees,

    That's a good point, I didn't think of it from a host point of view. I don't think that would work, I have never heard of a host composite interface and really it doesn't make much sense.

    Sorry I don't have a better answer for this, it's just not something we have any experience in...
  • Hello Ralph,

    Thank you for your time and honest reply. 

    Best regards,

    Kees