Linker script clarification in S32K342 controller

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Linker script clarification in S32K342 controller

708 次查看
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. 

标记 (1)
0 项奖励
1 回复

687 次查看
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 项奖励