How to enable and disable FreeRTOS tickless idle(RTC or Systick)? Anyway to wakeup from tickless idle mode when there is BLE activities detected?
Setup:
1. nRF5_SDK_15.2.0_9412b96
2. Window 10
3. PCA10056
How to enable and disable FreeRTOS tickless idle(RTC or Systick)? Anyway to wakeup from tickless idle mode when there is BLE activities detected?
Setup:
1. nRF5_SDK_15.2.0_9412b96
2. Window 10
3. PCA10056
Susheel Nuguru Thanks. I notice there is a similiar request (outdated) as per the link below.
I want to keep track of the time using internal RTC and want to sync the time from a external device, such as a phone.
And the most important part is...is there any sample code available? Thanks
Please take a look at the example provided in the SDK to get the current time from the peer device (if it implements the BLE CTS profile).
Thanks for the BLE CTS profile, do you know what are the best method to obtain tick offset when wakeup from tickless idle mode? If my device doesn't connect to BLE for long period of time, my time offset when wakeup from tickless idle mode and the logging data time stamp will have huge offset on it.
Please advice.
before the system goes to sleep and as soon as your device wakes up you can call xTaskGetTickCount() and you can do a diff and add the difference to the timestamp you are maintaining.
thanks!