I have an application working on the CC3200 using TI-RTOS, and I want to have the device go to sleep at certain times, waking on a GPIO interrupt, and going back to sleep. I have the interrupt working so it goes to sleep and wakes as expected, however during the time that it is in sleep mode, the kernel clock stops. So when I call ti_sysbios_knl_Clock_getTicks() after waking it has lost the time that elapsed while it was in sleep mode. Is there a way to prevent this from happening?
I tried using both sleep and deep sleep modes and I get the same results. I'm calling SysTickDisable() and SysTickEnable() before and after PRCMDeepSleepEnter(), but if I don't do this the device doesn't stay in sleep mode. I understand these calls are disabling/enabling a timer interrupt and I suspect this is why the clock stops also when going to sleep. I tried some suggestions in this post (e2e.ti.com/.../1357560) to enable the RTC clock but it wouldn't compile.
I would appreciate any help or suggestions on this.
Thanks,
Angelo