2203721_en-US

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

2203721_en-US

2203721_en-US

Copy: RTD Linker Input Sections for S32K3xx

This post is a copy from here


I have a question about the linker input sections for the RTDs (Build Version: S32K3_RTD_6_0_0_QLP04_D2508_ASR_REL_4_7_REV_0000_20250822).

There is an input section named '.mcal_const_no_cacheable' and it is located to the memory region 'int_sram_no_cacheable'.

akash_kochar_0-1762948354914.png


I am a bit confused, because I would expect 'const' data in the FLASH and not in the RAM. 

Is there a reason for mapping it into the RAM? 


Thanks, in advanced for your help. 



Priority: MEDIUMRTDS32DSSource: NXP InternalRe: Copy: RTD Linker Input Sections for S32K3xx

Hi @Luis_Garabo ,

Yes, const normally resides in FLASH/ROM but it can be put in RAM with setting Read-Only in MPU and RTD's linker file, like this:

Nhi_Nguyen_0-1763017236113.png

In RTD drivers, as long as I know, they didn't really use const_no_cache, but if the customer want to use it, they completely set access right to that memory region.

Best regards,

Nhi


Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 11:15 PM
Updated by: