why imx6q is so slow????

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

why imx6q is so slow????

跳至解决方案
748 次查看
利伟庄
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 解答
649 次查看
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 回复
650 次查看
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 项奖励
回复