Modifying the ld file results in a compilation error due to overlapping sections

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

Modifying the ld file results in a compilation error due to overlapping sections

Jump to solution
2,143 Views
Ags
Contributor III

Hi, developers, I encountered a compilation error with GCC when configuring DTCM as SRAM using S32K312. I haven't made any progress in finding the cause of the error. I referred to the community topic discussion, "How to modify the LD file to use ITCM and DTCM content," but following the manual and the discussion's LD file configuration led to a compilation error. Can anyone help me resolve this issue?

I tried various versions of GCC, such as GCC9.2.0, GCC 10.2.0, GCC 10.3.1, GCC12.2.0。But all resulted in the same error.

IDE: vscode

cmake version: 3.28.1

 

GCC12.2.0 Erroe ScreenshootGCC12.2.0 Erroe Screenshoot

GCC 10.2.0 Error ScreenShotGCC 10.2.0 Error ScreenShot

 

 

Reference link for the topic discussion

 

https://community.nxp.com/t5/S32K/How-to-use-DTCM-1-memory-in-S32K314-controllers/m-p/1663024

https://community.nxp.com/t5/S32K/DTCM-ITCM-example/m-p/1606827#M21008

https://community.nxp.com/t5/S32K/Regarding-the-RAM-location-for-the-s32k312/m-p/1876369

https://community.nxp.com/t5/S32K/How-to-solve-the-RAM-resource-is-not-enough-on-S32K312/m-p/1538940...

https://community.nxp.com/t5/i-MX-RT/uTasker-Compile-Error-in-MCUXpresso/m-p/1535822

 

@danielmartynek  @lukaszadrapa @davidtosenovjan Can you help me with this issue? Thank you.

Regards,

Ags 


 

0 Kudos
Reply
1 Solution
2,020 Views
Ags
Contributor III

hi, @lukaszadrapa 

 thaks your response. i compare the link file you provided.  there wasn't  much difference.  

I searched for a solution and found that the issue lies in the LD file configuration. The attribute "os_globle" was declared in the program but not configured in the LD file, leading to the error. In the LD.pdf documentation on overlapping, I identified this problem.
Ags_2-1720779708528.png

 

View solution in original post

0 Kudos
Reply
3 Replies
2,032 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Ags 

attached is linker file from RTD 4.0.0 which already contains definitions for DTCM. It's working on my side.

Regards,

Lukas

0 Kudos
Reply
2,021 Views
Ags
Contributor III

hi, @lukaszadrapa 

 thaks your response. i compare the link file you provided.  there wasn't  much difference.  

I searched for a solution and found that the issue lies in the LD file configuration. The attribute "os_globle" was declared in the program but not configured in the LD file, leading to the error. In the LD.pdf documentation on overlapping, I identified this problem.
Ags_2-1720779708528.png

 

0 Kudos
Reply
2,066 Views
Ags
Contributor III
0 Kudos
Reply