I’m trying to get the PM-BAT module to work alongside a 7V solar panel and B404X. The PM-BAT is powering the B-SoM, however it is not charging the battery. I’ve tried adjusting various settings while VIN is connected to a 5V power supply, such as SystemPowerFeature::PMIC_DETECTION and SystemPowerFeature::ENABLE_CHARGING however the battery is still not charging. Are there any configurations I need to apply? Thanks in advance.
Do you have the charge LED populated, or can you monitor CHG pin (PM-BAT pin 13)? If charging is turning on and off every few seconds, you need to reduce the charge current. If the charge current is higher than the panel can supply if will collapse the voltage, which will cause charging to stop, which causes the voltage to rise, and the process repeats forever without actually charging
I do have an LED on the CHG pin and it’s not turning on. Right now I am testing it with a basic 5V DC adapter going to VIN, and CHG pin is not going high. Both the battery and 5V power supply are powering the B-SoM—I can hot swap between them so there doesn’t appear to be an issue with the power delivery.
System.powerSource() returns VIN and System.batteryState() returns not charging. When I disconnect the 5V power source, System.powerSource() returns battery and System.batteryState() returns discharging.