AnsweredAssumed Answered

l want to set the SRAM to get what l needed setting on s32k144

Question asked by jinshuai xu on Sep 7, 2017
Latest reply on Sep 7, 2017 by jinshuai xu

now ,l want set customSection from 0x1fffc000 t0 0x1fffdfff  and customSection1 from 20000000 to 20001fff. who can tell me how to change s32k144_link.ld ? thank you . 

 

/* SRAM_L */
m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0X00004000 /*16K*/
/* SRAM_U */
m_data_2 (RW) : ORIGIN = 0x1FFFC000, LENGTH = 0x0000b000/* 16k+28k=44k=b000 */

 

 

/* Custom Section Block that can be used to place data at absolute address. */
/* Use __attribute__((section (".customSection"))) to place data here. */
.customSectionBlock ORIGIN(m_data_2) :
{
/* l want to set customSection section 8k size from 0x1fffc000 to 0x1fffdfff */??????????????????????????????
KEEP(*(.customSection)) /* Keep section even if not referenced. */
/* l want to set customSection1 section 8k size from 0x2000 0000 to 0x20001fff */????????????????????????
KEEP(*(.customSection1)) /* Keep section even if not referenced. */
} > m_data_2

Original Attachment has been moved to: hello_world.zip

Outcomes