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/TMS320F28335: What to do to fix the warning

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Have a nice day.

After building the project, I received a warning:

#10247-D creating output section "ramfuncs" without a SECTIONS specification MyStepperDriver C/C++ Problem.

How to fix the error in my project? What need to do?

  • The immediate reason for the problem is that your program creates an output section named ramfuncs, but your linker command file does not specify where to allocate it in memory.  Thus, it gets allocated according to the default specification, which rarely works.

    A A3 said:
    How to fix the error in my project?

    I'm not sure.  I need more information.

    I presume you use CCS to build the project.  Please do a complete rebuild of the project.  Right click on the name of the project and select Rebuild Project.  Then save the contents of the Console (not Problems) view to a text file.  Use the icon named Copy Build Log.  When you name the log file, be sure to use the file extension .txt.  Please attach that text file to your next post.

    Also attach your linker command file.  It is a text file, similar to a C source file.  It is usually located in your project, next to your source files, but with the file extension .cmd.  So the forum will accept it, add the file extension .txt to it.

    Thanks and regards,

    -George

  • Have a nice day!

    Send file "Copy Build Log.txt" and my project, as have for clarity .

    Thanks A

    **** Build of configuration Release for project MyStepperDriver ****
    
    "C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 4 all -O 
     
    Building file: "../LibraryTMS/DSP2833x_ADC_cal.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_ADC_cal.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_ADC_cal.asm"
    Finished building: "../LibraryTMS/DSP2833x_ADC_cal.asm"
     
    Building file: "../Code/source/epwmSetup.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="Code/source/epwmSetup.d_raw" --obj_directory="Code/source"  "../Code/source/epwmSetup.c"
    Finished building: "../Code/source/epwmSetup.c"
     
    Building file: "../Code/source/posspeed.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="Code/source/posspeed.d_raw" --obj_directory="Code/source"  "../Code/source/posspeed.c"
    Finished building: "../Code/source/posspeed.c"
     
    Building file: "../main.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="main.d_raw"  "../main.c"
    Finished building: "../main.c"
     
    Building file: "../LibraryTMS/DSP2833x_CodeStartBranch.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_CodeStartBranch.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_CodeStartBranch.asm"
    Finished building: "../LibraryTMS/DSP2833x_CodeStartBranch.asm"
     
    Building file: "../LibraryTMS/DSP2833x_CpuTimers.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_CpuTimers.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_CpuTimers.c"
    Finished building: "../LibraryTMS/DSP2833x_CpuTimers.c"
     
    Building file: "../LibraryTMS/DSP2833x_DefaultIsr.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_DefaultIsr.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_DefaultIsr.c"
    Finished building: "../LibraryTMS/DSP2833x_DefaultIsr.c"
     
    Building file: "../LibraryTMS/DSP2833x_MemCopy.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_MemCopy.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_MemCopy.c"
    Finished building: "../LibraryTMS/DSP2833x_MemCopy.c"
     
    Building file: "../LibraryTMS/DSP2833x_ECan.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_ECan.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_ECan.c"
    Finished building: "../LibraryTMS/DSP2833x_ECan.c"
     
    Building file: "../LibraryTMS/DSP2833x_DMA.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_DMA.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_DMA.c"
    Finished building: "../LibraryTMS/DSP2833x_DMA.c"
     
    Building file: "../LibraryTMS/DSP2833x_GlobalVariableDefs.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_GlobalVariableDefs.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_GlobalVariableDefs.c"
    Finished building: "../LibraryTMS/DSP2833x_GlobalVariableDefs.c"
     
    Building file: "../LibraryTMS/DSP2833x_PieCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_PieCtrl.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_PieCtrl.c"
    Finished building: "../LibraryTMS/DSP2833x_PieCtrl.c"
     
    Building file: "../LibraryTMS/DSP2833x_PieVect.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_PieVect.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_PieVect.c"
    Finished building: "../LibraryTMS/DSP2833x_PieVect.c"
     
    Building file: "../LibraryTMS/DSP2833x_Sci.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_Sci.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_Sci.c"
    Finished building: "../LibraryTMS/DSP2833x_Sci.c"
     
    Building file: "../LibraryTMS/DSP2833x_usDelay.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_usDelay.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_usDelay.asm"
    Finished building: "../LibraryTMS/DSP2833x_usDelay.asm"
     
    Building file: "../LibraryTMS/DSP2833x_SysCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_SysCtrl.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_SysCtrl.c"
    Finished building: "../LibraryTMS/DSP2833x_SysCtrl.c"
     
    Building file: "../LibraryTMS/DSP2833x_Xintf.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/LibraryTMS" --include_path="C:/Users/Andrey/workspace_v9/MyStepperDriver/Code/header" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="LibraryTMS/DSP2833x_Xintf.d_raw" --obj_directory="LibraryTMS"  "../LibraryTMS/DSP2833x_Xintf.c"
    Finished building: "../LibraryTMS/DSP2833x_Xintf.c"
     
    Building target: "MyStepperDriver.out"
    Invoking: C2000 Linker
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O2 --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"MyStepperDriver.map" --stack_size=0x300 --warn_sections -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/lib" -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="MyStepperDriver_linkInfo.xml" --rom_model -o "MyStepperDriver.out" "./main.obj" "./Code/source/epwmSetup.obj" "./Code/source/posspeed.obj" "./LibraryTMS/DSP2833x_ADC_cal.obj" "./LibraryTMS/DSP2833x_CodeStartBranch.obj" "./LibraryTMS/DSP2833x_CpuTimers.obj" "./LibraryTMS/DSP2833x_DMA.obj" "./LibraryTMS/DSP2833x_DefaultIsr.obj" "./LibraryTMS/DSP2833x_ECan.obj" "./LibraryTMS/DSP2833x_GlobalVariableDefs.obj" "./LibraryTMS/DSP2833x_MemCopy.obj" "./LibraryTMS/DSP2833x_PieCtrl.obj" "./LibraryTMS/DSP2833x_PieVect.obj" "./LibraryTMS/DSP2833x_Sci.obj" "./LibraryTMS/DSP2833x_SysCtrl.obj" "./LibraryTMS/DSP2833x_Xintf.obj" "./LibraryTMS/DSP2833x_usDelay.obj" "../28335_RAM_lnk.cmd" "../LibraryTMS/DSP2833x_Headers_nonBIOS.cmd"  -llibc.a 
    <Linking>
    warning #10247-D: creating output section "ramfuncs" without a SECTIONS specification
    Finished building target: "MyStepperDriver.out"
     
    
    **** Build Finished ****
    
    MyStepperDriver.zip

  • Thank you for the test case.  I can reproduce the behavior.

    The problem is that the code in the directory LibraryTMS does not agree with the linker command file F28335.cmd.  It appears the code in LibraryTMS is old, and the linker command file is current.  

    The source file LibraryTMS\DSP2833x_usDelay.asm creates a section named ramfuncs with this source line ...

           .sect "ramfuncs"

    The linker command file F28335.cmd contains these lines ...

    #ifdef __TI_COMPILER_VERSION__
       #if __TI_COMPILER_VERSION__ >= 15009000
        .TI.ramfunc : {} LOAD = FLASHD,
                             RUN = RAML0,
                             LOAD_START(_RamfuncsLoadStart),
                             LOAD_END(_RamfuncsLoadEnd),
                             RUN_START(_RamfuncsRunStart),
                             PAGE = 0
       #else
       ramfuncs            : LOAD = FLASHD, 
                             RUN = RAML0, 
                             LOAD_START(_RamfuncsLoadStart),
                             LOAD_END(_RamfuncsLoadEnd),
                             RUN_START(_RamfuncsRunStart),
                             PAGE = 0   
       #endif
    #endif
    

    I will not go through all the details of these lines, but only the details relevant to the linker warning.  If the version of the linker is 15.9.0.STS or newer, it collects together all the input sections named .TI.ramfunc.  Otherwise, it collects together all the input sections named ramfuncs.  You use linker version 18.12.4.LTS, so input sections named .TI.ramfunc are collected.  When an input section named ramfuncs is seen, there is no allocation specification for it, and so the warning is issued.

    One short term fix to consider is to change that line in the file DSP2833x_usDelay.asm to ...

           .sect ".TI.ramfunc"

    The longer term fix is to update all the files in the directory LibraryTMS.  I presume they come from C2000Ware.

    Thanks and regards,

    -George