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.

SD card access

Other Parts Discussed in Thread: TMS320C5515

Hi All,

I'm using the Kit TMS320C5515 EZDSP on my graduation project. I need to use a SD card to store and load a sound in wav format in the DSP output. This could be possible?

I've tried to access the sd card, with the examples in C55xx_CSL_3.00: CSL_MMCSD_SdCardExample, but didn't work. Follow below the errors that appears in the dialog box:

"../csl_mmcsd_SdCardExample.c", line 681: error: struct "<unnamed>" has no field "CGCR1"
"../csl_mmcsd_SdCardExample.c", line 681: error: identifier "CSL_SYS_CGCR1_MH_MASK" is undefined
"../csl_mmcsd_SdCardExample.c", line 681: error: identifier "CSL_SYS_CGCR1_MH_SHIFT" is undefined
"../csl_mmcsd_SdCardExample.c", line 682: error: struct "<unnamed>" has no field "CGICR"
"../csl_mmcsd_SdCardExample.c", line 682: error: identifier "CSL_SYS_CGICR_ML_MASK" is undefined
"../csl_mmcsd_SdCardExample.c", line 682: error: identifier "CSL_SYS_CGICR_ML_SHIFT" is undefined
"../csl_mmcsd_SdCardExample.c", line 684: error: struct "<unnamed>" has no field "CGICR"
"../csl_mmcsd_SdCardExample.c", line 684: error: identifier "CSL_SYS_CGICR_RDRATIO_MASK" is undefined
"../csl_mmcsd_SdCardExample.c", line 684: error: identifier "CSL_SYS_CGICR_RDRATIO_SHIFT" is undefined
"../csl_mmcsd_SdCardExample.c", line 685: error: struct "<unnamed>" has no field "CGOCR"
"../csl_mmcsd_SdCardExample.c", line 685: error: identifier "CSL_SYS_CGOCR_ODRATIO_MASK" is undefined
"../csl_mmcsd_SdCardExample.c", line 685: error: identifier "CSL_SYS_CGOCR_ODRATIO_SHIFT" is undefined
"../csl_mmcsd_SdCardExample.c", line 687: error: struct "<unnamed>" has no field "CGICR"
"../csl_mmcsd_SdCardExample.c", line 687: error: identifier "CSL_SYS_CGICR_RDBYPASS_MASK" is undefined
"../csl_mmcsd_SdCardExample.c", line 687: error: identifier "CSL_SYS_CGICR_RDBYPASS_SHIFT" is undefined
"../csl_mmcsd_SdCardExample.c", line 688: error: struct "<unnamed>" has no field "CGOCR"
"../csl_mmcsd_SdCardExample.c", line 688: error: identifier "CSL_SYS_CGOCR_OUTDIVEN_MASK" is undefined
"../csl_mmcsd_SdCardExample.c", line 688: error: identifier "CSL_SYS_CGOCR_OUTDIVEN_SHIFT" is undefined
"../csl_mmcsd_SdCardExample.c", line 689: error: struct "<unnamed>" has no field "CGOCR"
"../csl_mmcsd_SdCardExample.c", line 689: error: identifier "CSL_SYS_CGOCR_OUTDIV2BYPASS_MASK" is undefined
"../csl_mmcsd_SdCardExample.c", line 689: error: identifier "CSL_SYS_CGOCR_OUTDIV2BYPASS_SHIFT" is undefined
21 errors detected in the compilation of "../csl_mmcsd_SdCardExample.c".

>> Compilation failure
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [csl_mmcsd_SdCardExample.obj] Error 1
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.

I've followed the steps like in the release Notes of C55xx_Low Power, commented out the  #define C5517 and the #defineC5515 EVM, and nothing happening!

Could someone help me, or tell me what i did wrong?

Henrique Leoni

  • Hi Henrique,

    I understand that you want to create 'wav' files in SD card. To do this, you need to have file system support. Please use the CSL example 'CSL_MMCSD_SdCardFSExample' or 'CSL_MMCSD_SdCardFSExtExample' which has FAT32 support provided by ATAFS.

    In order to resolve the compilation errors you are facing, I would recommend you start over by re-installing the CSL package to a different directory and following the steps provided in Release Notes. Also make sure that you are using at least Code Composer Studio v4.2.4.00033 with Code Generation Tools v4.3.8 and DSP/BIOS v5.41.02.14.

    Hope this helps.

    Regards,

    Rahul Nair