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.

AM2634: Program is not able to fit in memory

Part Number: AM2634


Hi Team,

I am working on adding ethernet libraries and code in empty project in empty_am263x-cc_r5fss0-0_freertos_ti-arm-clang. This is project is part of empty_am263x-cc_system_freertos. 

But I am getting below after adding one function to code

<a href="file:/C:/ti/ccs1271/ccs/tools/compiler/dmed/HTML/10099.html">#10099-D</a>  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 fails for section "GROUP_2" size 0x20cc4. 

Available memory ranges:

Please let me know how can I solve this.

Appreciate for your help!

  • 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 fails for section "GROUP_2" size 0x20cc4. Available memory ranges:
    OCRAM size: 0x40000 unused: 0x150d8 max hole: 0x150d8

  • Please check below memory allocation from linker.cmd file for reference

    MEMORY
    {
    R5F_VECS : ORIGIN = 0x0 , LENGTH = 0x40
    R5F_TCMA : ORIGIN = 0x40 , LENGTH = 0x7FC0
    R5F_TCMB : ORIGIN = 0x80000 , LENGTH = 0x8000
    SBL : ORIGIN = 0x70000000 , LENGTH = 0x40000
    OCRAM : ORIGIN = 0x70040000 , LENGTH = 0x40000
    USER_SHM_MEM : ORIGIN = 0x701D0000 , LENGTH = 0x4000
    LOG_SHM_MEM : ORIGIN = 0x701D4000 , LENGTH = 0x4000
    FLASH : ORIGIN = 0x60100000 , LENGTH = 0x80000
    RTOS_NORTOS_IPC_SHM_MEM : ORIGIN = 0x72000000 , LENGTH = 0x3E80
    MAILBOX_HSM : ORIGIN = 0x44000000 , LENGTH = 0x3CE
    MAILBOX_R5F : ORIGIN = 0x44000400 , LENGTH = 0x3CE

    /* For memory Regions not defined in this core but shared by other cores with the current core */


    }

  • Requesting for your support on this!

  • Hello Ajit,

    Apologies for delay, I was OOO.
    It seems like your requirement of memory for code variables is more than OCRAM available size.
    You can increase OCRAM region size.
    Open Syscfg -> Memory Configurator -> Memory Region -> OCRAM -> Region Size(bytes).

    Best Regards,
    Gunjan

  • No problem!

    Thanks for the response. I have increases OCRAM size for each core. It has resolved the issue. 

    I am trying to configure Ethernet as UDP server in Core_r5fss0_0. After adding app_cpswconfighandler.c file. It is throwing below error on serial terminal log

    Core 0- All tests have passed!!

    ============================

    CPSW LWIP IGMP UDP SERVER

    ============================

    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:
    0 From 4 To 2

    Assertion @ Line: 204 in C:/ti/mcu_plus_sdk_am263x_09_02_00_55/examples/networki
    ng/lwip/enet_cpsw_udp_igmp/app_cpswconfighandler.c: EnetAppUtils_isDescCached()
    == false : failed !!!

    Please let me know if anything has to be changed. 

    UDP server code runs successfully when I try to run seperately However, whenever I try to configure Core 0 to run UDP functionality it throws this error.

  • Hello Ajit,

    I don't have much background on CPSW. Can you raise separate E2E for this Enet related issue. So that it can be assigned to respective expert.

    Thanks,
    Gunjan

  • Sure Thanks Gunjan!

    I have posted it. 

    Title as below

    AM2634: EnetAppUtils_isDescCached() == false : failed !!!