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.
Using an F28235 on a custom board. Code Composer Ver 3.3.38
What is the best way to merge two sections in RAM?
The EBSS section in the linker file has been allocated to RAML4 section (4K words). When I declared an Uint32 array of size around 6.3K words, the linker did obviously complain about size being over the section limit.
I removed the allocation of RAML5 (the section contiguous with RAML4), and other references to RAML5 and added that 4K to RAML4, thus making RAML4 = 8K. Everything compiles and links well now. Is this the best way to do it?
Here are the code fragments from the linker file:
RAML4 : origin = 0x00C000, length = 0x002000 /* on-chip RAM block L1 */
/* RAML5 : origin = 0x00D000, length = 0x001000 /* on-chip RAM block L1 */
.ebss : > RAML4 PAGE = 1
/* DMARAML5 : > RAML5, PAGE = 1*/
SBhushan said:I removed the allocation of RAML5 (the section contiguous with RAML4), and other references to RAML5 and added that 4K to RAML4, thus making RAML4 = 8K. Everything compiles and links well now. Is this the best way to do it?
This is a perfectly reasonable way to do it.