Hi,
I am migrating my code from sDK15 to SDK17. In SDK15 code app_timer_start() working fine with any timer value. But in SDK 17, I am getting error code 7.
When I debug and compare the app_timer.c file of SDK17 and SDK15, found that there is an extra condition added in app_timer_start() function.
if ((timeout_ticks < APP_TIMER_MIN_TIMEOUT_TICKS) || (timeout_ticks > MAX_RTC_COUNTER_VAL))
{
return NRF_ERROR_INVALID_PARAM;
}
when I calculated the ticks value using APP_TIMER_CONFIG_RTC_FREQUENCY 0, found that we can start a timer value of maximum 511 seconds and 16383 seconds with with APP_TIMER_CONFIG_RTC_FREQUENCY 31.
So my questions are:
1: Why with no prescaler set , a timer value greater than 511 seconds is perfectly running with sdk15 or removing above highlighted condition in SDK17?
Can you please tell me the case where my timer will behave wrong?
2: I have many timers whose value exceeds 16383 seconds(which is max possible timer value). So how can I run those timers.
Thanks