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.

Starterware C6748 example for using sd card

Hello !!

I would like to use either sd card of the lcdk c6748 or a mass storage connected by USB to LCDK C6748 . I found many examples in starterware. 

Please correct me if i am wrong :

usb_dev_msc : for using the s card of the LCDK

usb_host_msc : USB mass storage connected to the LCDK by USB

Thoses examples allow me to just read or also write.

Think you very much

  • Hi Mustapha,

    The USB mass storage starterware "usb_host_msc" example would demonstrates reading a file system from a USB mass storage class {ex: pendrive} device (only FAT filesystem)

    To know more about USB driver stack, please refer to the following location.

    /opt/ti/C6748_StarterWare_1_20_04_01/drivers/usb.c

  • Hi Anouini,

    Anouini says said:
    usb_dev_msc : for using the s card of the LCDK

    usb_dev_msc example is to demonstrate that the LCDK board will act as a USB Mass storage device when connected to a host machine like WIndows/Linux. The host machine will detect the LCDK board as a USB device.

    The usb_dev_msc will contain the device side protocol driver to respond to the host. Yes, it uses the micro SD card for storage.

    Your understanding on usb_host_msc seems to be right.

    Regards,

    Shankari.

     

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • You mention SD card access. In StarterWare C6748, the USB host and device MSC examples do not access the SD card directly.

    usb_dev_msc: Makes the LCDK look like a Mass Storage device to the PC. The backing store is a ramdisk. The documentation header says it uses microSD but the code in usbdmscglue.c uses the APIs in ramdisk.c.

    usb_host_msc: Allows the LCDK to access a Mass Storage device. Your SD Card would have to be in a USB card reader.

  • Hi Norman,

    I apologize. You are right. The documentation says it uses the microSD and the code uses the RAMDISK.

     

    Regards,

    Shankari