ld link file to do partition modification

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

ld link file to do partition modification

1,822 次查看
zenging
Contributor I

HI,NXP

I would like to ask how to do the correct partition modification, because I tried to re-partition the memory by modifying the ld file, but when I finished the modification to compile. A hard error message is displayed.

企业微信截图_1727666701490.png

0 项奖励
回复
5 回复数

1,782 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @zenging,

What modification have you made in the linker file?

 

0 项奖励
回复

1,778 次查看
zenging
Contributor I

HI@danielmartynek

This is the original default link file, because the SRAM of s32K311 is 32KB by default, and the underlying library I used here is about 70KB, which is obviously not enough. Therefore, my original practice is to free up the memory size of dtcm for expanding sram, but it will cause hard failure. Would like to ask if there is any way to make the dtcm section of memory and sram together 

企业微信截图_17283771493599.png

0 项奖励
回复

1,769 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @zenging,

DTCM and SRAM cannot be in one section.

These are different memories, mapped to different addresses.

danielmartynek_0-1728390332128.png

danielmartynek_1-1728390541789.png

 

Regards,

Daniel

0 项奖励
回复

1,761 次查看
zenging
Contributor I

Hi,@danielmartynek 

So is there any other solution, because the library file I imported is too large.

企业微信截图_17283578082919.png

0 项奖励
回复

1,746 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

This example shows how to place functions into ITCM and data into DTCM:

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-Siul2-Port-Ip-Example-S32K344-ITCM-DTCM-S32...

 

BR, Daniel

0 项奖励
回复