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.

LAUNCHXL-CC2650: Adding another Service to Project Zero causes program will not fit into available memory error?

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: LAUNCHXL-CC2640R2, CC2640R2F

Hi,

    I just added BUZZER SERVICE with 3 Characteristics to Project Zero and I am getting the error "program will not fit into available memory" error. I have read at other posts that I should modify the .opt file at stack project to remove features that I do not need. However every entry is commented out except -DGAP_BOND_MGR. So there is not much I can do at .opt file to fix the problem

    Do I increase the value of these predefined symbols below, since I added another service to project zero? How do I fix this problem?

    ICALL_MAX_NUM_ENTITIES=6

    ICALL_MAX_NUM_TASKS=3

Error Message:

program will not fit into available memory.  placement with alignment fails for section ".const" size 0x1e14 .

 Available memory ranges: cc26xx_app.cmd /project_zero_app_cc2650launchxl/TOOLS line 121 C/C++ Problem

- kel

  • Hi,

    Here is the console error message below.

    "c:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx/ccs/cc26xx_app.cmd", line 121: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".const" size 0x1e14 . Available memory ranges:
    FLASH size: 0xe000 unused: 0xe7a max hole: 0xe70
    FLASH_LAST_PAGE size: 0x1000 unused: 0xfa8 max hole: 0xfa8
    error #10010: errors encountered during linking; "project_zero_app_cc2650launchxl.out" not built

    It build without errors, after doing this below at cc26xx_app.cmd. But, if I program both app and stack hex files at SmartRF Flash Programmer 2, it fails programming. So, there must be something else that needs to be changed.

    /* The starting address of the application. Normally the interrupt vectors */
    /* must be located at the beginning of the application. Flash is 128KB, with */
    /* sector length of 4KB */
    #define FLASH_APP_BASE 0x00000000
    #define FLASH_LEN 0x20000
    //#define FLASH_PAGE_LEN 0x1000 //original
    #define FLASH_PAGE_LEN 0x2000 //my fix

    I tried also the fix from this post below. But, did not work for me.

    e2e.ti.com/.../477933

    - kel
  • Hello Kel,

    Have you tried to remove debugging related code? Also, are you using an OAD configuration? These configurations will result in less available flash memory.

    Also, for future product development, the CC2640R2F with the LAUNCHXL-CC2640R2 LaunchPad can be used to run Project Zero with more available flash memory.

    Best wishes
  • JXS said:
    Have you tried to remove debugging related code? Also, are you using an OAD configuration? These configurations will result in less available flash memory.

    I imported a fresh copy of Project Zero to my CCS workspace. I used Bluetooth Developer Studio and opened Project Zero.bds file. At Project Zero.bds there are 3 BLE Services, the LED SERVICE, BUTTON SERVICE and DATA SERVICE. I add another BLE Service, the BUZZER SERVICE, with 3 characteristics.

    I generated code using TI Plugin, then I copied the files to Project Zero CCS Project as instructed at the Simplelink Academy BDS module. I get the error program will not fit in available memory.

    I will try to remove debugging related code and see if the error will be resolved. 

    For now I am abandoning this approach for product development and use the sensortag_cc2650lp_app example program instead. I will port sensortag_cc2650lp_app example program to CC2640R2 Launchpad.

    - kel