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: Program will not fit into memory.placement will alignment fails for section".cinit" size 0x5ce.

Tool/software: TI C/C++ Compiler

Team,

I am facing issue while build the project.

I am attaching the screenshot for the reference.

  • It is likely that many output sections are allocated to the SRAM memory range, including the output section .cinit. The .cinit section is somehow the last one to get placed, and that's when it is discovered there is no room left. 

    Consider allocating .cinit to a different memory range, such as SRAM0.  I lack the expertise to tell you whether this change will cause yet other problems.  Such a change is implemented in the linker command file.  Please see the article Linker Command File Primer.  It explains the linker command file you have now, so you can understand how to change it.

    If these suggestions do not help, then please indicate which TI CPU you use.  I'll notify the experts on that device about this thread.

    Thanks and regards,

    -George