<?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>Can&amp;#39;t read from gpio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125388/can-t-read-from-gpio</link><description>Trying to read button 3 on the npm1300-ek, which is gpio 1 according to the schematic. The following #defines represent the gpio related registers on the npm1300: 
 
 #define GPIOS_MSB 0x06 // GPIO registers MSB=0x600, individual registers below are added</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Dec 2025 15:25:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125388/can-t-read-from-gpio" /><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/556030?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 15:25:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b6c735-5a2e-4e68-a7e6-acadbeeccda6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Keith,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, but the commands must be issued in the correct order.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/556027?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 14:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dede81be-ab24-4201-9de5-4422134fb441</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;Vidar,&lt;/p&gt;
&lt;p&gt;This is where I got the commands I&amp;#39;m using, but they don&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/555969?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 10:10:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a95e503-2df0-45be-a36c-953bcecffbec</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Keith,&lt;/p&gt;
&lt;p&gt;Please try to apply the configurations before entering shipmode as mentioned in the note here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1764670235999v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/555907?ContentTypeID=1</link><pubDate>Mon, 01 Dec 2025 16:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8da63f3-4107-4325-a9ae-b247806a305c</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;using the &lt;span&gt;npm13xx_two_button&amp;nbsp;&lt;/span&gt;project, is there a way to have the pmic come out of ship/hold after a longer button press? Right now it comes out on a short press, which I assume is the default.&lt;/p&gt;
&lt;p&gt;I tried the following:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;WritePmic&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;SHIP_REGS_MSB&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;TASKENTERSHIPMODE_LSB&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0x01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span&gt;WritePmic&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;SHIP_REGS_MSB&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;SHPHLDCONFIG_LSB&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0x07&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //0x7=3008ms&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;ReadPmic&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;EVENT_MSB&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;EVENTSVBUSIN0SET_LSB&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;WritePmic&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;SHIP_REGS_MSB&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;TASKSHPHLDCFGSTROBE_LSB&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0x01&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span&gt; // strobe it&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The board comes out of ship mode after a three second button press but immediately turns off again&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Keith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/554191?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 21:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54088731-dcfb-4d3b-af3e-f3050cfb136d</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;Both of your solutions worked. Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/554127?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2025 13:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:771011e9-f66d-4f6b-bc91-fc440eda26c9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;1.&lt;/p&gt;
[quote userid="147730" url="~/f/nordic-q-a/125388/can-t-read-from-gpio/554007"]I tried putting it in cmakelists.txt with set( SHIELD &amp;quot;npm1300_ek&amp;quot;), but that didn&amp;#39;t do it.&amp;nbsp;[/quote]
&lt;p&gt;This should work if it&amp;#39;s placed before the&amp;nbsp;find_package() line. Instead of including the shiled, you can also&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/custom/defining_custom_board.html"&gt;define your own board&lt;/a&gt;&amp;nbsp;that includes the definitions from the overlay added by this shield:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762951887845v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/shields/npm1300_ek/npm1300_ek.overlay"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/shields/npm1300_ek/npm1300_ek.overlay&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or&amp;nbsp;create an overlay for your existing build target (&lt;span&gt;nrf52833dk_nrf52833.overlay) that includes the same definition as the&amp;nbsp;npm1300_ek.overlay.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. For the LED to be controllable it must configured in the host mode here:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762953859815v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The default mode can be selected by changing the overlay here:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762953925816v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Description of the properties from binding:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762953942215v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/554007?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2025 16:35:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe8fb3b-c716-426d-bf81-00fd698b636e</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;Vidar,&lt;/p&gt;
&lt;p&gt;I have two follow up questions:&lt;/p&gt;
&lt;p&gt;1. How can I put the extra build command: -DSHIELD=npm1300_ek into a file so it doesn&amp;#39;t need to be an extra command? I tried putting it in cmakelists.txt with set( SHIELD &amp;quot;npm1300_ek&amp;quot;), but that didn&amp;#39;t do it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. How can I blink a different led? The example, npm13xx_two_button blinks ld3 (host) with the commands:&amp;nbsp;&lt;span&gt;led_on&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;leds&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1U&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;span&gt;led_off&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;leds&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1U&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;; I tried replacing the 1U with 0U, 2U and 3U, but with those values the leds do nothing.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/553716?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 16:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:420d3aa6-be4c-49b2-8193-79d85d02f8c5</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;It works now, thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/553651?ContentTypeID=1</link><pubDate>Fri, 07 Nov 2025 10:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:502be186-8609-47ca-a5aa-50bc270338ca</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I discussed this issue with one of the developers who&amp;nbsp;pointed out the importance of following the connections outlined in the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/pmic/native/npm13xx_one_button/README.html#wiring"&gt;Wiring section&lt;/a&gt;.&amp;nbsp;The jumper placements&amp;nbsp;must&amp;nbsp;be the same as the default placement except for the one on P18 as highlighted below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762510026497v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Another issue is that I had not enabled the internal pull-up on GPIO2. This can be fixed in the npm1300.overlay:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1762510405198v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;npm1300_ek_buttons {
	pmic_button2: pmic_button_2 {
        gpios = &amp;lt; &amp;amp;npm1300_ek_gpio 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)&amp;gt;;
	    label = &amp;quot;Pmic button switch 2&amp;quot;;
		zephyr,code = &amp;lt;INPUT_KEY_2&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;We will look into adding a picture&amp;nbsp;of the EK with the correct jumper placements for this sample.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/553592?ContentTypeID=1</link><pubDate>Thu, 06 Nov 2025 17:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80017d2f-802b-4ca1-9175-7f4ab958d3e1</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;Vidar,&lt;/p&gt;
&lt;p&gt;I upgraded to 3.1.1 and the code builds. It also runs but not very well. When it boots up, it says:&amp;nbsp;Button state (PMIC GPIO2): pressed. I&amp;#39;m surprised by GPIO2 because I&amp;#39;m connected to GPIO3 on the pmic. Also, your screenshot says &amp;#39;released&amp;#39; on bootup while mine says &amp;#39;pressed&amp;#39;.&lt;/p&gt;
&lt;p&gt;In addition, I have the following issues:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;I see &amp;#39;led device not ready&amp;#39; errors quite frequently. The fix seems to be power-cycling the pmic. I haven&amp;#39;t put a scope on the i2c lines, but they should be ok because my other apps work.&lt;/p&gt;
&lt;p&gt;2. It takes a long time between button presses and any activity in the software. Sometimes I get nothing, and other times I&amp;#39;ll get &amp;#39;Short press&amp;#39; after many seconds (like half a minute).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. I never see &amp;#39;switched 4 pressed&amp;#39;. It always says &amp;#39;Short press&amp;#39;, no matter how long I press the button.&lt;/p&gt;
&lt;p&gt;Any ideas as to what&amp;#39;s going on?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/553497?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 21:36:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34f6386d-b4d9-4400-9cc9-95070961ad29</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I forgot to specify that I was testing against nrf connect sdk version 3.1.x and there looks to be some naming changes between these 2 sdk releases. Are you able to try with this SDK version too? I can also backport my changes if needed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/553494?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 21:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eac93ad-4157-4bca-94a2-b2f4e641be83</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for the effort you put into this, but I can&amp;#39;t seem to build what you sent me. In npm1300.overlay, I needed to change&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#include &amp;lt;dt-bindings/regulator/npm13xx.h&amp;gt;&lt;/p&gt;
&lt;p&gt;to&amp;nbsp;&lt;br /&gt;#include &amp;lt;dt-bindings/regulator/npm1300.h&amp;gt;&lt;/p&gt;
&lt;p&gt;But now I&amp;#39;m getting another error in npm1300.overlay. Here&amp;#39;s the output:&lt;/p&gt;
&lt;p&gt;-- west build: generating a build system&lt;br /&gt;Loading Zephyr default modules (Zephyr base).&lt;br /&gt;-- Application: C:/myNordic/fromDevZone/npm13xx_two_button&lt;br /&gt;-- CMake version: 3.21.0&lt;br /&gt;-- Found Python3: C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version &amp;quot;3.12.4&amp;quot;, minimum required is &amp;quot;3.10&amp;quot;) found components: Interpreter&lt;br /&gt;-- Cache files will be written to: C:/ncs/v3.0.2/zephyr/.cache&lt;br /&gt;-- Zephyr version: 4.0.99 (C:/ncs/v3.0.2/zephyr)&lt;br /&gt;-- Found west (found suitable version &amp;quot;1.2.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)&lt;br /&gt;-- Board: nrf52833dk, qualifiers: nrf52833&lt;br /&gt;-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)&lt;br /&gt;-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/0b393f9e1b/opt/zephyr-sdk)&lt;br /&gt;-- Found Dtc: C:/ncs/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)&lt;br /&gt;-- Found BOARD.dts: C:/ncs/v3.0.2/zephyr/boards/nordic/nrf52833dk/nrf52833dk_nrf52833.dts&lt;br /&gt;-- Found devicetree overlay: npm1300.overlay&lt;br /&gt;devicetree error: ./npm1300.overlay:10 (column 1): parse error: undefined node label &amp;#39;npm1300_ek_ldo1&amp;#39;&lt;br /&gt;CMake Error at C:/ncs/v3.0.2/zephyr/cmake/modules/dts.cmake:305 (execute_process):&lt;br /&gt; execute_process failed command indexes:&lt;/p&gt;
&lt;p&gt;1: &amp;quot;Child return code: 1&amp;quot;&lt;/p&gt;
&lt;p&gt;Call Stack (most recent call first):&lt;br /&gt; C:/ncs/v3.0.2/zephyr/cmake/modules/zephyr_default.cmake:133 (include)&lt;br /&gt; C:/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)&lt;br /&gt; C:/ncs/v3.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)&lt;br /&gt; CMakeLists.txt:8 (find_package)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;-- Configuring incomplete, errors occurred!&lt;br /&gt;&amp;larr;[91mFATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE&amp;#39; -DWEST_PYTHON=C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe &amp;#39;-Bc:\myNordic\fromDevZone\npm13xx_two_bu&lt;br /&gt;tton\build&amp;#39; -GNinja -DBOARD=nrf52833dk/nrf52833 -DEXTRA_DTC_OVERLAY_FILE=npm1300.overlay &amp;#39;-Sc:\myNordic\fromDevZone\npm13xx_two_button&amp;#39;&lt;br /&gt;&amp;larr;[0m&lt;br /&gt; * The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/553474?ContentTypeID=1</link><pubDate>Wed, 05 Nov 2025 16:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6999db5-9fe3-4078-90cc-df8f04a4b28f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please try the modified version of this sample that I&amp;rsquo;ve included below. The zip also includes the changes I made (a diff), screenshot of build configuration and expected log output, and the hex file from my build.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/npm13xx_5F00_two_5F00_button.zip"&gt;devzone.nordicsemi.com/.../npm13xx_5F00_two_5F00_button.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note: it seems that sometimes after power up, you have to press Button 3 on the DK first before it can detect any GPIO events from the PMIC. I&amp;rsquo;ll discuss this issue with the developers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/553348?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2025 16:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e72d4e4c-dd97-4244-8fcd-e6317de9e02f</guid><dc:creator>kruenheck</dc:creator><description>&lt;p&gt;Vidar,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what I&amp;#39;m supposed to do with a&amp;nbsp;&lt;span&gt;PMIC GPIO driver/shim.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried the npm13xx_one_button sample, but I&amp;#39;m not seeing the callback event (I put a printk() in&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;event_callback&lt;/span&gt;&lt;span&gt;())&lt;/span&gt;.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I&amp;#39;m not testing the battery at this point, just trying to see a button, so I didn&amp;#39;t set any of the jumpers mentioned in the readMe. But I did make the following connections:&lt;/div&gt;
&lt;/div&gt;
&lt;table id="id3" class="docutils align-default"&gt;
&lt;tbody&gt;
&lt;tr class="row-even"&gt;
&lt;td&gt;
&lt;p&gt;SDA&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;P0.26&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;
&lt;td&gt;
&lt;p&gt;SCL&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;P0.27&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;
&lt;td&gt;
&lt;p&gt;GPIO3&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;P0.04&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-odd"&gt;
&lt;td&gt;
&lt;p&gt;VDDIO&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;VDD&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class="row-even"&gt;
&lt;td&gt;
&lt;p&gt;GND&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;GND&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span&gt;Without adding the npm1300.overlay or the&amp;nbsp;Extra CMake argument, I see &amp;quot;PMIC device ok&amp;quot; (but no call back). However, when I add either the overlay or the cmake argument, I get &amp;quot;Error: led device is not ready&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m not sure where to go from here&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't read from gpio</title><link>https://devzone.nordicsemi.com/thread/553317?ContentTypeID=1</link><pubDate>Tue, 04 Nov 2025 13:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b1949fb-6349-42b4-a2c3-1e9bbd616179</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I did not get around to testing this today, but we have a sample demonstrating how you can use the Zephyr GPIO driver API with the PMIC here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/pmic/native/npm13xx_one_button/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/pmic/native/npm13xx_one_button/README.html&lt;/a&gt;. Have you tried this already?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The PMIC GPIO driver/shim can be found here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/gpio/gpio_npm13xx.c"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/gpio/gpio_npm13xx.c&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>