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.

TMS320F28069M: C2000 microcontrollers forum

Part Number: TMS320F28069M


Hi,

If I want to generate a heavy .hex for my device, how can I increase the "weight" of my file?

I tried creating an empty array, but without any results; somebody have any other tip I can use?

  • Initialize the array ...

    volatile const long bigArray[10000] = { 0 };

    Thanks and regards,

    -George

  • the size of file hex still doesn't changePensive

  • For the source file that defines bigArray, please follow the directions in the article How to Submit a Compiler Test Case.

    Thanks and regards,

    -George

  • HI

    This is Source File5238.Example_2806xLEDBlink.zip

    and my compire version is:

    ******************************************************************************
    TMS320C2000 Linker PC v22.6.0
    ******************************************************************************

    This is my build log file           

    **** Build of configuration Debug for project Example_2806xLEDBlink ****
    
    "C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake" -k all 
     
    Building file: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_CodeStartBranch.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --opt_for_speed=5 --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/IQmath/c28/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi  "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_CodeStartBranch.asm"
    Finished building: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_CodeStartBranch.asm"
     
    Building file: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_CpuTimers.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --opt_for_speed=5 --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/IQmath/c28/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi  "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_CpuTimers.c"
    Finished building: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_CpuTimers.c"
     
    Building file: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_DefaultIsr.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --opt_for_speed=5 --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/IQmath/c28/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi  "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_DefaultIsr.c"
    Finished building: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_DefaultIsr.c"
     
    Building file: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/source/F2806x_GlobalVariableDefs.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --opt_for_speed=5 --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/IQmath/c28/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi  "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/source/F2806x_GlobalVariableDefs.c"
    Finished building: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/source/F2806x_GlobalVariableDefs.c"
     
    Building file: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_PieCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --opt_for_speed=5 --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/IQmath/c28/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi  "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_PieCtrl.c"
    Finished building: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_PieCtrl.c"
     
    Building file: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_PieVect.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --opt_for_speed=5 --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/IQmath/c28/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi  "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_PieVect.c"
    Finished building: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_PieVect.c"
     
    Building file: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_SysCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --opt_for_speed=5 --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/IQmath/c28/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi  "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_SysCtrl.c"
    Finished building: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_SysCtrl.c"
     
    Building file: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_usDelay.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --opt_for_speed=5 --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/IQmath/c28/include" --include_path="C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi  "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_usDelay.asm"
    Finished building: "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/source/F2806x_usDelay.asm"
     
    Building target: "Example_2806xLEDBlink.out"
    Invoking: C2000 Linker
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --opt_for_speed=5 --define=_DEBUG --define=LARGE_MODEL -g --preproc_with_comment --preproc_with_compile --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --abi=coffabi -z -m"Example_2806xLEDBlink.map" --stack_size=0x200 --warn_sections -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/lib" -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" -i"C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/common/lib" -i"C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/IQmath/c28/lib" -i"C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/lib" --priority --reread_libs --issue_remarks --verbose_diagnostics --xml_link_info="Example_2806xLEDBlink_linkInfo.xml" --entry_point=code_start --rom_model -o "Example_2806xLEDBlink.out" -lrts2800_fpu32_fast_supplement.lib -lrts2800_fpu32.lib "./Example_2806xLEDBlink.obj" "./F2806x_CodeStartBranch.obj" "./F2806x_CpuTimers.obj" "./F2806x_DefaultIsr.obj" "./F2806x_GlobalVariableDefs.obj" "./F2806x_PieCtrl.obj" "./F2806x_PieVect.obj" "./F2806x_SysCtrl.obj" "./F2806x_usDelay.obj" "../F28069.cmd" "C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/device_support/f2806x/headers/cmd/F2806x_Headers_nonBIOS.cmd"  -lIQmath_fpu32.lib 
    note: linking in "IQmath_fpu32_coff.lib" in place of index library
       "IQmath_fpu32.lib"
    warning: cannot resolve archive
       C:/ti/tirex-product-tree/C2000Ware_4_03_00_00/libraries/math/FPUfastRTS/c28/
       lib/rts2800_fpu32_fast_supplement.lib to a compatible library, as no input
       files have been encountered; build attribute information from input files is
       needed to determine library compatibility
    Finished building target: "Example_2806xLEDBlink.out"
     
    Building secondary target: "Example_2806xLEDBlink.bin"
    Invoking: C2000 Hex Utility
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/hex2000" --memwidth=16 --romwidth=16 --diag_wrap=off --intel -o "Example_2806xLEDBlink.bin"  "Example_2806xLEDBlink.out" 
    Translating to Intel format...
       "Example_2806xLEDBlink.out" .text ==> .text
       "Example_2806xLEDBlink.out" .econst ==> .econst
       "Example_2806xLEDBlink.out" .cinit ==> .cinit
       "Example_2806xLEDBlink.out" codestart ==> codestart
    Finished building secondary target: "Example_2806xLEDBlink.bin"
     
    
    **** Build Finished ****
    

    Thanks

  • The linker removes bigArray because it is never read or written by any function in the program.  Add some code that reads and/or writes to bigArray.  Or, you can force the tools to keep it by adding this pragma ...

    #pragma RETAIN(bigArray)
    volatile const long bigArray[10000] = {0};

    Thanks and regards,

    -George

  • Thanks This solves my problem perfect!Grinning