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
  • Hello,

    ''if CONFIG_PM_DEVICE_RUNTIME=y,  the I2C bus will be interrupted and cause npM1300 PMIC init fail.

    It is expected. How to fix this issue''
     
    What types of build error you got? 
    I have tried to build the fuel_gauge sample (NCS version 3.01.1) on my nrf52 DK ( its a bit older version. 1.2.1) by setting the  CONFIG_PM_DEVICE_RUNTIME=y. and I can see it works the way it should be. After some time I get ''could not read from charger device error''. Upon resetting the chip it can read from charger device. 
    I will check on v2.9.2 also. Currently I dn't have it downloaded.
    I will get back to you soon.
Reply
  • Hello,

    ''if CONFIG_PM_DEVICE_RUNTIME=y,  the I2C bus will be interrupted and cause npM1300 PMIC init fail.

    It is expected. How to fix this issue''
     
    What types of build error you got? 
    I have tried to build the fuel_gauge sample (NCS version 3.01.1) on my nrf52 DK ( its a bit older version. 1.2.1) by setting the  CONFIG_PM_DEVICE_RUNTIME=y. and I can see it works the way it should be. After some time I get ''could not read from charger device error''. Upon resetting the chip it can read from charger device. 
    I will check on v2.9.2 also. Currently I dn't have it downloaded.
    I will get back to you soon.
Children
Related