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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
313 Views
Contributor IV

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

0 Kudos
1 Solution
6 Views
Contributor IV

l have solve this problem,below is the way:

       .SRAM1 ORIGIN(m_data_2) :
{
KEEP(*(.SRAM1)) /* Keep section even if not referenced. */
} > m_data_2
.SRAM2 :AT(0X1FFFE000)
{
KEEP(*(.SRAM2))
}> m_data_2
.CUSTOM_DATA_RAM :AT(0X20000000)
{
KEEP(*(.CUSTOM_DATA_RAM))
}> m_data_2

View solution in original post

0 Kudos
1 Reply
7 Views
Contributor IV

l have solve this problem,below is the way:

       .SRAM1 ORIGIN(m_data_2) :
{
KEEP(*(.SRAM1)) /* Keep section even if not referenced. */
} > m_data_2
.SRAM2 :AT(0X1FFFE000)
{
KEEP(*(.SRAM2))
}> m_data_2
.CUSTOM_DATA_RAM :AT(0X20000000)
{
KEEP(*(.CUSTOM_DATA_RAM))
}> m_data_2

View solution in original post

0 Kudos