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 ...

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

    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           

    4403.BuildLog.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    **** 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"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    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 ...

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

    Thanks and regards,

    -George

  • Thanks This solves my problem perfect!Grinning