AnsweredAssumed Answered

Why is the S32K RAM in 2 segments in the linker file

Question asked by Tom Christiansen on Oct 15, 2019
Latest reply on Oct 15, 2019 by Santiago Gonzalez Fabian

In the default linker files the RAM is broken into 2 different segments SRAM_L and SRAM_U.  For example on the S32k144

 

/* SRAM_L */
m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00008000

/* SRAM_U */
m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00007000

 

The addressing is continuous so is it OK to combine these or is there a good reason to keep them split.  For example can I do the following?

 

/* SRAM */
m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x0000F000

Outcomes