We’re in the midst of developing a product based on the B523 SoM with fuelgauge and PMIC as recommended.
The problem is however that DeviceOS seems to randomly detect the PMIC (no real pattern in when), which makes commands such as System.powerSource() and System.batteryState() return 0 (i.e. unknown), this also makes commands such as power.getInputCurrentLimit() return default values. However, when scanning I2C address, the PMIC pops up on its’ address 0x6B
Scanning... I2C device found at address 0x32 ! I2C device found at address 0x36 ! I2C device found at address 0x44 ! I2C device found at address 0x6B ! //Switching back to factory defaults 0000056340 [app] INFO: Current PMIC settings: 0000056341 [app] INFO: VIN Vmin: 3880 0000056342 [app] INFO: VIN Imax: 500 0000056343 [app] INFO: Ichg: 1024 0000056343 [app] INFO: Iterm: 4112 0000056345 [app] INFO: Power source: unknown 0000056345 [app] INFO: Battery state: unknown 0000056345 [app] INFO: Battery charge: -1.000000
Anyone seen this behavour before? When it detects it, we’re unable to change PMIC settings using the System API.