npM1300 PMIC Init Fail if set CONFIG_PM_DEVICE_RUNTIME=y.

We follow the youtube video: www.youtube.com/watch

to add battery charging and fuel gauging to our nRF52832 Series project.

It works, but after we enable 

CONFIG_PM_DEVICE=y

CONFIG_PM_DEVICE_RUNTIME=y
at prj.conf, we found it fail to init the npM1300 PMIC and so the battery charging and fuel gauging feature not working.
After we do some investitageion, we found the root cause is by CONFIG_PM_DEVICE_RUNTIME=y.
if CONFIG_PM_DEVICE_RUNTIME=y,  the I2C bus will be interupted and cause npM1300 PMIC init fail.
It is expected? How to fix this issue?
The NCS SDK we using is 2.9.2 and the Toolchain is also 2.9.2.

Parents Reply
  • Hi Kazi, 

    Yes, I have tried to run default fuel gauge sample from NCS 2.9.2 with Nrf52832 board.

    By default setting, it works normally, but after I add below to prj.conf:

    CONFIG_PM_DEVICE=y
    CONFIG_PM_DEVICE_RUNTIME=y
    it show below error msg at the Rtt debug log:

    00> mfd_npm1300_init
    00> *** Booting nRF Connect SDK v2.9.2-4ab7b98fc76f ***
    00> *** Using Zephyr OS v3.7.99-aa34a5632971 ***
    00> Pmic device not ready. 
     

Children
No Data
Related