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???
Solved! Go to Solution.
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------