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/CCSTUDIO-C2000: Split a large file into sections

Part Number: CCSTUDIO-C2000

Tool/software: TI C/C++ Compiler

Hi,

While linking a large file of size 0x12fe to my project, I get the following error: 

program will not fit into available memory. placement with alignment/blocking fails for section ".text" size 0x12fe page 0.

In the linker command file I have .text mapped to multiple RAM sections:

.text : >> RAMD0 | RAMD1 | RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3 | RAMLS4 | RAMLS5

where each section is of size 0x800. The combined size is definitely bigger than the actual size of .text section.

That's when I realized, even if we OR multiple memory sections, linker tries to fit in the complete c file into one of the memories. Please correct me if I am wrong.

One workaround I am doing currently is to combine the memories and define a bigger memory block

.text : >> RAMD0 | RAMD1 | RAMLS0123

where RAMLS0123 is defined as memory of size 0x2000

I would prefer to retain separate memory blocks in the linker command file. Is there a way I can tell the linker to split the file into smaller chunks and place it across the memories?

Regards,

Veena