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.

TMS320C6748: Initializing SD for writing

Part Number: TMS320C6748
Other Parts Discussed in Thread: OMAPL138

Hello,

My group and i are trying to save the digital output of a codec, which we are able to save internally, to the SD card. I am not sure of the process required to do this. From looking at the data sheet it seems like i will have to initialize the edma controller then push the data to the start address of the SD card. Am i correct in thinking this? I have tried to look at the starterware example "mmcsd" but it is alot to look through and hard to understand for someone with a limited background. Then comes the problem of actually initializing the SD card. it looks like we will use FAT32 and a 16 GB card but im not sure if more must be done before i can use it. In general is it possible to push raw data straight to the memory address of the SD card to be viewed later? We are using CCS 7.4 for all our tasks along with the XDS110 debug probe.

Regards,

Brian Dougenik

  • Hello Brian,

    I recommend you use one of the MMCSD examples in Processor SDK as a starting point. StarterWare is legacy software that is no longer being supported by TI.

    Processor SDK can be downloaded from here:
    www.ti.com/.../PROCESSOR-SDK-C6748

    Documentation on the MMCSD driver and examples including API call flow can be found here:
    software-dl.ti.com/.../index_device_drv.html

    You can use EDMA if you wish to free up CPU cycles but it is not required. There are MMCSD examples that do and do not use DMA that you can reference. FAT32 is the supported format.

    The two examples you will want to look at are "MMCSD_Test_Project" and "MMCSD_DMA_Test_Project." These examples demonstrate reading and writing a fixed number of bytes into an MMCSD card.

    We recommend using the drivers as-is, but if you want to take a look at the source code or modify it, it can be found in ~\pdk_omapl138_1_0_7\packages\ti\drv\mmcsd\src\v0.

    Hope this helps. If you have any questions, please let me know.

    Regards,
    Sahin
  • Sahin,

    Thank you for your references, thats exactly what i was looking for.

    Regards,

    Brian Dougenik