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.

CCS/TMS320C6713B: Importing CCS2(C6000) to CCSv4.2 Linker Error: No Matching Section

Part Number: TMS320C6713B

Tool/software: Code Composer Studio

Hi Team,

I am working on migrating very old DSP project (CCS 2(C6000) to upgraded version of CCS like 6 or 7. I am getting following warning in Linker: 

Description Resource Path Location Type
#10068-D no matching section mc.cmd /CORE MC Boot/link line 30 C/C++ Problem

This is bootloader project and this section loads data to RAM memory. 

I tried it in CCS 6.0.1 and 6.1.0 i got same error. I also tried on CCS v4.2 and got the same result. I also looked into other thread but could not get much info about this. 

Any help would be appreciated. 

Thanks,

  • From the Console (not Problems) view please show, by copy-n-paste, the linker invocation, and all the resulting diagnostics.  Also attach the linker command file.  So the forum will accept it, add the file extension .txt to it.

    Thanks and regards,

    -George

  • 5074.console.txt
    **** Build of configuration Debug for project CORE MC Boot ****
    
    D:\ccsv4\ccsv4\utils\gmake\gmake -k all 
    'Building file: ../src/LoadApp.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/LoadApp.pp"  "../src/LoadApp.c"
    'Finished building: ../src/LoadApp.c'
    ' '
    'Building file: ../src/LoadBoot.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/LoadBoot.pp"  "../src/LoadBoot.c"
    'Finished building: ../src/LoadBoot.c'
    ' '
    'Building file: ../src/comm.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/comm.pp"  "../src/comm.c"
    "../src/comm.c", line 295: warning: function declared implicitly
    'Finished building: ../src/comm.c'
    ' '
    'Building file: ../src/edma.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/edma.pp"  "../src/edma.c"
    'Finished building: ../src/edma.c'
    ' '
    'Building file: ../src/flash.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/flash.pp"  "../src/flash.c"
    'Finished building: ../src/flash.c'
    ' '
    'Building file: ../src/globals.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/globals.pp"  "../src/globals.c"
    'Finished building: ../src/globals.c'
    ' '
    'Building file: ../src/init.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/init.pp"  "../src/init.c"
    'Finished building: ../src/init.c'
    ' '
    'Building file: ../src/main.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/main.pp"  "../src/main.c"
    "../src/main.c", line 15: warning: nonstandard conversion between pointer to function and pointer to data
    "../src/main.c", line 21: warning: function declared implicitly
    'Finished building: ../src/main.c'
    ' '
    'Building file: ../src/parser.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/parser.pp"  "../src/parser.c"
    "../src/parser.c", line 34: warning: integer conversion resulted in a change of sign
    "../src/parser.c", line 98: warning: function declared implicitly
    "../src/parser.c", line 102: warning: function declared implicitly
    'Finished building: ../src/parser.c'
    ' '
    'Building file: ../src/reference.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/reference.pp"  "../src/reference.c"
    At end of source: warning: a translation unit must contain at least one declaration
    'Finished building: ../src/reference.c'
    ' '
    'Building file: ../src/subs.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/subs.pp"  "../src/subs.c"
    'Finished building: ../src/subs.c'
    ' '
    'Building file: ../src/timer.c'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/timer.pp"  "../src/timer.c"
    'Finished building: ../src/timer.c'
    ' '
    'Building file: ../src/vecs.asm'
    'Invoking: Compiler'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --include_path="D:/ccsv4/ccsv4/tools/compiler/c6000/include" --include_path="D:/ccsv4/C6xCSL/include" --include_path="C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/Debug" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/bios/include" --include_path="D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/include/c6000" --include_path="D:/ccsv4/xdais_7_10_00_06/packages/ti/xdais" --include_path="/include" --include_path="../include" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/vecs.pp"  "../src/vecs.asm"
    'Finished building: ../src/vecs.asm'
    ' '
    'Building target: CORE_MC_Boot.out'
    'Invoking: Linker'
    "D:/ccsv4/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6710 -g --define="_DEBUG" --define="CHIP_6713" --define="CODE_COMPOSER_DATA" --quiet --diag_warning=225 --abi=coffabi --obj_directory="../src/Debug" -z -m"CORE_MC_Boot.map" -i"D:/ccsv4/ccsv4/tools/compiler/c6000/lib" -i"D:/ccsv4/ccsv4/tools/compiler/c6000/include" -i"D:/ccsv4/bios_5_41_10_36/packages/ti/rtdx/lib/c6000" -i"D:/ccsv4/bios_5_41_10_36/packages/ti/bios/lib" -i"C:/Users/dkumar/Documents/v4workspace/CORE MC Boot" -i"/lib" --reread_libs --priority --scan_libraries --rom_model -o "CORE_MC_Boot.out"  "../lib/fastrts67x.lib" "../lib/rts6700.lib" "../lib/csl6713.lib" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/vecs.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/timer.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/subs.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/reference.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/parser.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/main.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/init.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/globals.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/flash.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/edma.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/comm.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/LoadBoot.obj" "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/src/Debug/LoadApp.obj" "../link/mc.cmd" 
    "../link/mc.cmd", line 25: warning: no matching section
    'Finished building target: CORE_MC_Boot.out'
    ' '
    D:/ccsv4/ccsv4/utils/gmake/gmake --no-print-directory post-build
    "C:/Users/dkumar/Documents/v4workspace/CORE MC Boot/postBuildStep_Debug.bat"
    Translating .\Debug\CORE_MC_Boot.out to Intel format...
       ".\Debug\CORE_MC_Boot.out"   ==> .text
       ".\Debug\CORE_MC_Boot.out"   ==> .cinit
       ".\Debug\CORE_MC_Boot.out"   ==> .switch
       ".\Debug\CORE_MC_Boot.out"   ==> .text:vecs
       ".\Debug\CORE_MC_Boot.out"   ==> APP_LOADER_TEXT
    UpgradeGen Complete.
    Checksum of 0xb014 written to address 0x1fffe
    ' '
    Build complete for project CORE MC Boot
    
    2068.linker.txt
    /****************************************************************************/
    /*  mc.cmd                                                                 */
    /*  Copyright (c) 2003  Texas Instruments Incorporated                      */
    /****************************************************************************/
    
    /* MODULE MEM */
    -stack 0x400
    
    MEMORY {
    
    /*Internal Memory / Flash Layout*/
       BOOT_LOAD   : origin = 0x00000000,  len = 0x00000400
       IRAM        : origin = 0x00000400,  len = 0x0000FA00
       APP_LOAD    : origin = 0x0000FE00,  len = 0x000001FD
       CHECKSUM    : origin = 0x0000FFFE,  len = 0x00000002
       APP_LOAD_RUN : origin = 0x0003FE00,  len = 0x000001FD
    
    /*External Memory*/
       XILINX      : origin = 0x80000000,  len = 0x00800000
       FLASH       : origin = 0x90000000,  len = 0x00800000
     }
    
    SECTIONS
    {    
    	 BOOT_TEXT	{LoadBoot.obj (.text)} 	> 	BOOT_LOAD
    
        .text:vecs:							> 	IRAM
        .text								> 	IRAM
        .csldata							> 	IRAM
        .stack								>   IRAM
        .far								>   IRAM
        .switch								>   IRAM 
        .tables 							>   IRAM
        .data   							>   IRAM
        .bss							 	>   IRAM
        .sysmem								>   IRAM
        .cinit								>   IRAM
        .const								>   IRAM
        .cio    							>   IRAM 
        BootChecksum						>	CHECKSUM
    
    	APP_LOADER_TEXT:
    	{
    		LoadApp.obj (.text)
    	}				LOAD = APP_LOAD, 
    					RUN = APP_LOAD_RUN
    
    }
    
    Hi George,

    Thanks for your reply. Please find attached both the files.

    Regards,

    Dheeraj

  • Based on what I see, I have to suspect a bug in the linker.  I need to reproduce it, and then submit a bug report.  For that I need the CCS project with the problem (the new one).  Please package it up as described in the article Project Sharing, then attach it to your next post.

    Thanks and regards,

    -George

  • Hi George, Could you please share your email ID. My company has NDA in place with TI and i will share project over email to you rather than publishing here on this platform.

    Thanks,
    Dheeraj
  • Thank you for submitting a test case through other channels.  I can reproduce the same behavior.  It is not a bug in the linker.  There are ways to make it work.

    The problem line in the linker command file is ...

    BOOT_TEXT   {LoadBoot.obj (.text)}  >       BOOT_LOAD

    This says to create an output section named BOOT_TEXT.  It has one input section, named .text, which comes from the object file LoadBoot.obj.  The source file LoadBoot.c contains one function named v_LoadBoot.  There are no other calls to this function in the program.  Thus, the linker removes it, via a feature named conditional linking.  Conditional linking is not implemented in older versions of the compiler.  When you upgraded your compiler, you effectively turned conditional linking on without knowing it.

    You can disable conditional linking two ways.  Both methods are options to the linker.  One is to use --disable_clink.  This disables all conditional linking.  A more targeted approach is to use the option --undef_sym=_v_LoadBoot.  This tells the linker to recognize that symbol, and effectively disables conditional linking for just this one function.  Note I added a "_" to the front of the function name.  That is because you build with the older COFFABI, and not the newer EABI.  Under EABI, conditional linking works, and is controlled, differently.

    Thanks and regards,

    -George

  • Thanks George for the inputs , This helps removing that warning but the project is not working. I mean the Hex created are different and System is not working with the New Hex file. Any inputs would be appreciated.
  • Make sure the function v_LoadBoot is present and at the correct address.  If that checks out, then I don't know what else could be wrong.

    Thanks and regards,

    -George

  • Please let us know how you resolved the problem.

    Thanks and regards,

    -George
  • Since it has been a while, I presume you have resolved the problem. I'd appreciate knowing how you resolved it.

    Thanks and regards,

    -George