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.

Compiler/CC2650STK: Build in debug too large

Part Number: CC2650STK
Other Parts Discussed in Thread: CC2650,

Tool/software: TI C/C++ Compiler

I am trying to set breakpoints in the Sensortag CC2650 app and check various values.  When I try to build the app without optimization (set level to 0),  I get the following,

<Linking>
"C:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx/ccs/cc26xx_app_oad.cmd", line 124: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".text" size 0x134d0 . Available memory ranges:
FLASH size: 0x10010 unused: 0xf442 max hole: 0xf442
error #10010: errors encountered during linking; "sensortag_cc2650stk_app.out" not built

gmake[1]: *** [sensortag_cc2650stk_app.out] Error 1
>> Compilation failure
makefile:229: recipe for target 'sensortag_cc2650stk_app.out' failed
gmake: *** [all] Error 2
makefile:225: recipe for target 'all' failed

**** Build Finished ****

Suggestions?

  • Hi Duane,

    I advised you at your other post to set the optimization to 0 if you want to debug. For CCS SensorTag example program for CC2650 Launchpad, do not do that because you will get the "program will not fit into available memory" error. The SensorTag example program occupies almost all of the CC2650 Internal Flash Space.

    So, for CCS SensorTag example program for CC2650 Launchpad, set the optimization to 4 -Whole Program Optimizations and Speed vs Size trade-offs to 0. You can still do CCS Debug at these Optimization Settings, but in some cases the program will not stop at your breakpoint.

    - kel

  • Yes, but I want to set a breakpoint at SensorTagKeys_processKeyLeft (or any of the routines in SensorTag_keys.c but I cannot. So, I assume it is because of the optimization. Suggestions to set breakpoints in that C file?
  • Duane Perry said:
    Yes, but I want to set a breakpoint at SensorTagKeys_processKeyLeft (or any of the routines in SensorTag_keys.c but I cannot. So, I assume it is because of the optimization.

    Yes, when you set the optimization 4 - Whole Program you will encounter this problem, not able to set breakpoint.

    Duane Perry said:
    Suggestions to set breakpoints in that C file?

    Ask that at CCS Forum.

    - kel