<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>in fuel gauge, State of Charge is wrong until a power cycle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127081/in-fuel-gauge-state-of-charge-is-wrong-until-a-power-cycle</link><description>On a custom board based on the nrf52833-dk, I brought the fuel gauge project into mine and am printing out the values in fuel_gauge_update(), including State of Charge (SOC). 
 I unplugged the charging cable and ran the board under a 120mA load for several</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Feb 2026 07:27:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127081/in-fuel-gauge-state-of-charge-is-wrong-until-a-power-cycle" /><item><title>RE: in fuel gauge, State of Charge is wrong until a power cycle</title><link>https://devzone.nordicsemi.com/thread/561653?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2026 07:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14a877f7-046b-47d2-b810-9ac10f0cdb17</guid><dc:creator>Tharaka</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;&lt;br /&gt;Your symptoms are consistent with an issue in NCS v3.1.0, where an upstream change inverted the current polarity reported by the PMIC driver. Because of this, the fuel gauge sample in that version feeds the wrong sign into the fuel‑gauge algorithm.&lt;br /&gt;&lt;br /&gt;When the sign is flipped, the FG interprets discharge current as charging, which keeps the SOC near 100% even while the device is under load. &lt;br /&gt;A PMIC power‑cycle resets the internal FG state, so the SOC suddenly jumps to the correct value &amp;mdash; this matches exactly what you are seeing.&lt;br /&gt;&lt;br /&gt;This was corrected in NCS v3.1.1.&lt;br /&gt;&lt;br /&gt;If you use v3.1.0, you must manually flip the sign of the measured current before calling&lt;br /&gt;nrf_fuel_gauge_init() and nrf_fuel_gauge_process().&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can also see how this is handled in the updated sample here:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/pmic/native/npm13xx_fuel_gauge/src/fuel_gauge.c#L191-L193"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/pmic/native/npm13xx_fuel_gauge/src/fuel_gauge.c#L191-L193&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After applying the correct sign, the SOC will behave normally without requiring a PMIC power cycle.&lt;br /&gt;&lt;br /&gt;Let me know if you need any help further.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Tharaka&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in fuel gauge, State of Charge is wrong until a power cycle</title><link>https://devzone.nordicsemi.com/thread/561635?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 20:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bbf65b1-a6bf-4bb0-95f2-5143ddb613ed</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;After more investigation, the problem seems to be that the SOC increases when the board is under load and not charging. A&amp;nbsp;power-cycle (which includes the pmic) brings the SOC down to where we expect it to be. But re-flashing (my way of rebooting the code) doesn&amp;#39;t affect the SOC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in fuel gauge, State of Charge is wrong until a power cycle</title><link>https://devzone.nordicsemi.com/thread/561616?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 14:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f8a6fc6-ee29-4ee5-b86c-23f9f031906b</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;Hello. We&amp;#39;re using an Npm1300, and the battery, a Renata ICP521630PM has been profiled.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in fuel gauge, State of Charge is wrong until a power cycle</title><link>https://devzone.nordicsemi.com/thread/561590?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 12:24:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2461dd0-1589-4869-81ee-2d166d0c61f6</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;kruenheck!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for reaching out. I will ask the guys working with the fuel gauge about this. Some questions to give us more information:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;I guess you are using an nPM-device on your board as well, if so, which?&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Has the battery been profiled or are you using a standard profile?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>