Hi, NXP experts:
In my project ,i use NXP S32K324. I'm trying to reduce the cpu load by using ICACHE or DCACHE feature, i have some questions bellow and look forward to your response ,thank u!
1. Could you give me a demo Example of using I_CACHE and D_CACHE on S32K324? It seems have no demo in the community.
2. First ,i want to only use I_CACHE .I did some configuration in MPU and set the Program Region into MPU_M7_MEM_NORMAL_CACHEABLE. After init , i called the function Cache_Ip_Enable(CACHE_IP_INSTRUCTION).The SoftWare runs normally,but it seems have no effect on CPU Load reducing which i measured by calculate the Software excute-Time . So i don't know if i had open the ICACHE successfully.
Please give me some guidance.Thank You very much!
Solved! Go to Solution.
There is example code Platform_MPU_IP_Example in the RTD 5.0.0
Test application in the case tests cache coherence.
At list you may see how to configure it.
There is example code Platform_MPU_IP_Example in the RTD 5.0.0
Test application in the case tests cache coherence.
At list you may see how to configure it.
Thank you david! I will have a try. And have other questions :
1.Could you give me a guidance for FPU config? Because there are many options in every items. I don't know whether my config is correct.
2.Could you give me a demo about Put the Stack or heap into DTCM?
thank you very mach!
1) You may let it default as you have it on the screenshot.
2) ITCM/DTCM example you may find here:
Stack and head definition you should be able to configure in the linker file as well but you you will have to do at your own.
Thank you david!
I have successfully used the ITCM and DTCM ram,and also successfully used the I_Cache and D_Cache.
But i still could not use the DTCM as stack.
I modifed the link file to config stack ram address to the core's own DTCM region. But the Software seems can not run .Should I also change the startcode,or other files?
my startcodes are as bellow: