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.

TMS320C5515: SD Test Example not working

Part Number: TMS320C5515
Other Parts Discussed in Thread: TEST

Hi there,

I am going through the provided example projects for the C5515 eZdsp and have been unable to run the SD test successfully. I have run the test on multiple microSD cards and the application hangs indefinitely in the "SD_sendOpCond" function. I am wondering why this is happening with 3 separate uSD cards.

I have zipped the folder containing the libraries, examples, etc that TI has provided. The project in question is under "\usbstk5515_v1\tests\sd". I have not changed any of the files that were provided.

Iusbstk5515_v1.zip

Best,

Aadu

  • Hi,

    I don't have a C5515 eZdsp to use for testing the code.

    Where did you obtain this example code? Please get all example code from the latest C55x CSL:

    https://software-dl.ti.com/dsps/dsps_public_sw/dsps_swops_houston/C55X/latest/index_FDS.html

    Ensure the code is built for C5515:

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/133616/c5515-ezdsp-micro-sd

    I won't be able to provide much more insight on this example code. If you continue to have problems you'll need to debug it on your own.

    Regards,
    Frank

  • Hi Frank,

    Thanks for pointing me to the example code. I am wondering if you can help me understand why the example project for SD card writing would fail to build? I am attempting to the build the project on CCS v10.3.1

    "C:\\ti\\ccs1031\\ccs\\utils\\bin\\gmake" -k all

    Building file: "../VC5505_CSL_BIOS_cfg.tcf"
    Invoking: TConf
    "C:/ti/ccs1031/xdctools_3_62_00_08_core/tconf" -b -Dconfig.importPath="C:/Program Files/Texas Instruments/bios_5_41_02_14/packages;" "../VC5505_CSL_BIOS_cfg.tcf"
    subdir_rules.mk:12: recipe for target 'build-360555361-inproc' failed
    process_begin: CreateProcess(NULL, C:/ti/ccs1031/xdctools_3_62_00_08_core/tconf -b "-Dconfig.importPath=C:/Program Files/Texas Instruments/bios_5_41_02_14/packages;" ../VC5505_CSL_BIOS_cfg.tcf, ...) failed.

    gmake[1]: *** [build-360555361-inproc] Error 2
    subdir_rules.mk:9: recipe for target 'build-360555361' failed
    gmake: *** [build-360555361] Error 2
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    I

  • Hi Frank,

    Thanks for the suggestion. I updated my DSP/BIOS and seemed to have bypassed the issue. However, I am now seeing Linking errors when I attempt to rebuild. Can you help me understand why this may be happening?

    <Linking>
    "./VC5505_CSL_BIOS_cfg.cmd", line 164: error: VECT memory range overlaps
    existing memory range SARAM31
    "./VC5505_CSL_BIOS_cfg.cmd", line 165: error: DARAM memory range overlaps
    existing memory range DARAM0
    "./VC5505_CSL_BIOS_cfg.cmd", line 165: error: DARAM memory range overlaps
    existing memory range DARAM1
    "./VC5505_CSL_BIOS_cfg.cmd", line 165: error: DARAM memory range overlaps
    existing memory range DARAM2
    "./VC5505_CSL_BIOS_cfg.cmd", line 165: error: DARAM memory range overlaps
    existing memory range DARAM3
    "./VC5505_CSL_BIOS_cfg.cmd", line 165: error: DARAM memory range overlaps
    existing memory range DARAM4
    "./VC5505_CSL_BIOS_cfg.cmd", line 165: error: DARAM memory range overlaps
    existing memory range DARAM5
    "./VC5505_CSL_BIOS_cfg.cmd", line 165: error: DARAM memory range overlaps
    existing memory range DARAM6
    "./VC5505_CSL_BIOS_cfg.cmd", line 165: error: DARAM memory range overlaps
    existing memory range DARAM7
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM0
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM1
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM2
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM3
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM4
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM5
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM6
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM7
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM8
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM9
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM10
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM11
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM12
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM13
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM14
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM15
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM16
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM17
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM18
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM19
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM20
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM21
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM22
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM23
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM24
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM25
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM26
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM27
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM28
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM29
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM30
    "./VC5505_CSL_BIOS_cfg.cmd", line 166: error: SARAM memory range overlaps
    existing memory range SARAM31
    "../C5515.cmd", line 76: error: program will not fit into available memory.
    placement with alignment/blocking fails for section ".text" size 0x103ca
    page 0. Available memory ranges:
    SARAM0 size: 0x2000 unused: 0x2 max hole: 0x2
    SARAM1 size: 0x2000 unused: 0x4 max hole: 0x4
    SARAM2 size: 0x2000 unused: 0x4 max hole: 0x4
    SARAM3 size: 0x2000 unused: 0x8 max hole: 0x8
    SARAM4 size: 0x2000 unused: 0x4 max hole: 0x4
    "../C5515.cmd", line 82: error: program will not fit into available memory.
    run placement with alignment/blocking fails for section ".bss" size 0x311a
    page 0. Available memory ranges:
    DARAM5 size: 0x2000 unused: 0x2000 max hole: 0x2000
    "../C5515.cmd", line 73: error: program will not fit into available memory.
    placement with alignment/blocking fails for section ".cinit" size 0x1048
    page 0. Available memory ranges:

    DARAM0 size: 0x1f40 unused: 0xbe6 max hole: 0xbe0
    >> Compilation failure
    makefile:150: recipe for target 'CSL_MMCSD_SdCardFSExtExample_Out.out' failed

    undefined first referenced
    symbol in file
    --------- ----------------
    __STACK_SIZE C:/Program Files/Texas Instruments/bios_5_42_02_10/packages/ti/bios/lib/bios.a55L<boot.o55L>
    __SYSSTACK_SIZE C:/Program Files/Texas Instruments/bios_5_42_02_10/packages/ti/bios/lib/bios.a55L<boot.o55L>

    error: unresolved symbols remain
    error: errors encountered during linking;
    "CSL_MMCSD_SdCardFSExtExample_Out.out" not built
    gmake: *** [CSL_MMCSD_SdCardFSExtExample_Out.out] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

  • Hi Aadithya,

    My guess is you have a linker command file generated by XDC tools, and a separate custom linker command file which are both included in the project. The MEMORY SECTIONS definitions in the two command files conflict.

    I'm not clear on which example you're attempting to build. Where did you obtain this code? Is this a CSL 03.08.01.00 example? If so, which one? I can try to build the project if you provide these details.

    Regards,
    Frank

  • Hi Frank,

    I am trying to build and step through the project found here:

    C:\ti\c55_lp\c55_csl_3.08.01\ccs_v6.x_examples\mmc_sd\CSL_MMCSD_SdCardFSExtExample

  • Hi Aadithya,

    I was able to build this example in CCS 10.3.1 using the tools mentioned in https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/981570/question-about-most-up-to-date-ccs-and-software-components-to-install-for-dsp-bios-and-c55xx-devices

    Install all the required tools (I install to c:\ti_c5000).

    Install the CSL (I install to c:\ti_c5000\c55_lp).

    Create a new CCS workspace, and import the following projects:

    • C55XXCSL_LP
    • atafs_bios_drv_lib
    • CSL_MMCSD_SdCardFSExtExample_Out

    In CCS, discover the RTSC products:

    • Window->Preferences
    • Expand "Code Composer Studio", select "Products"
    • Click "Add" and add the directory where you installed the tools.

    In CCS, discover the C5000 compiler

    • Window->Preferences
      • Expand "Code Composer Studio", expand "Build", select "Compilers"
      • Click "Add" and add the directory where you installed the tools.

    Now right-click on the project in CCS, and select "Rebuild Project".

    This will build the CSL library, ATAFS library, and example application.

    I've attached the build log for the application below.

    Regards,
    Frank

    my_build_log.txt
    **** Clean-only build of configuration Debug for project CSL_MMCSD_SdCardFSExtExample_Out ****
    
    "C:\\ti\\ccs1031\\ccs\\utils\\bin\\gmake" -k clean 
     
    DEL /F  "VC5505_CSL_BIOS_cfg.h" "VC5505_CSL_BIOS_cfg.h??" "VC5505_CSL_BIOS_.cdb"  "CSL_MMCSD_SdCardFSExtExample_Out.hex"  "VC5505_CSL_BIOS_cfg.cmd" "VC5505_CSL_BIOS_cfg.s??" "VC5505_CSL_BIOS_cfg_c.c"  "CSL_MMCSD_SdCardFSExtExample_Out.out" 
    DEL /F "VC5505_CSL_BIOS_cfg.d" 
    DEL /F "VC5505_CSL_BIOS_cfg.obj" "VC5505_CSL_BIOS_cfg_c.obj" "ata_ext_func.obj" "chk_mmc.obj" "csl_mmcsd_atafs_ext_example.obj" 
    DEL /F "VC5505_CSL_BIOS_cfg_c.d" "ata_ext_func.d" "chk_mmc.d" "csl_mmcsd_atafs_ext_example.d" 
    Could Not Find C:\ti_c5000\c55_lp\c55_csl_3.08.01\ccs_v6.x_examples\mmc_sd\CSL_MMCSD_SdCardFSExtExample\Debug\VC5505_CSL_BIOS_cfg.h
    Could Not Find C:\ti_c5000\c55_lp\c55_csl_3.08.01\ccs_v6.x_examples\mmc_sd\CSL_MMCSD_SdCardFSExtExample\Debug\VC5505_CSL_BIOS_cfg.d
    Could Not Find C:\ti_c5000\c55_lp\c55_csl_3.08.01\ccs_v6.x_examples\mmc_sd\CSL_MMCSD_SdCardFSExtExample\Debug\VC5505_CSL_BIOS_cfg.obj
    Could Not Find C:\ti_c5000\c55_lp\c55_csl_3.08.01\ccs_v6.x_examples\mmc_sd\CSL_MMCSD_SdCardFSExtExample\Debug\VC5505_CSL_BIOS_cfg_c.d
    Finished clean
     
    
    **** Build Finished ****
    
    **** Build of configuration Debug for project CSL_MMCSD_SdCardFSExtExample_Out ****
    
    "C:\\ti\\ccs1031\\ccs\\utils\\bin\\gmake" -k all 
     
    Building file: "../VC5505_CSL_BIOS_cfg.tcf"
    Invoking: TConf
    "C:/ti_c5000/bios_5_42_02_10/xdctools/tconf" -b -Dconfig.importPath="C:/ti_c5000/bios_5_42_02_10/packages;" "../VC5505_CSL_BIOS_cfg.tcf"
    Finished building: "../VC5505_CSL_BIOS_cfg.tcf"
     
    Building file: "VC5505_CSL_BIOS_cfg.s??"
    Invoking: C5500 Compiler
    "C:/ti_c5000/cgt_4.4.1/bin/cl55" -v5505 --memory_model=large -g --include_path="C:/ti_c5000/cgt_4.4.1/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/inc" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/atafs/src" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/common" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/mmc_sd/CSL_MMCSD_SdCardFSExtExample/Debug" --define="_DEBUG" --define=c5505 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="VC5505_CSL_BIOS_cfg.d_raw"  "VC5505_CSL_BIOS_cfg.s??"
    Finished building: "VC5505_CSL_BIOS_cfg.s??"
     
    Building file: "VC5505_CSL_BIOS_cfg_c.c"
    Invoking: C5500 Compiler
    "C:/ti_c5000/cgt_4.4.1/bin/cl55" -v5505 --memory_model=large -g --include_path="C:/ti_c5000/cgt_4.4.1/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/inc" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/atafs/src" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/common" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/mmc_sd/CSL_MMCSD_SdCardFSExtExample/Debug" --define="_DEBUG" --define=c5505 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="VC5505_CSL_BIOS_cfg_c.d_raw"  "VC5505_CSL_BIOS_cfg_c.c"
    Finished building: "VC5505_CSL_BIOS_cfg_c.c"
     
    Building file: "../ata_ext_func.c"
    Invoking: C5500 Compiler
    "C:/ti_c5000/cgt_4.4.1/bin/cl55" -v5505 --memory_model=large -g --include_path="C:/ti_c5000/cgt_4.4.1/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/inc" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/atafs/src" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/common" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/mmc_sd/CSL_MMCSD_SdCardFSExtExample/Debug" --define="_DEBUG" --define=c5505 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="ata_ext_func.d_raw"  "../ata_ext_func.c"
    Finished building: "../ata_ext_func.c"
     
    Building file: "../chk_mmc.c"
    Invoking: C5500 Compiler
    "C:/ti_c5000/cgt_4.4.1/bin/cl55" -v5505 --memory_model=large -g --include_path="C:/ti_c5000/cgt_4.4.1/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/inc" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/atafs/src" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/common" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/mmc_sd/CSL_MMCSD_SdCardFSExtExample/Debug" --define="_DEBUG" --define=c5505 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="chk_mmc.d_raw"  "../chk_mmc.c"
    Finished building: "../chk_mmc.c"
     
    Building file: "../csl_mmcsd_atafs_ext_example.c"
    Invoking: C5500 Compiler
    "C:/ti_c5000/cgt_4.4.1/bin/cl55" -v5505 --memory_model=large -g --include_path="C:/ti_c5000/cgt_4.4.1/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/ti_c5000/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/inc" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/atafs/src" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/common" --include_path="C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/mmc_sd/CSL_MMCSD_SdCardFSExtExample/Debug" --define="_DEBUG" --define=c5505 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="csl_mmcsd_atafs_ext_example.d_raw"  "../csl_mmcsd_atafs_ext_example.c"
    Finished building: "../csl_mmcsd_atafs_ext_example.c"
     
    Building target: "CSL_MMCSD_SdCardFSExtExample_Out.out"
    Invoking: C5500 Linker
    "C:/ti_c5000/cgt_4.4.1/bin/cl55" -v5505 --memory_model=large -g --define="_DEBUG" --define=c5505 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic -z -m"CSL_MMCSD_SdCardFSExtExample_Out.map" --stack_size=0x200 --heap_size=0x400 -i"C:/ti_c5000/cgt_4.4.1/lib" -i"C:/ti_c5000/cgt_4.4.1/include" -i"C:/ti_c5000/bios_5_42_02_10/packages/ti/rtdx/lib/c5500" -i"C:/ti_c5000/bios_5_42_02_10/packages/ti/bios/lib" -i"C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/C55XXCSL_LP" -i"C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/mmc_sd/CSL_MMCSD_SdCardFSExtExample" -i"/packages/ti/rtdx/lib/c5000" --reread_libs --warn_sections --xml_link_info="CSL_MMCSD_SdCardFSExtExample_Out_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "CSL_MMCSD_SdCardFSExtExample_Out.out" "./VC5505_CSL_BIOS_cfg.obj" "./VC5505_CSL_BIOS_cfg_c.obj" "./ata_ext_func.obj" "./chk_mmc.obj" "./csl_mmcsd_atafs_ext_example.obj" -l"./VC5505_CSL_BIOS_cfg.cmd"  -l"Debug/C55XXCSL_LP.lib" -l"C:/ti_c5000/c55_lp/c55_csl_3.08.01/ccs_v6.x_examples/drv/atafs/atafs_bios_drv_lib/Debug/atafs_bios_drv_lib.lib" -llibc.a 
    <Linking>
    Finished building target: "CSL_MMCSD_SdCardFSExtExample_Out.out"
     
    
    **** Build Finished ****
    

  • Hey Frank,

    Thanks for outlining this so clearly. I am not able to download the XDCTools v.3.24.05.48 from the download page provided: http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/3_24_05_48/index_FDS.html

    Is there an alternative link I can use? When I click on the Windows Release, nothing downloads to my computer (perhaps dead link?)

    Best,

    Aadu

  • Aadithya,

    I don't think there is an alternate link. The link works for me:

    Regards,
    Frank

  • Hi Frank,

    Not sure why that was happening but it eventually ended up downloading.

    I can now confirm that I am able to build and debug examples. However, I am a bit confused why many examples are "failing" on my c5515 eZdsp USB. My first post mentions that none of the examples are able to detect the uSD card (tested with numerous uSD cards).

    I even tried running the LCD Text Display example (C:\ti_c5000\c55_lp\c55_csl_3.08.01\ccs_v6.x_examples\lcd\CSL_LCDC_TextDisplayExample), but even though the test passes, there is no change in the LCD display.

    I understand that you don't have this specific part, but do you have any idea why this issue may be popping up?

    Best,

    Aadu

  • Hi Aadithya,

    Possibly the CSL chip version macro in c55_lp\c55_csl_3.08.01\inc\csl_general.h isn't defined correctly. For C5515 this should be set to CHIP_C5505_C5515. Please see further details on the comments for that file.

    Regards,
    Frank