S32K324 Optimize the SW performance with CACHE feture .

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

S32K324 Optimize the SW performance with CACHE feture .

Jump to solution
913 Views
YEZIG
Contributor II

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.

YEZIG_0-1742632169785.png

 

Please give me some  guidance.Thank You very much!

 
Tags (2)
0 Kudos
Reply
1 Solution
872 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
Reply
4 Replies
873 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply
846 Views
YEZIG
Contributor II

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.

YEZIG_0-1743076297093.png

2.Could you give me a demo about Put the Stack or heap into DTCM?

thank you very mach!

Tags (3)
0 Kudos
Reply
831 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

1) You may let it default as you have it on the screenshot.

2) ITCM/DTCM example you may find here:

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-Siul2-Port-Ip-Example-S32K344-ITCM-DTCM-S32...

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.

0 Kudos
Reply
791 Views
YEZIG
Contributor II

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:

YEZIG_0-1743553916296.png

 

Tags (2)
0 Kudos
Reply