Linker script clarification in S32K342 controller

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Linker script clarification in S32K342 controller

2,081件の閲覧回数
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 返信

2,060件の閲覧回数
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 件の賞賛
返信