This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to enable and disable FreeRTOS tickless idle? Anyway to wakeup when there is BLE activities detected?

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

Parents
  • How to enable and disable FreeRTOS tickless idle(RTC or Systick)?

     tickless idle functionality is enabled by defining configUSE_TICKLESS_IDLE as 1 in FreeRTOSConfig.h

     

    Anyway to wakeup from tickless idle mode when there is BLE activities detected?

    This is done automatically for you, as tickless idle uses __WFE sleep, any activity will implicitly wake the chip and after processing is, the tickless mode will make the chip go to sleep again.

    You might like reading this page. 

  • Thanks ,

    Another question, during tickless idle mode. Have you guys seen any good example to overcome RTC clock drifting issue during Tickless IDLE on/off? We plan to have a external RTC driven World Clock for logging purpose.

  • the accuracy of the timers are as good as the accuracy of the RTC used underneath. so no other special mechanism is implemented in FreeRTOS port to address the RTC clock drifting. 

    The softdevice on the other hand does LFCLK calibration if internal RC is used for RTC clock.

    inghowe83 said:
    We plan to have a external RTC driven World Clock for logging purpose.

    I am not sure why you would need an external RTC for maintaining clock. Your external RTC would also be almost the same as the RTC in our device as they will be driven by the same clocks. It is the clock that contributes to the drift and not the RTC itself. 

Reply
  • the accuracy of the timers are as good as the accuracy of the RTC used underneath. so no other special mechanism is implemented in FreeRTOS port to address the RTC clock drifting. 

    The softdevice on the other hand does LFCLK calibration if internal RC is used for RTC clock.

    inghowe83 said:
    We plan to have a external RTC driven World Clock for logging purpose.

    I am not sure why you would need an external RTC for maintaining clock. Your external RTC would also be almost the same as the RTC in our device as they will be driven by the same clocks. It is the clock that contributes to the drift and not the RTC itself. 

Children
Related