//set charging current to 1024mA (512 + 512 offset)
Be careful with changing this from the default 512mA. I have tested it at 900mA and it was running pretty warm/hot. We dialed it back to 512mA to avoid thermal issues when the ambient temperature is high. You can measure the PMIC case temps at room temp and roughly add the difference between room temp and your max operating temp and see if it exceeds the PMIC’s ratings. This is something we should characterize better in the datasheet, and then add notes to
setChargeCurrent in the Docs.
Leaving the fuel gauge on adds about 200uA to the 130uA drain (330uA or so total). That might be acceptable to you, but I wasn’t finding much value in keeping the fuel gauge on while I was waiting for it to charge back up again. In theory though, keeping it powered will give you the best average of what the battery’s capacity is. Just know that it takes about 90 minutes to update SoC with a step change in battery voltage from (3.15V) 0% to (4.15) 95%. Not that you’ll be charging in step changes but it’s notable if you crank up the charging current. We can adjust this filter response (via fuel gauge programming) to match the “system” but currently I haven’t spent enough time with that part of it to create a recommendation. If you are interested in looking at it, I can point you to some resources.