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'.
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.
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:
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