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.

Program will not fit into available memory. Placement with alignment fails for section .const size 0x2b69a

Other Parts Discussed in Thread: CC3200

Hi,

    I am doing FFT using CMSIS FFT example on CC3200 Launchpad but during build it is showing error  "  Program will not fit into available memory. Placement with alignment fails for section .const size 0x2b69a ". snapshot has been attached, please help me

Note: FFT input length size is 2048 *4 byte as given in example, I tried to change cmd file and made changes as this 

MEMORY
{
    /* Application uses internal RAM for program and data */
    SRAM_CODE (RWX) : origin = 0x20004000, length = 0x33FD8
    SRAM_DATA (RWX) : origin = 0x20037FD8, length = 0x16000
}  

and code builded successfully but unfortunately now program is not working in debug session   
  • Hi Laxmikant,

    If you are using launchpad with pre-production device(device marking ends with HZ) you would have 176 KB for application image and in case of production device you would have 240 KB. This is starting from 0x20004000. This memory you can be distribute d among CODE and DATA. There is another 16 KB starting from 0x20000000 which can only be used for DATA section alone.

    You have allocated 295 KB which way beyond what is on the device. So update your command file to reflect what is actually on the device.

    Thanks and Regards,
    Siddaram
  • Thank you Siddaram, yeah its preproduction device ending with HZ. and thankyou so much it works!!! new setting
    MEMORY
    {
    /* Application uses internal RAM for program and data */
    SRAM_CODE (RWX) : origin = 0x20004000, length = 0x319D8
    SRAM_DATA (RWX) : origin = 0x20000000, length = 0x4000
    }