AnsweredAssumed Answered

Why is SRAM split, and what does it mean?

Question asked by Joey Gouly on Oct 20, 2016
Latest reply on Nov 2, 2016 by rasto

Hi,

 

I'm using a linkerscript file that I borrowed from another project.

 

MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 256K
RAM (rwx) : ORIGIN = 0x1FFFF800, LENGTH = 8K
}

 

So far my applications haven't used much memory, so the 'artifical' limit of 8KB RAM isn't an issue (the device has 32KB), but I'd like to make the linkerscript reflect reality.

 

Is this correct for the MKL27Z256:

 

MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 256K
RAM (rwx) : ORIGIN = 0x1FFFFE00, LENGTH = 32K
}

 

Does my code need to be aware of the split in the SRAM? If it does, should I set my RAM ORIGIN to be 0x2000_0000 and have a size of 24K?

Outcomes