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.

dsp 5515 programming error

Other Parts Discussed in Thread: CCSTUDIO, CSD

Hi,

I have been facing difficulties in DSP 5515 programming using one of the example projects available with my evaluation kit (USBSTIK5515). I was using the example (MMCSD_sdcardexample.out) project for my project based testing. 

Im getting an error which is as follows:-

Description Resource Path Location Type
Build-configuration 'com.ti.ccstudio.buildDefinitions.C5500.Debug.1599296540' does not exist in the referenced project 'C55XXCSL_LP'. Use the 'Properties > Build > Dependencies' page to select an existing build-configuration. CSL_MMCSD_SdCardFSExample_Out CSL_MMCSD_SdCardFSExample_Out Problems

I have already given all the right paths which are required to run the code. 

Could you please help me out in fixing this up...

Regards,

Nishad. 

  • What version of CSL and CCS are you using? Have you followed the Installation Guide in the CSL? The latest version of CSL is 3.04 and it is tested with CCS 5.
    Regards.
  • Hi Nishad,

    Review this wiki page: http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS

    Does the error occur when you build your project? Can you attach the console log please?

    Hope this helps,
    Mark

  • Furthermore, this looks like a Chip Support Library example.

    Make sure you closely follow the steps in C55XCSL-LOWPOWER-3.04.00_Installation_Guide.pdf (located in CSL path)

    In particular, make sure you choose your workspace path = your CSL path, then import all relevant projects including atafs_bios_drv_lib and C55XXCSL_LP projects.

    Hope this helps,
    Mark
  • Hi Mark,

    Thanks a lot for the reply. As per you request Iam attaching the console log so that you could get a good understanding of the error. 


    **** Build of configuration Debug for project CSL_MMCSD_SdCardFSExample_Out ****

    "C:\\ti_2\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: ../VC5505_CSL_BIOS_cfg.tcf'
    'Invoking: TConf'
    "C:/ti_2/bios_5_42_01_09/xdctools/tconf" -b -Dconfig.importPath="C:/ti_2/bios_5_42_01_09/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_2/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5505 -g --define="_DEBUG" --define=c5505 --include_path="C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/rtdx/include/c5500" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/bios/include" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/inc" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/atafs/src" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/common" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/CSL_MMCSD_SdCardFSExample_Out/Debug" --diag_warning=225 --large_memory_model --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="VC5505_CSL_BIOS_cfg.pp" "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_2/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5505 -g --define="_DEBUG" --define=c5505 --include_path="C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/rtdx/include/c5500" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/bios/include" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/inc" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/atafs/src" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/common" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/CSL_MMCSD_SdCardFSExample_Out/Debug" --diag_warning=225 --large_memory_model --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="VC5505_CSL_BIOS_cfg_c.pp" "VC5505_CSL_BIOS_cfg_c.c"
    'Finished building: VC5505_CSL_BIOS_cfg_c.c'
    ' '
    'Building file: ../chk_mmc.c'
    'Invoking: C5500 Compiler'
    "C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5505 -g --define="_DEBUG" --define=c5505 --include_path="C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/rtdx/include/c5500" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/bios/include" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/inc" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/atafs/src" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/common" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/CSL_MMCSD_SdCardFSExample_Out/Debug" --diag_warning=225 --large_memory_model --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="chk_mmc.pp" "../chk_mmc.c"
    'Finished building: ../chk_mmc.c'
    ' '
    'Building file: ../csl_mmcsd_atafs_example.c'
    'Invoking: C5500 Compiler'
    "C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5505 -g --define="_DEBUG" --define=c5505 --include_path="C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/rtdx/include/c5500" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/bios/include" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/inc" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/atafs/src" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/common" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/CSL_MMCSD_SdCardFSExample_Out/Debug" --diag_warning=225 --large_memory_model --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="csl_mmcsd_atafs_example.pp" "../csl_mmcsd_atafs_example.c"
    "C:/ti_2/bios_5_42_01_09/packages/ti/bios/include/csl_general.h", line 81: warning: nested comment is not allowed
    'Finished building: ../csl_mmcsd_atafs_example.c'
    ' '
    'Building target: CSL_MMCSD_SdCardFSExample_Out.out'
    'Invoking: C5500 Linker'
    "C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5505 -g --define="_DEBUG" --define=c5505 --diag_warning=225 --large_memory_model --ptrdiff_size=16 --algebraic --asm_source=algebraic -z -m"CSL_MMCSD_SdCardFSExample_Out.map" --stack_size=0x200 --heap_size=0x400 --warn_sections -i"C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/lib" -i"C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/atafs_bios_drv_lib/Debug" -i"C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/include" -i"C:/ti_2/bios_5_42_01_09/packages/ti/rtdx/lib/c5500" -i"C:/ti_2/bios_5_42_01_09/packages/ti/bios/lib" -i -i"C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/CSL_MMCSD_SdCardFSExample_Out" -i"/packages/ti/rtdx/lib/c5000" --reread_libs --xml_link_info="CSL_MMCSD_SdCardFSExample_Out_linkInfo.xml" --rom_model --sys_stacksize=0x200 -o "CSL_MMCSD_SdCardFSExample_Out.out" -l"./VC5505_CSL_BIOS_cfg.cmd" "./csl_mmcsd_atafs_example.obj" "./chk_mmc.obj" "./VC5505_CSL_BIOS_cfg_c.obj" "./VC5505_CSL_BIOS_cfg.obj" -l"Debug/C55XXCSL_LP.lib" -l"C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/mmc_sd/CSL_MMCSD_SdCardFSExample/../../../ccs_v5.0_examples/drv/lib/Debug/atafs_bios_drv_lib.lib" -l"rts55x.lib"
    <Linking>
    error: cannot find file "Debug/C55XXCSL_LP.lib"

    undefined first referenced
    symbol in file
    --------- ----------------
    _ATA_No_Swap C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/mmc_sd/CSL_MMCSD_SdCardFSExample/../../../ccs_v5.0_examples/drv/lib/Debug/atafs_bios_drv_lib.lib<atawrite_write.obj>
    _DMA_init ./csl_mmcsd_atafs_example.obj
    _DMA_open ./csl_mmcsd_atafs_example.obj
    _MMC_getNumberOfCards ./csl_mmcsd_atafs_example.obj
    _MMC_init ./csl_mmcsd_atafs_example.obj
    _MMC_initState ./csl_mmcsd_atafs_example.obj
    _MMC_open ./csl_mmcsd_atafs_example.obj
    _MMC_read_CSD ./chk_mmc.obj
    _MMC_selectCard ./csl_mmcsd_atafs_example.obj
    _MMC_sendGoIdle ./csl_mmcsd_atafs_example.obj
    _MMC_sendOpCond ./csl_mmcsd_atafs_example.obj
    _MMC_setBlockLength ./csl_mmcsd_atafs_example.obj
    _MMC_setCardPtr ./csl_mmcsd_atafs_example.obj
    _MMC_setCardType ./csl_mmcsd_atafs_example.obj
    _MMC_setDmaHandle ./csl_mmcsd_atafs_example.obj
    _MMC_setEndianMode ./csl_mmcsd_atafs_example.obj
    _SD_getCardCsd ./csl_mmcsd_atafs_example.obj
    _SD_sendAllCID ./csl_mmcsd_atafs_example.obj
    _SD_sendRca ./csl_mmcsd_atafs_example.obj
    _SYS_setEBSR ./csl_mmcsd_atafs_example.obj
    _getSysClk ./csl_mmcsd_atafs_example.obj

    error: unresolved symbols remain

    error: errors encountered during linking; "CSL_MMCSD_SdCardFSExample_Out.out"
    >> Compilation failure
    not built
    gmake: *** [CSL_MMCSD_SdCardFSExample_Out.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • Hi Mark,
    Apart from the listed error above I have faced one more error while I was building another example.
    The log console is as follows.
    I have followed your link and it helped us a lot in fixing the errors. But I cant understand the below error as I couldn't figure out where the BIOS settings(configuration settings) are in the CCS.
    If you could give me a solution to this that will be great.

    Regards,
    Nishad.

    **** Build of configuration Debug for project CSL_MMCSD_SdCardFSExample_Out ****

    "C:\\ti_2\\ccsv5\\utils\\bin\\gmake" -k all
    'Building file: ../VC5505_CSL_BIOS_cfg.tcf'
    'Invoking: TConf'
    "C:/ti_2/bios_5_42_01_09/xdctools/tconf" -b -Dconfig.importPath="C:/ti_2/bios_5_42_01_09/packages;" "../VC5505_CSL_BIOS_cfg.tcf"
    'Finished building: ../VC5505_CSL_BIOS_cfg.tcf'
    ' '
    'Building file: VC5505_CSL_BIOS_cfg.s55'
    'Invoking: C5500 Compiler'
    "C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5505 -g --include_path="C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/rtdx/include/c5500" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/bios/include" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/inc" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/atafs/src" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/common" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/CSL_MMCSD_SdCardFSExample_Out/Debug" --define="_DEBUG" --define=c5515 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="VC5505_CSL_BIOS_cfg.pp" "VC5505_CSL_BIOS_cfg.s55"
    "VC5505_CSL_BIOS_cfg.s55", ERROR! at line 359: [ ***** USER ERROR ***** - ]
    Project build options do not match Global configuration settings.
    Compiler options specify small model, configuration set for large
    model.
    .emsg "Project build options do not match Global configuration settings. Compiler options specify small model, configuration set for large model."
    ^

    1 Assembly Error, No Assembly Warnings
    Errors in Source - Assembler Aborted

    >> Compilation failure
    gmake: *** [VC5505_CSL_BIOS_cfg.obj] Error 1
    'Building file: VC5505_CSL_BIOS_cfg_c.c'
    'Invoking: C5500 Compiler'
    "C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5505 -g --include_path="C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/rtdx/include/c5500" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/bios/include" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/inc" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/atafs/src" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/common" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/CSL_MMCSD_SdCardFSExample_Out/Debug" --define="_DEBUG" --define=c5515 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="VC5505_CSL_BIOS_cfg_c.pp" "VC5505_CSL_BIOS_cfg_c.c"
    'Finished building: VC5505_CSL_BIOS_cfg_c.c'
    ' '
    'Building file: ../chk_mmc.c'
    'Invoking: C5500 Compiler'
    "C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5505 -g --include_path="C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/rtdx/include/c5500" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/bios/include" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/inc" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/atafs/src" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/common" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/CSL_MMCSD_SdCardFSExample_Out/Debug" --define="_DEBUG" --define=c5515 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="chk_mmc.pp" "../chk_mmc.c"
    'Finished building: ../chk_mmc.c'
    ' '
    'Building file: ../csl_mmcsd_atafs_example.c'
    'Invoking: C5500 Compiler'
    "C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5505 -g --include_path="C:/ti_2/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/rtdx/include/c5500" --include_path="C:/ti_2/bios_5_42_01_09/packages/ti/bios/include" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/inc" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/atafs/src" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/DSP_C5515/c55xx_csl/ccs_v5.0_examples/drv/common" --include_path="C:/Users/dsly/Dropbox/Hearing Diagnostics/Prototype II/DSP/Workspace/CSL_MMCSD_SdCardFSExample_Out/Debug" --define="_DEBUG" --define=c5515 --diag_warning=225 --ptrdiff_size=16 --algebraic --asm_source=algebraic --preproc_with_compile --preproc_dependency="csl_mmcsd_atafs_example.pp" "../csl_mmcsd_atafs_example.c"
    "C:/ti_2/bios_5_42_01_09/packages/ti/bios/include/csl_general.h", line 81: warning: nested comment is not allowed
    'Finished building: ../csl_mmcsd_atafs_example.c'
    ' '
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****
  • Okay first one first.

    Looks like the linker cannot find C55XXCSL_LP.lib in Debug/ directory.

    Easiest - Make sure your workspace is set correctly according to the documentation - there is a path dependency that uses the workspace location to locate the C55XXCSL_LP path.

    2nd easiest - You could kludge it by copy/pasting C55XXCSL_LP.lib from c55_csl_3.04\c55xx_csl\ccs_v5.0_examples\C55XXCSL_LP\Debug to your project's Debug directory.

    Is the ccs_v5.0_examples\C55XXCSL_LP project imported into CCS? That might allow the linker to find C55XXCSL_LP.lib...

    You could go into the Build Properties --> C5500 Linker --> File Search Path and modify the path to the CSL library to c55_csl_3.04\c55xx_csl\ccs_v5.0_examples\C55XXCSL_LP\Debug (hard code path instead of using environment variable)

    Or fix the env variable in the path..

    Hope this helps,
    Mark

  • Looks like memory model mismatch - large vs small model.

    I dont see any flag in the console to specify memory model, so I guess it defaults to small.

    Any way, see these posts to learn where in the build properties menu to specify the memory model.
    Then set all projects (and CSL library) memory models to 'large'

    http://e2e.ti.com/support/dsp/c5000/f/109/t/308051
    http://e2e.ti.com/support/dsp/c5000/f/109/p/36116/128260#128260
    http://e2e.ti.com/support/dsp/c5000/f/109/p/60260/217935#217935

    The CSL examples should have compiled out of the box - you could also try reinstalling the CSL and very closely following the documented sequence for creating a workspace, importing projects, and building them.

    Hope this helps,
    Mark