ld link file to do partition modification

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

ld link file to do partition modification

1,812件の閲覧回数
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,772件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @zenging,

What modification have you made in the linker file?

 

0 件の賞賛
返信

1,768件の閲覧回数
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,759件の閲覧回数
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,751件の閲覧回数
zenging
Contributor I

Hi,@danielmartynek 

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

企业微信截图_17283578082919.png

0 件の賞賛
返信

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