<?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>nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112515/npm1300-ek-nrf52-dk-nrf5-sdk-charge-discharge-current-issue</link><description>Greetings. 
 Our team has encountered some difficulties in integrating nPM1300 into a new project. In the project we plan to use nPM1300 in conjunction with NRF52810. To develop the program part we purchased two developer boards: nPM1300-EK and nRF52</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2024 10:36:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112515/npm1300-ek-nrf52-dk-nrf5-sdk-charge-discharge-current-issue" /><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/492669?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 10:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ff817c2-a74c-4e44-8828-936c7cb1a021</guid><dc:creator>Andy Sinclair</dc:creator><description>&lt;p&gt;Hi.&lt;br /&gt;&lt;br /&gt;Does if fail immediately, or after a bit?&lt;br /&gt;When it stops responding, is the interrupt left asserted?&lt;br /&gt;&lt;br /&gt;There is an example of configuring events using npmx here:&lt;br /&gt;&lt;a href="https://github.com/NordicSemiconductor/npmx-zephyr/blob/main/samples/charger_and_events/src/main.c"&gt;npmx-zephyr/samples/charger_and_events/src/main.c at main &amp;middot; NordicSemiconductor/npmx-zephyr (github.com)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Andy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/492309?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 14:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc827fa8-df87-4a09-8bd0-c774d2682030</guid><dc:creator>GRooVE</dc:creator><description>&lt;p&gt;Hi Andy.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve run into unexpected behavior again. When trying to call:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;npmx_core_event_interrupt_enable(&amp;amp;npmx_instance, NPMX_EVENT_GROUP_ADC, NPMX_EVENT_GROUP_ADC_BAT_READY_MASK);&lt;/pre&gt;&lt;br /&gt;I am no longer getting any interrupts working at all. Either hardware reboot of the nPM module helps, or cyclic call of npmx_core_event_interrupt_disable() for each interrupt.&lt;br /&gt;For the sake of purity of the experiment, I tested this call both in our project and in the test example from the second post of this thread.&lt;/p&gt;
&lt;p&gt;Maybe you can help me, or give me extended&amp;nbsp;information about processing events of NPMX_EVENT_GROUP_GROUP_ADC type with NPMX_EVENT_GROUP_ADC_BAT_READY_MASK.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/492025?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 09:28:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aa9e460-5f19-44e4-81db-93145f643032</guid><dc:creator>GRooVE</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;Thank you for the clarification and for your help.&lt;br /&gt;No further questions at this time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/492019?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 09:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b6a69e5-6464-423f-9cdc-ce4384f6df4b</guid><dc:creator>Andy Sinclair</dc:creator><description>&lt;p&gt;Hi GRooVE.&lt;br /&gt;&lt;br /&gt;Good point.&amp;nbsp; Looking more closely, charger status won&amp;#39;t work, because the battery detection bit is set as part of the charging FSM, so only runs when USB is connected.&lt;br /&gt;&lt;br /&gt;You can check if USB is connected by reading the vbusin status:&lt;br /&gt;npmx_vbusin_vbus_status_get&lt;br /&gt;&lt;br /&gt;Andy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/491902?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 15:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97669a40-22e6-468f-ba1c-ec872c4bd8f4</guid><dc:creator>GRooVE</dc:creator><description>&lt;p&gt;Thanks, Andy.&lt;/p&gt;
&lt;p&gt;I know about calling npmx_vbusin_current_limit_set(), of course. At power on, I saw a consumption of 150mA set to charge, while in the log I saw only 32mA. Nevertheless, I figured out the cause, thanks.&lt;/p&gt;
&lt;p&gt;But the battery issue is still unresolved. After power on and initialization, npmx_charger_status_get() always returns mask 0, both with battery connected and charging disconnected at startup, and with battery disconnected and charging connected. In both cases, none of the callbacks are triggered at startup.&amp;nbsp;If in case of VBUSIN I can get the state via npmx_vbusin_vbus_status_get(), in case of battery I have not found a way.&amp;nbsp;Maybe you can suggest a working method. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/491869?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 13:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7e6d23-1f51-4981-8976-137b5588df49</guid><dc:creator>Andy Sinclair</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The USB current limit is reset to the default value when USB is removed, &lt;br /&gt;could this be the difference you see?&lt;br /&gt;&lt;br /&gt;For example, I have&amp;nbsp;the default fuel gauge configuration (150mA charge current, 500mA USB current limit).&amp;nbsp; I get the 150mA charge current if I power up with USB connected.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;[00:00:03.283,996] &amp;lt;inf&amp;gt; fuel_gauge: V: 3.706, I: -0.158, T: 24.91, SoC: 31.84,&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;After removing and re-inserting USB, the USB current limit will default to 100mA (actual value depends on version of silicon.)&lt;br /&gt;&lt;br /&gt;&lt;code&gt;[00:01:15.629,913] &amp;lt;inf&amp;gt; fuel_gauge: V: 3.676, I: -0.094, T: 24.80, SoC: 32.85,&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;To get higher current, you need to call&amp;nbsp;&lt;code&gt;npmx_vbusin_current_limit_set &lt;/code&gt;again.&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;To get battery connection status at startup, you can call &lt;code&gt;npmx_charger_status_get&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;Best regards&lt;br /&gt;Andy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/491839?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 12:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50e907e1-4af4-4169-a68e-98b522da188c</guid><dc:creator>GRooVE</dc:creator><description>&lt;p&gt;Hi, Andy.&lt;/p&gt;
&lt;p&gt;I still get wrong values if the microcontroller starts after the charger has been plugged in. If I reconnect the charger afterwards, or if I connect it after startup, the current values are displayed correctly. Could you please confirm or deny this fact?&lt;br /&gt;Also, I&amp;#39;m having some difficulty with the initial battery status determination after starting the program. If I call the npmx_core_register_cb() function with the NPMX_CALLBACK_TYPE_EVENT_BAT_CHAR_STATUS callback type, I can track the change of the battery connection or disconnection status inside the callback function, but how can I get its status right after power on, in manual mode? Perhaps you could help me.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/491653?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 15:41:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6da394d4-c586-4a1c-9ac3-47fa89ffd5c0</guid><dc:creator>Andy Sinclair</dc:creator><description>&lt;p&gt;Testing further, I missed a negative sign when changing the scaling (charging current needs to be negative).&lt;br /&gt;I have update the branch to fix this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/491625?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 13:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75193417-eea3-4a5e-9861-2b5a299f7c65</guid><dc:creator>GRooVE</dc:creator><description>&lt;p&gt;Hi, Andy.&lt;/p&gt;
&lt;p&gt;Thanks for the quick response.&lt;br /&gt;At first glance, it looks like the problem is fixed.&lt;br /&gt;We&amp;#39;ll do some more internal testing. I&amp;#39;ll let you know if there are any issues.&lt;/p&gt;
&lt;p&gt;Thank you and best regard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/491594?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 12:21:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5288a8a9-6800-4c6b-831d-68cd04377c1e</guid><dc:creator>Andy Sinclair</dc:creator><description>&lt;p&gt;Hi GrooVE.&lt;br /&gt;&lt;br /&gt;Thanks for you comprehensive question, the detail is really useful.&lt;br /&gt;&lt;br /&gt;I have taken a closer look at the issues, and there are a couple of bugs in the driver that are responsible for this.&lt;/p&gt;
&lt;p&gt;I have tested the following changes to the driver, and it fixes the issue on my setup.&lt;a href="https://github.com/NordicSemiconductor/npmx/compare/main...aasinclair:npmx_public:fix-charge-discharge-current-scaling?expand=1"&gt;&lt;br /&gt;Comparing NordicSemiconductor:main...aasinclair:fix-charge-discharge-current-scaling &amp;middot; NordicSemiconductor/npmx (github.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We will be reviewing these changes internally and will update the official release soon.&lt;br /&gt;&lt;br /&gt;Best regards&lt;br /&gt;Andy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/491551?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 10:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07119493-5744-44bc-bd8c-0d4c22110c18</guid><dc:creator>GRooVE</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Kazi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The problem is not even with the fuel gauge driver, but exactly with reading the current value from the nPM registers.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;The example in the second post illustrates this perfectly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We&amp;#39;ll be waiting for an answer.&lt;br /&gt;&lt;span&gt;Thank you very much in advance for your help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/491452?ContentTypeID=1</link><pubDate>Sun, 30 Jun 2024 12:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e8b327c-3248-471b-a51c-b622f2ef689a</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Maksym,&lt;/p&gt;
&lt;p&gt;I have been looking into your issues. I have not tried fuel gauge sample with nRF5 SDK. I have asked developer if there any changes require for this sample to run on nRF5DK. I will get back to you on Monday.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300-EK+nRF52 DK+NRF5 SDK, charge/discharge current issue</title><link>https://devzone.nordicsemi.com/thread/491302?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 11:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:135e3c4c-ea53-4f58-8622-e91d637fe390</guid><dc:creator>GRooVE</dc:creator><description>&lt;p&gt;We have prepared a simple example for the NRF5 SDK that fully reproduces the described problem we encountered.&lt;br /&gt;We will be grateful for any help.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/npmx_5F00_fuel_5F00_gauge.zip"&gt;devzone.nordicsemi.com/.../npmx_5F00_fuel_5F00_gauge.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>