ld link file to do partition modification

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

ld link file to do partition modification

735 Views
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 Kudos
Reply
5 Replies

695 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @zenging,

What modification have you made in the linker file?

 

0 Kudos
Reply

691 Views
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 Kudos
Reply

682 Views
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 Kudos
Reply

674 Views
zenging
Contributor I

Hi,@danielmartynek 

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

企业微信截图_17283578082919.png

0 Kudos
Reply

659 Views
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 Kudos
Reply