nrf9160 with npm1300 fuel gauge

Hi

I am using the nrf9160 with the npm1300 fuel gauge with ncs 2.7

For the function `nrf_fuel_gauge_process` there is a note for the vbus_present param `vbus_present True if vbus voltage is present, for devices that supports this.`

Does the nrf9160 support this? 

When we set this to true when vbus is present, the code crashes with a secure fault... so I am guessing it isn't supported and should be set to 0, but I wanted to check.

I'm not sure where I would look to see if it is supported on the 9160 or not.

Parents
  • Hi,

    this is intended to inform the fuel gauge when the PMIC has VBUS connected. The reason is that when VBUS is connected, power is typically drawn from VBUS instead of the battery.

    So, this should be set to True if there is a VBUS powering the system instead of the battery.

    In the most recent fuel gauge version (v.1.0.0 in sdk-nrfxlib main), we have changed this API to a more generic way of conveying relevant external factors to the library.

    I dont know why you get a secure fault though. What is the stack size of the thread running `nrf_fuel_gauge_process`?

Reply
  • Hi,

    this is intended to inform the fuel gauge when the PMIC has VBUS connected. The reason is that when VBUS is connected, power is typically drawn from VBUS instead of the battery.

    So, this should be set to True if there is a VBUS powering the system instead of the battery.

    In the most recent fuel gauge version (v.1.0.0 in sdk-nrfxlib main), we have changed this API to a more generic way of conveying relevant external factors to the library.

    I dont know why you get a secure fault though. What is the stack size of the thread running `nrf_fuel_gauge_process`?

Children
No Data
Related