Part Number: AM5728
Tool/software: TI-RTOS
Hi,
I'd like to report a bug in file
ti\pdk_am57xx_1_0_13\packages\ti\osal\src\nonos\counter_32k\v0\counter_32k.c
The function doesn't work with small millisecond values, because the "baseTime" is seen in the register for too long time.
The bug causes the function to bail out, because it is assumed that the timer is not running at all. See the code snippet below. The function works, if you replace the
if(exitCount == nTicks) by if(exitCount == 10000), for example.
if (sampTime == baseTime) {
exitCount++;
}
/* Exit the loop if counter_32k is not running */
if (exitCount == nTicks)
{
break;
}
BR,
--Jussi