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/TMS320F280049: --relocatable option

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi Champs,

When "--relocatable, -r" setting is checked, the CCS shows many errors after "build project" is done.


Could you please let me know why there are so many errors shown?
A customer would like to use this feature, however, there are same errors.

Thank you for your kind teaching me the purpose of --relocatable option.
Best regards,
Hitoshi

  • For some reason the screen shots are not visible.  

    Please try the problem build again.  But do not take any screen shots.  Instead, in the Console view, save the build log to a text file.  Use the icon titled Copy Build Log.  When you name the file, be sure to use the file extension .txt.  Attach that text file to your next post.

    Thanks and regards,

    -George

  • Hi George,

    Thank you for your advice.
    Could you please look into the attached file?
    It is easily duplicated at your side I believe.

    CCS  Version: 10.0.0.00010 
    Example project : C:\ti\c2000\C2000Ware_3_02_00_00\device_support\f28004x\examples\launchxl\launchxl_ex1_f280049c_demo

    Option: Property -> Build -> C2000 Linker -> Advanced Options -> Linker Output   
    Check "Produce a relocatable output module ( -- relocatable, -r )"

    Thank you for your kind observation.
    Best regards,
    Hitoshi

    -relocatable_option_errors.txt
    **** Build of configuration CPU1_RAM for project launchxl_ex1_f280049c_demo ****
    
    "C:\\ti\\ccs1000\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building target: "launchxl_ex1_f280049c_demo.out"
    Invoking: C2000 Linker
    "C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 -Ooff --define=CPU1 --diag_suppress=10063 --diag_suppress=552 --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"launchxl_ex1_f280049c_demo.map" --heap_size=0x400 --stack_size=0x100 --warn_sections -i"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/lib" -i"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --reread_libs --diag_wrap=off --display_error_number --relocatable --xml_link_info="launchxl_ex1_f280049c_demo_linkInfo.xml" --entry_point=code_start --rom_model -o "launchxl_ex1_f280049c_demo.out" "./f28004x_adc.obj" "./f28004x_codestartbranch.obj" "./f28004x_defaultisr.obj" "./f28004x_globalvariabledefs.obj" "./f28004x_gpio.obj" "./f28004x_piectrl.obj" "./f28004x_pievect.obj" "./f28004x_sysctrl.obj" "./f28004x_usdelay.obj" "./launchxl_ex1_f280049c_demo.obj" "./launchxl_ex1_sci_io.obj" "../28004x_launchpad_demo_ram_lnk.cmd" "../f28004x_headers_nonbios.cmd"  -llibc.a 
    <Linking>
    "../f28004x_headers_nonbios.cmd", line 181: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "Cmpss2RegsFile" size 0x20page 1.  Available memory ranges:
       CMPSS2       size: 0x20         unused: 0x20         max hole: 0x20      
    "../f28004x_headers_nonbios.cmd", line 183: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "Cmpss4RegsFile" size 0x20page 1.  Available memory ranges:
       CMPSS4       size: 0x20         unused: 0x20         max hole: 0x20      
    "../f28004x_headers_nonbios.cmd", line 185: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "Cmpss6RegsFile" size 0x20page 1.  Available memory ranges:
       CMPSS6       size: 0x20         unused: 0x20         max hole: 0x20      
    "../f28004x_headers_nonbios.cmd", line 261: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "XbarRegsFile" size 0x20page 1.  Available memory ranges:
       XBAR         size: 0x20         unused: 0x20         max hole: 0x20      
    "../f28004x_headers_nonbios.cmd", line 201: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "DcsmCommonRegsFile" size 0x10page 1.  Available memory ranges:
       DCSM_COMMON   size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 245: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradCounter2RegsFile" size 0x10page 1.  Available memory ranges:
       ERAD_CTR2    size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 246: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradCounter3RegsFile" size 0x10page 1.  Available memory ranges:
       ERAD_CTR3    size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 247: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradCounter4RegsFile" size 0x10page 1.  Available memory ranges:
       ERAD_CTR4    size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 214: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "Pga2RegsFile" size 0x10page 1.  Available memory ranges:
       PGA2         size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 215: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "Pga3RegsFile" size 0x10page 1.  Available memory ranges:
       PGA3         size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 216: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "Pga4RegsFile" size 0x10page 1.  Available memory ranges:
       PGA4         size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 218: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "Pga6RegsFile" size 0x10page 1.  Available memory ranges:
       PGA6         size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 219: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "Pga7RegsFile" size 0x10page 1.  Available memory ranges:
       PGA7         size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 279: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "ScibRegsFile" size 0x10page 1.  Available memory ranges:
       SCIB         size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 284: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "SpibRegsFile" size 0x10page 1.  Available memory ranges:
       SPIB         size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 189: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "CpuTimer1RegsFile" size 0x8page 1.  Available memory ranges:
       CPU_TIMER1   size: 0x8          unused: 0x8          max hole: 0x8       
    "../f28004x_headers_nonbios.cmd", line 190: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "CpuTimer2RegsFile" size 0x8page 1.  Available memory ranges:
       CPU_TIMER2   size: 0x8          unused: 0x8          max hole: 0x8       
    "../f28004x_headers_nonbios.cmd", line 237: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradHWBP2RegsFile" size 0x8page 1.  Available memory ranges:
       ERAD_HWBP2   size: 0x8          unused: 0x8          max hole: 0x8       
    "../f28004x_headers_nonbios.cmd", line 238: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradHWBP3RegsFile" size 0x8page 1.  Available memory ranges:
       ERAD_HWBP3   size: 0x8          unused: 0x8          max hole: 0x8       
    "../f28004x_headers_nonbios.cmd", line 239: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradHWBP4RegsFile" size 0x8page 1.  Available memory ranges:
       ERAD_HWBP4   size: 0x8          unused: 0x8          max hole: 0x8       
    "../f28004x_headers_nonbios.cmd", line 240: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradHWBP5RegsFile" size 0x8page 1.  Available memory ranges:
       ERAD_HWBP5   size: 0x8          unused: 0x8          max hole: 0x8       
    "../f28004x_headers_nonbios.cmd", line 241: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradHWBP6RegsFile" size 0x8page 1.  Available memory ranges:
       ERAD_HWBP6   size: 0x8          unused: 0x8          max hole: 0x8       
    "../f28004x_headers_nonbios.cmd", line 242: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradHWBP7RegsFile" size 0x8page 1.  Available memory ranges:
       ERAD_HWBP7   size: 0x8          unused: 0x8          max hole: 0x8       
    "../f28004x_headers_nonbios.cmd", line 243: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "EradHWBP8RegsFile" size 0x8page 1.  Available memory ranges:
       ERAD_HWBP8   size: 0x8          unused: 0x8          max hole: 0x8       
    "../f28004x_headers_nonbios.cmd", line 274: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "PieCtrlRegsFile" size 0x1apage 1.  Available memory ranges:
       PIE_CTRL     size: 0x20         unused: 0x20         max hole: 0x20      
    "../f28004x_headers_nonbios.cmd", line 161: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "AdcbResultFile" size 0x18page 1.  Available memory ranges:
       ADCB_RESULT   size: 0x20         unused: 0x20         max hole: 0x20      
    "../f28004x_headers_nonbios.cmd", line 295: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "XintRegsFile" size 0xbpage 1.  Available memory ranges:
       XINT         size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 193: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "DacbRegsFile" size 0x8page 1.  Available memory ranges:
       DACB         size: 0x10         unused: 0x10         max hole: 0x10      
    "../f28004x_headers_nonbios.cmd", line 270: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment/blocking fails for section "NmiIntruptRegsFile" size 0x7page 1.  Available memory ranges:
       NMIINTRUPT   size: 0x10         unused: 0x10         max hole: 0x10      
    "../28004x_launchpad_demo_ram_lnk.cmd", line 71: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. placement with alignment/blocking fails for section ".text" size 0x2acapage 0.  Available memory ranges:
       RAMM0        size: 0x30d        unused: 0x0          max hole: 0x0       
       RAMLS0_LS3   size: 0x2000       unused: 0x1          max hole: 0x1       
       RAMLS4       size: 0x800        unused: 0x0          max hole: 0x0       
    error #10010: errors encountered during linking; "launchxl_ex1_f280049c_demo.out" not built
     
    >> Compilation failure
    makefile:152: recipe for target 'launchxl_ex1_f280049c_demo.out' failed
    gmake[1]: *** [launchxl_ex1_f280049c_demo.out] Error 1
    gmake: *** [all] Error 2
    makefile:148: recipe for target 'all' failed
    
    **** Build Finished ****
    

  • I apologize for the delay.

    Thank you for the additional information.  I am able to reproduce the problem.  I filed the entry EXT_EP-9942 to have this investigated.  You are welcome to follow it with the link below in my signature.

    Unfortunately, I was not able to find a workaround.  Perhaps the investigation by the development team will find a workaround.

    Why do you use --relocatable?  Please describe the problem you want to solve, without regard for how you might solve it.

    Thanks and regards,

    -George

  • Hi George,

    Thank you so much for reproducing the problem at your side.
    This has come from a customer.
    will share the reason why they need this option.

    Will keep you infomed.
    Best regards,
    Hitoshi

  • Hi George,

    I would like to close the thread.
    If there is another question come, will post a new thread.

    Thank you so much for your kind reproducing the problem and taking care of it.
    Best regards,
    Hitoshi