AnsweredAssumed Answered

    how to set s32k1xx_flash.ld to set the needed memory for saving data  

Question asked by jinshuai xu on Aug 15, 2017
Latest reply on Aug 17, 2017 by Daniel Martynek

           l want to set 4k pflash bytes to save data, and set 4k dflash to save data. For example ,there are

"uint8_t p_flash_data1[1024]" and "uint8_t p_flash_data1[3072]",now l want to set "app_data" to save p_flash_data1[512] and p_flash_data2 [512] .who can tell me how to change the"s32k1xx_flash.id" ,thank you for you response.

          below is the "s32k1xx_flash.id" code.

MEMORY
{
/* Flash */
m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400
m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x00008000-0x410

app_data (RW) : ORIGIN = 0X00008000, LENGTH = 0X1000; /* I add 4k bytes memory to save data */
ccp_data (RW) : ORIGIN = 0x10000000, LENGTH = 0X1000; /* I add 4k bytes memory to save ccp data */

/* SRAM_L */
m_data (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00008000
/* SRAM_U */
m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00007000
}

Outcomes