Hi All,
I am utilizing the channel 1 of RTC in my software besides the channel 0 which is used by SYSBIOS. Basically my software will set up RTC channel 1 comparison register, and the ISR function will post a semaphore when RTC interrupt happens. I have a task that is pending for that semaphore to run.
After running for a few weeks or a month, I would notice a RTC interrupt miss which caused my task to stop running. I also set up a semaphore pend timeout value which is equal to 1ms + (RTC Channel 1 Future Interrupt Time - RTC Current Time). I was hopping the semaphore pend timeout would give a notice to the task that a RTC interrupt lost happened. Unfortunately the semaphore pend did not timeout either after RTC channel 1 interrupt was lost. When I attached to the CC2650, I can see RTC was running regularly and past the previous set RTC channel 1 compare value.
In the software, UART is the only other HWI that is always enable. I am suspecting somehow UART operation causes RTC interrupt lost and semaphore pend timeout failed.
Any suggestion to debug this RTC interrupt miss problem?
Thanks,
Jianwei