Good morning,
i have some doubts about running specific portions of code in RAM. In particular i would like to map routines related to the ADC,ICU ecc... in RAM.
I started from the following example(taken from MCSPTE1AK344 devkits):MCSPTE1AK344_PMSM_FOC_2sh_II project.
Specifically, I have two questions regarding this example:
1)In the various .h files(ADC_MemMap.h ecc..) the LINARO_C_S32K3XX_option is selected to map the code in itcm ram. Why was this possibility selected?
2)In the same project, i noticed that 2 different Adc_MemMap.h are included. one directly in the project folder under rtd_customized, the other instead in the default path: C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\RTD\BaseNXP_TS_T40D34M30I0R0\include
It seems that the Adc_MemMap.h is used under rtd_customized which has #pragma GCC section text ".itcm_text"
While default Adc_MemMap.h file had #pragma GCC section text ".mcal_text".
Why was it decided to map the code of these RTD(ADC, ecc...) into the itcm_text instead of using the default file which involved mapping the code into mcal_text?
Thanks in advance for any help/support.
best regards