Linker script clarification in S32K342 controller

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linker script clarification in S32K342 controller

664 Views
Ganesh_Pawar
Contributor III
 

Hi,

                Greetings for the day...!!!

This is regarding the Linker scripts for the S32K342 series controller ,

The Memory section as per the Datasheet is as follows:

a) PFLASH : 2MB , DFlash : 128 kB 

b) SRAM : 256 kB including 192 kB of TCM .

The following FLASH memory as mentioned above gets reflected in the linker script once the project is created, but not the same for the SRAM the allocated memory is only 27kB .

I would like you to clarify why is that only 27kB is allocated as a default memory.

Also If any changes in the linker script In the memory section will that affect the execution of the code ?

PS : Attached the block diagram and the generated linker script for the S32K. 

Tags (1)
0 Kudos
1 Reply

643 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Ganesh_Pawar,

The S32K342 part has

  • 64KB of SRAM
  • 64KB of ITCM
  • 128KB of DTCM

S32K3xx_memory_map.xlsx

danielmartynek_0-1684481559382.png

And the linker file already uses the whole SRAM (64KB)

danielmartynek_1-1684481645606.png

 

The default linker file is just an example, it can be modified as needed,

 

Regards,

Daniel

 

 

 

0 Kudos