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

Power managment on NRF52 using Zephyr

Hello guys,

I wanted to start to implement the power management feature on the NRF52 using the Zephyr kernel for a bluetooth application. Unfortunately I am running in a lot of problems. I understood that the hookup functions are called once the kernel goes to idle/waking up. I assume that in those functions I have to turn on/off the components.

In order to be able to wakeup after going to sleep I wanted to use the RTC component. Unfortunately I am not able to set it up:

I used CONFIG_RTC=y in config file, tried with CONFIG_NRF_RTC_TIMER, CONFIG_SOC_FAMILY_NRF5, CONFIG_CLOCK_CONTROL_NRF5 as well. Once I am looking for the device with device_get_binding("RTC_0") I always get a NULL pointer which means the device was not found. RTC_0 should be the default name for the component, according to the Kconfig file.

Hope someone can help me: Am I on the right track for implementing the power managment? Does someone has experience with the Power managment on the NRF52 using Zephyr? What am I doing wrong with the RTC?

Parents
  • Hi Tobi, Power management feature for which peripheral are you focusing? What type of sleep, system off?

    Default configuration of supported boards in Zephyr are implicitly in low power.

    RTC0 is used by BLE controller and RTC1 is used as system timer. There is no RTC driver, hence you will not be able to bind. There is work in progress to add counter driver though. Please refer to Jira or email to mailing list to know more about areas to contribute.

    Cheers, Vinayak

Reply
  • Hi Tobi, Power management feature for which peripheral are you focusing? What type of sleep, system off?

    Default configuration of supported boards in Zephyr are implicitly in low power.

    RTC0 is used by BLE controller and RTC1 is used as system timer. There is no RTC driver, hence you will not be able to bind. There is work in progress to add counter driver though. Please refer to Jira or email to mailing list to know more about areas to contribute.

    Cheers, Vinayak

Children
Related