1896456_en-US

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

1896456_en-US

1896456_en-US

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

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 ScreenshootGCC12.2.0 Erroe Screenshoot

GCC 10.2.0 Error ScreenShotGCC 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 



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

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
Re: Modifying the ld file results in a compilation error due to overlapping sections

Hi @DennyZhang 

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

Regards,

Lukas

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

This discussion has a similar problem


Re: How can I put my callback function into ITCM memory ? S32K344 - NXP Community

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 04:50 PM
更新者: