CPU Frequency vs FreeRTOS
Posted: Wed Jun 14, 2017 8:03 am
Hi,
I've tried to printf the system ticks using gettimeofday.
And I found that the differences between 2 printf for the gettimeofday are around 2-3 ms.
My printf result as below, in ns:
ets_get_cpu_frequency : 240
before gettick : 884583000
after gettick : 887201000
As I set the CPU frequency to be 240MHz, why the processing speed seems to be in kHz?
I printf direct inside the app_main(), and the 2 lines of "gettick" are the continuous 2 lines of codes.
2-3ms for these 2 lines of codes seems to be very slow for a 240MHz processors (dual core) right?
Any idea what's wrong with it?
My FreeRTOS configuration issue?
I've tried to printf the system ticks using gettimeofday.
And I found that the differences between 2 printf for the gettimeofday are around 2-3 ms.
My printf result as below, in ns:
ets_get_cpu_frequency : 240
before gettick : 884583000
after gettick : 887201000
As I set the CPU frequency to be 240MHz, why the processing speed seems to be in kHz?
I printf direct inside the app_main(), and the 2 lines of "gettick" are the continuous 2 lines of codes.
2-3ms for these 2 lines of codes seems to be very slow for a 240MHz processors (dual core) right?
Any idea what's wrong with it?
My FreeRTOS configuration issue?