Hi
On my TI814x board, I've noticed that OS-tick runs 3.7% slower than expected, i.e a task_sleep(1000) takes 1037 ms to complete. After some debugging, I saw that SYS/BIOS configures the GPTIMER3 and sets the TLDR register to 0xffffffde and that the timer compare register is set to zero, i.e. the timer should reload on each 34 timer input clk. I'm assuming that the timer is driven by a 32768Hz ref clk (SYSCLK18 in the Data Manual) , so 34000/32768 is approx the 3.7% difference I'm detecting.
So, I guess that SYS/BIOS should set the TLDR to 0xffffffdf (gives 33 instead of 34 ticks), to have the clock tick as precise as possible with 32768 Hz refclk?
Or, is it possible to configure the timer so that we get an even more accurate tick?
BR
Niklas