how to open and test the cache on the S32K144

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to open and test the cache on the S32K144

597件の閲覧回数
hicensezhang
Contributor I

Hello,

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

 

0 件の賞賛
3 返答(返信)

591件の閲覧回数
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 件の賞賛

584件の閲覧回数
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 件の賞賛

577件の閲覧回数
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 件の賞賛