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.

AM5716: CCS: build project error

Part Number: AM5716
Other Parts Discussed in Thread: AM5718, MATHLIB

Tool/software:

Hi experts,

I'm using AM571x board and following the steps in guides to insert and build a project in CCS. But I came across this problems.

Here are my steps:

1.File>>import>>CCS Projects

2.then browse the folder processor_sdk_rtos_am57xx_08_01_00_09 and select one after searching for projects.Click finish.

3.create targetConfigs folder and IDK_AM571X.ccxml.

Connection: Texas Instruments XDS100v2 USB Debug Probe

Board or Device: IDK_AM571X

4.Test Connection succeed and then Launch seleceted Configuration.

5.Choose Texas Instruments XDS100v2 USB Debug Probe/CortexA15_0 and connect target.

6.Return to project explorer and and select the project to Build Project.Here comes the error.


**** Build of configuration Debug for project DSP_minval_66_LE_ELF ****

"C:\\ti\\ccs1280\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

Building target: "DSP_minval_66_LE_ELF.out"
Invoking: C6000 Linker
"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --define=ti_targets_elf_C66 --define=am5718 -g --diag_warning=225 --diag_wrap=off --display_error_number --debug_software_pipeline --mem_model:data=far -k --strip_coff_underscore --legacy -z -m"DSP_minval_66_LE_ELF.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/lib" -i"../../../../../../../" -i"/packages" -i"../../../../common/c66" -i"../../../" -i"../../" -i"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="DSP_minval_66_LE_ELF_linkInfo.xml" --rom_model -o "DSP_minval_66_LE_ELF.out" "./DSP_minval_d.obj" "../AM57xx_C66.cmd" "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/common/c66/lnk.cmd" -llibc.a
<Linking>
error #10008-D: cannot find file "ti/mathlib/lib/mathlib.lib"
"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/common/c66/lnk.cmd", line 48: error #10264: L2SRAM memory range overlaps existing memory range IRAM_MEM
"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/common/c66/lnk.cmd", line 54: warning #10423-D: No placement specified for ".kernel"; a default placement will be applied.
error #10010: errors encountered during linking; "DSP_minval_66_LE_ELF.out" not built

>> Compilation failure
makefile:136: recipe for target 'DSP_minval_66_LE_ELF.out' failed
gmake[1]: *** [DSP_minval_66_LE_ELF.out] Error 1
gmake: *** [all] Error 2
makefile:132: recipe for target 'all' failed

**** Build Finished ****

Now I am having trouble getting into next step.

Thanks.

  • Hi,

    The assigned engineer is out of office for the day. Please expect a delay in response.

    Thank you,

    Fabiana

  • Hello Xin,

    Can you make sure you have all the libraries linked correctly? 
    Right click the project and go to Show Build Settings...

    Then go to General->Products(Tab)

    You have to make sure that you are adding the DSP library to your project: Click Add->Drop_Down_Menu

    Best,

    -Josue

  • Hello Josue, thanks for your reply.

    I didn't add the DSP library to the project before indeed. But after I add them, the error still occurs and the error log doesn't change.


    **** Build of configuration Debug for project DSP_minval_66_LE_ELF ****

    "C:\\ti\\ccs1280\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

    Building target: "DSP_minval_66_LE_ELF.out"
    Invoking: C6000 Linker
    "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --define=ti_targets_elf_C66 --define=am5718 -g --diag_warning=225 --diag_wrap=off --display_error_number --debug_software_pipeline --mem_model:data=far -k --strip_coff_underscore --legacy -z -m"DSP_minval_66_LE_ELF.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/lib" -i"../../../../../../../" -i"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/mathlib_c66x_3_1_2_4/packages" -i"../../../../common/c66" -i"../../../" -i"../../" -i"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="DSP_minval_66_LE_ELF_linkInfo.xml" --rom_model -o "DSP_minval_66_LE_ELF.out" "./DSP_minval_d.obj" "../AM57xx_C66.cmd" "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/common/c66/lnk.cmd" -llibc.a
    <Linking>
    "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/common/c66/lnk.cmd", line 48: error #10264: L2SRAM memory range overlaps existing memory range IRAM_MEM
    "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/common/c66/lnk.cmd", line 54: warning #10423-D: No placement specified for ".kernel"; a default placement will be applied.
    error #10010: errors encountered during linking; "DSP_minval_66_LE_ELF.out" not built

    >> Compilation failure
    makefile:136: recipe for target 'DSP_minval_66_LE_ELF.out' failed
    gmake[1]: *** [DSP_minval_66_LE_ELF.out] Error 1
    makefile:132: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

  • Hello Xin, can you tell me what example you are trying to build? is it one that is included in the SDK?
    If so can you share the directory path?

    -josue

  • Hello Xin,

    Yes, I believe it was building already.. I looked up the error in e2e and got to this thread: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/677543/rtos-am5728-memory-range-overlap

    So I removed the linker file and rebuilt and it worked..

    **** Clean-only build of configuration Debug for project DSP_minval_66_LE_ELF ****
    
    "C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O 
     
    DEL /F  "DSP_minval_66_LE_ELF.out" 
    DEL /F "DSP_minval_d.obj" 
    DEL /F "DSP_minval_d.d" 
    DEL /F "DSP_minval_d.asm" 
    Could Not Find C:\ti\processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer\processor_sdk_rtos_am57xx_08_01_00_09\dsplib_c66x_3_4_0_4\packages\ti\dsplib\src\DSP_minval\c66\DSP_minval_66_LE_ELF\Debug\DSP_minval_66_LE_ELF.out
    Could Not Find C:\ti\processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer\processor_sdk_rtos_am57xx_08_01_00_09\dsplib_c66x_3_4_0_4\packages\ti\dsplib\src\DSP_minval\c66\DSP_minval_66_LE_ELF\Debug\DSP_minval_d.obj
    Could Not Find C:\ti\processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer\processor_sdk_rtos_am57xx_08_01_00_09\dsplib_c66x_3_4_0_4\packages\ti\dsplib\src\DSP_minval\c66\DSP_minval_66_LE_ELF\Debug\DSP_minval_d.d
    Could Not Find C:\ti\processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer\processor_sdk_rtos_am57xx_08_01_00_09\dsplib_c66x_3_4_0_4\packages\ti\dsplib\src\DSP_minval\c66\DSP_minval_66_LE_ELF\Debug\DSP_minval_d.asm
    Finished clean
     
    
    **** Build Finished ****
    
    **** Build of configuration Debug for project DSP_minval_66_LE_ELF ****
    
    "C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/DSP_minval/c66/DSP_minval_d.c"
    Invoking: C6000 Compiler
    "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --include_path="C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/DSP_minval/c66/DSP_minval_66_LE_ELF" --include_path="../../../../../../../" --include_path="C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/mathlib_c66x_3_1_2_4/packages" --include_path="../../../../common/c66" --include_path="../../../" --include_path="../../" --include_path="C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/include" --define=ti_targets_elf_C66 --define=am5728 --define=core1 -g --diag_warning=225 --diag_wrap=off --display_error_number --debug_software_pipeline --mem_model:data=far -k --strip_coff_underscore --legacy --preproc_with_compile --preproc_dependency="DSP_minval_d.d_raw"  "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/DSP_minval/c66/DSP_minval_d.c"
    Finished building: "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/DSP_minval/c66/DSP_minval_d.c"
     
    Building target: "DSP_minval_66_LE_ELF.out"
    Invoking: C6000 Linker
    "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/bin/cl6x" -mv6600 --define=ti_targets_elf_C66 --define=am5728 --define=core1 -g --diag_warning=225 --diag_wrap=off --display_error_number --debug_software_pipeline --mem_model:data=far -k --strip_coff_underscore --legacy -z -m"DSP_minval_66_LE_ELF.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/lib" -i"../../../../../../../" -i"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/mathlib_c66x_3_1_2_4/packages" -i"../../../../common/c66" -i"../../../" -i"../../" -i"C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/ti-cgt-c6000_8.3.2/include" --reread_libs --define=CORE1=1 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="DSP_minval_66_LE_ELF_linkInfo.xml" --rom_model -o "DSP_minval_66_LE_ELF.out" "./DSP_minval_d.obj" "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/common/c66/lnk.cmd"  -llibc.a 
    <Linking>
    "C:/ti/processor_sdk_rtos_am57xx_08_01_00_09-windows-x64-installer/processor_sdk_rtos_am57xx_08_01_00_09/dsplib_c66x_3_4_0_4/packages/ti/dsplib/src/common/c66/lnk.cmd", line 54: warning #10423-D: No placement specified for ".kernel"; a default placement will be applied.
    Finished building target: "DSP_minval_66_LE_ELF.out"
     
    
    **** Build Finished ****

    I chose none before building..

    Let me know if this works for you.

    -Josue

  • Thanks for your reply Josue. I followed your instruction and it built project successfully.