why imx6q is so slow????

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

why imx6q is so slow????

Jump to solution
562 Views
利伟庄
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???

Labels (1)
0 Kudos
1 Solution
463 Views
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!

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

View solution in original post

0 Kudos
1 Reply
464 Views
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 Kudos