why imx6q is so slow????

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

why imx6q is so slow????

ソリューションへジャンプ
625件の閲覧回数
利伟庄
Contributor I

why it is so slow ????

when I use imx6sdk to develop a project,I set the program run in ocram and write the code like this:

arm_set_interrupt_state(false);

start_time=time_get_microseconds();

  for(idx=0;idx<1000000;idx++)

  {

     c=0xaaaaaaaa;

  }

  end_time=time_get_microseconds();

  arm_set_interrupt_state(true);

  used_time=end_time-start_time;

used_time=1213144;

so simple program it used one second!!!

why it is so slow???

ラベル(1)
0 件の賞賛
返信
1 解決策
526件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi 利伟 庄

one needs to have caches enabled and the MMU to have

fastest execution. Note that internal OCRAM runs only at 132MHz.

Best regards

igor

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

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

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

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
527件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi 利伟 庄

one needs to have caches enabled and the MMU to have

fastest execution. Note that internal OCRAM runs only at 132MHz.

Best regards

igor

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

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

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

0 件の賞賛
返信