How to enable cache for i.mx6 EIM

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

How to enable cache for i.mx6 EIM

669件の閲覧回数
rinkeshpatel
Contributor II

We are using LDM/STM instruction(shown below) to transfer data from i.mx6 over SRAM interface but the performance is same as no LDM/STM.

asm(

    "pld [%[address]]\n\t"

    "vldm %[address],{q0-q7}\n\t"

    "vstm %[address1]!,{q0-q7}\n\t"

    ://outputs

    :[address]"r"(array),[address1]"r"(pusAddr16)//inputs

    :"q0","q1","q2","q3","memory"//clobbers

);

Everyone says that cache should be enabled to achieve high performance using STM/LDM.

I am new to freescale and can someone guide me How to enable cache for i.mx6 EIM?

Thanks and Regards,

Rinkesh Patel

ラベル(6)
0 件の賞賛
2 返答(返信)

504件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Rinkesh

in linux caches are already enabled, as for example code

one can look at ..sdk/core/src/armv7_cache.c

i.MX 6Series Platform SDK  : Bare-metal SDK

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

504件の閲覧回数
rinkeshpatel
Contributor II

Hello Igore,

Thank you very much for your reply.

Regards,

Rinkesh Patel

0 件の賞賛