<?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>nPM2100 interrupt not triggering with general timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124903/npm2100-interrupt-not-triggering-with-general-timer</link><description>I am using the nPM2100 EK dev board with a stm32wl5MOC. 
 Using the example from the bare metal drivers, I adapted the code to my board. 
 I can succesfully read and set bytes on the i2c bus to the nPM2100. 
 
 Following the example, I am only using the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Oct 2025 15:35:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124903/npm2100-interrupt-not-triggering-with-general-timer" /><item><title>RE: nPM2100 interrupt not triggering with general timer</title><link>https://devzone.nordicsemi.com/thread/551477?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 15:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a227d4a-52c6-47e3-bff2-1c7d66a6d9ad</guid><dc:creator>charlesmarseille</dc:creator><description>&lt;p&gt;Hi, that was it. I don&amp;#39;t know why I defined this value instead of the enum.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks a lot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM2100 interrupt not triggering with general timer</title><link>https://devzone.nordicsemi.com/thread/551452?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 14:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2e5f6a8-04f3-4ad2-8cd3-90229ee2fd5f</guid><dc:creator>SergeiOv</dc:creator><description>&lt;p&gt;Oh, I just noticed that in your original snippet you define NPM2100_EVENT_SYS_TIMER_EXPIRY yourself to be equal 2 instead of using the enum provided in the API (mfd_npm2100.h), is there a particular reason for that?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1760450263682v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM2100 interrupt not triggering with general timer</title><link>https://devzone.nordicsemi.com/thread/551448?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 13:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf04065-6c89-4cba-bfe0-b853edc4d2b3</guid><dc:creator>charlesmarseille</dc:creator><description>&lt;p&gt;here&amp;#39;s the implementation, which is exactly as in the repo&amp;#39;s nrf version.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Do you have any idea why I would not see the pulse probing the interrupt pin? The setup seems to be target agnostic, I don&amp;#39;t understand why it would work on nrf and not on the stm since it&amp;#39;s basic i2c commands.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="c_cpp"&gt;// from my api

int nPM2100_StartTimer(struct i2c_dev *dev) {
	return mfd_npm2100_start_timer(dev);
}

// from mfd_npm2100.c

int mfd_npm2100_start_timer(struct i2c_dev *dev)
{
	return i2c_reg_write_byte(dev, TIMER_TASKS_START, 1U);
}&lt;/pre&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM2100 interrupt not triggering with general timer</title><link>https://devzone.nordicsemi.com/thread/551422?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2025 12:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e73212cb-09e8-47e2-ae54-3cead0905ee1</guid><dc:creator>SergeiOv</dc:creator><description>&lt;p&gt;Hi Charles,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any issues in the setup function in your code. That seems to closely follow the example. I have also just checked your configuration (pull-up, active low interrupt) with Nordic development boards, and I do get low interrupt pulses on GPIO1 line.&lt;/p&gt;
&lt;p&gt;However, the definition of the `nPM2100_StartTimer` function doesn&amp;#39;t seem to be included in your snippet. I would suspect something goes wrong there? Please check that function&amp;#39;s implementation and share its source if you require further assistance.&lt;/p&gt;
&lt;p&gt;- Sergei&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>