how to open and test the cache on the S32K144

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

how to open and test the cache on the S32K144

589 Views
hicensezhang
Contributor I

Hello,

  I want to open the cache and test the cache on the S32K144, could you help it?

 

0 Kudos
3 Replies

583 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi hicense,

You can enable the Cache in SystemInit().

Cache enablement SystemInit.png

You can find some information in "3.3.1. CACHE" and "3.3.2. Speculative Flash reads" of AN12972 Optimizing the S32K1xx eDMA for Performance Demanding Applications.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

576 Views
hicensezhang
Contributor I

ok ,thank you

I open the cache as you describe,

I understand opening the cache can reduce the cpu access the memory and enhance the performance , I want to verify the performance between opening the cache and close the cache, can you have the way to verify the performance improved?

0 Kudos

569 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Performance gains vary for different programs. You can use Systick or DWT (Data Watchpoint and Trace) measure the performance enhance.

refer: Measure the running time of one function on S32K

0 Kudos