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 Vinayak, thousand thanks for your answer! A chip from Cypress (CY8C4248LQI) is acting as peripheral. I would like to reduce the power consumption as much us possible. So basically you are saying that Zephyr is using the low power modes by default? Is there any documentation? I could not found anything on the official Zephyr page... Is there the possibility to see somehow when which mode is active? E.g. by setting some pins? I guess this could be done in the hookup functions but without an RTC I do not know how it should be able to wakeup the component... Best regards, Tobi

Reply
  • Hi Vinayak, thousand thanks for your answer! A chip from Cypress (CY8C4248LQI) is acting as peripheral. I would like to reduce the power consumption as much us possible. So basically you are saying that Zephyr is using the low power modes by default? Is there any documentation? I could not found anything on the official Zephyr page... Is there the possibility to see somehow when which mode is active? E.g. by setting some pins? I guess this could be done in the hookup functions but without an RTC I do not know how it should be able to wakeup the component... Best regards, Tobi

Children
No Data
Related