<?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>How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126938/how-to-ensure-an-nrf52840-gpio-pin-is-disconnected-at-powerup-via-the-devicetree-board-overlay-file</link><description>I would like to ensure that a particular GPIO pin is disconnected when an nRF52840 is powered up via the initial configuration specified in the DeviceTree board overlay file. I am using nRF Connect SDK v3.2.1 with an nRF52840 Dongle. The pin will be used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Mar 2026 06:02:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126938/how-to-ensure-an-nrf52840-gpio-pin-is-disconnected-at-powerup-via-the-devicetree-board-overlay-file" /><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/563731?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2026 06:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd09390d-2e69-4c37-9255-b75601eceaef</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you for the kind words. It&amp;#39;s great to have happy customers. Have a great weekend too!&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/563724?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2026 23:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e2f1ac-5d0d-4ed6-bbe7-4e1baaf15be9</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Thanks Vidar for all of your help throughout this conversation. &amp;nbsp;It was a pleasure talking with you. &amp;nbsp;Hopefully others will find this discussion helpful as well.&lt;/p&gt;
&lt;p&gt;Have a great weekend!&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/563525?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2026 07:44:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61331a76-3d59-409a-8ff6-c080abc98f4c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;Sorry I forgot to comment on the programming part. Yes, please continue using the Programmer app. To flash a device, the extension simply calls &amp;quot;west flash&amp;quot;, so the supported programming method is defined by the board file and what is available in the SDK and currently we do not support programming over DFU. In other words, programming via the extension is only available if you have an external debug probe connected to your dongle.&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: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/563505?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2026 20:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:824ba4b0-b17a-42ae-8b92-c4e9b39a0e98</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;The code you proposed worked and I confirmed that REGOUT0 is set for 3V0.&amp;nbsp; However, I think this particular nRF52840 Dongle must have been damaged somewhere along the way as its VDD_OUT remains at 3.5V.&lt;/p&gt;
&lt;p&gt;A question from earlier:&amp;nbsp; Is there a way to program the Dongle through the nRF Connect SDK VS Code or should I continue to use the Programmer?&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/563275?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2026 06:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a0f00b-1573-439a-8c4d-b1c4923e93f3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;Glad to hear that it worked. The nrf52840dongle board target has always enabled console output on USB, what is new is that the VS code extension will now recognise it as a development board and list it under CONNECTED DEVICES. Previously you would have to manually find and select the correct COM port.&lt;/p&gt;
&lt;p&gt;To use RTT you would need to have an external debug probe connected to your dongle.&amp;nbsp;&lt;/p&gt;
[quote user="Ken58"] A very quick check of this with a nRF52840DK looks like the RTT connection has gone away.[/quote]
&lt;p&gt;Maybe something changed in the UI? I know the RTT feature has not been removed, at least.&lt;/p&gt;
[quote user="Ken58"]However, I need to call this code in place of board_early_init_hook().&amp;nbsp; How would you recommend I do that?&amp;nbsp;[/quote]
&lt;p&gt;I don&amp;#39;t think you need to call it in place of the board_early_init_hook() function.&amp;nbsp;You could try calling the function below at the beginning of your main().&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;soc.h&amp;gt;

void reg0_update(void)
{
    /* Check if REGOUT0 is currently configured to output 3v3 */
    if ((NRF_UICR-&amp;gt;REGOUT0 &amp;amp; UICR_REGOUT0_VOUT_Msk) ==
        (UICR_REGOUT0_VOUT_3V3 &amp;lt;&amp;lt; UICR_REGOUT0_VOUT_Pos))
    {
        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy);
        NRF_UICR-&amp;gt;REGOUT0 =
            (NRF_UICR-&amp;gt;REGOUT0 &amp;amp; ~((uint32_t)UICR_REGOUT0_VOUT_Msk)) |
            (UICR_REGOUT0_VOUT_3V0 &amp;lt;&amp;lt; UICR_REGOUT0_VOUT_Pos);

        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy);
        /* a reset is required for changes to take effect */
        NVIC_SystemReset();
    }
}&lt;/pre&gt;&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: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/563262?ContentTypeID=1</link><pubDate>Sun, 15 Mar 2026 23:15:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76d5288f-9fe8-4dd7-9e2f-6c3195acbe4e</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Logging from the nRF52840 Dongle works great!&amp;nbsp; How long has this been available?&amp;nbsp; Last I had looked at it, the nRF Connect SDK did not connect to a Dongle through the CONNECTED DEVICES view at all.&amp;nbsp; Could or should RTT be used, or has this changed recently too?&amp;nbsp; A very quick check of this with a nRF52840DK looks like the RTT connection has gone away.&lt;/p&gt;
&lt;p&gt;Is there a way to program the Dongle through the nRF Connect SDK or should I continue to use the Programmer?&lt;/p&gt;
&lt;p&gt;I learned that my nRF52840 Dongle that has the 3.5V output voltage does indeed have it&amp;#39;s REGOUT0 set to 3V3.&amp;nbsp; I understand the process involved in setting this back to 3V0.&amp;nbsp; However, I need to call this code in place of board_early_init_hook().&amp;nbsp; How would you recommend I do that?&amp;nbsp; I tried including it in my code but the build process with fail with a multiple definition of &amp;#39;&lt;span&gt;board_early_init_hook&amp;#39;.&amp;nbsp; I probably don&amp;#39;t want to modify the code in the SDK.&amp;nbsp; There is probably a better way.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ken&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/562986?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2026 06:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10cb914d-34a8-47d6-ad4a-6ae3cd8fd348</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The nrf52840Dongle/nrf52840 board target enables the USB by default so you shouldn&amp;#39;t have to change anything to make this work. To test you can try the &amp;quot;Hello World&amp;quot; sample and print something in a loop.&lt;/p&gt;
&lt;p&gt;Relevant devicetree entries&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pastedimage1773211334019v4.png" alt=" " /&gt;&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/pastedimage1773211303605v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/562967?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2026 20:23:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f6de85e-5036-41a1-a857-4ef2dcb47fdc</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;I will have to check.&amp;nbsp; Is there anything in the Nordic documentation that would tell me all the DeviceTree and Kconfig setup I need to have?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/562544?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2026 12:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c141b5d-40bc-443e-8757-8dd6cb3eee4e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It should be supported out of the box.&amp;nbsp;Is your dongle not enumerating as a USB CDC device when you plug it in?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/562491?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2026 01:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35950fbf-77b5-48c6-af1d-092414af4fa4</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Thanks Vidar.&amp;nbsp; Is there an easy way to get log info from an nRF52840 Dongle?&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/562376?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2026 07:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac6bf0ae-3c6c-400f-9447-07a59424d1cf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;The only scenario in high voltage mode where I can see it getting close to 3.5V is if REGOUT0 is configured to 3v3 &amp;nbsp;and you add the +5% worst case accuracy deviation.&lt;/p&gt;
[quote user="Ken58"]What if back in 2018 for example, REGOUT0 was set permanently with option value 6, the missing value in the list of possible values.&amp;nbsp; Was there an 3V5 option?[/quote]
&lt;p&gt;3v3 has always been the maximum and our SDK code (both new and old) has been setting the register to 3.0v.&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/pastedimage1772521709677v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/power.html#ariaid-title74"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/power.html#ariaid-title74&lt;/a&gt;)&lt;/p&gt;
[quote user="Ken58"] I don&amp;#39;t know if that matters, but they are missing resistor R7, a 47 ohm series resistor between VBUS and VDDH.[/quote]
&lt;p&gt;This is interesting. I was not aware of this. Maybe this can explain why you didn&amp;#39;t observe&amp;nbsp;the same spike when testing with the DK. The series resistor was added in revision 2.0.0 of the DK.&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/pastedimage1772522363420v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also from the &amp;quot;Reference circuitry&amp;quot; chapter of the Product specification:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The schematics include an optional series resistor on the USB supply for improved immunity to transient overvoltage during VBUS connection. Using the series resistor is recommended for new designs.&lt;/li&gt;
&lt;/ul&gt;
[quote user="Ken58"]Is there any code available in the SDK that would allow me to easily erase the UICR, and then execute code like in&amp;nbsp;&lt;em&gt;board_early_init_hook()&lt;/em&gt; to set REGOUT0 to 3V on my 3V5 Dongle?[/quote]
&lt;p&gt;There isn&amp;#39;t any existing code for this unfortunately. But maybe you can read out the register before making any attempts on this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;soc.h&amp;gt;

...

    LOG_INF(&amp;quot;NRF_UICR-&amp;gt;REGOUT0: %d&amp;quot;, NRF_UICR-&amp;gt;REGOUT0);&lt;/pre&gt;&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: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/562362?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2026 22:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cf5c845-4167-44f8-9154-1405c17e5b7b</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks on the board_early_init_hook() function info.&amp;nbsp; Now, the 3V makes sense.&lt;/p&gt;
&lt;p&gt;On the 3.5V dongle:&amp;nbsp; All of my nRF52840 dongles are ancient V1.0.0 hardware.&amp;nbsp; None have been modified for the supply configuration.&amp;nbsp; I don&amp;#39;t know if that matters, but they are missing resistor R7, a 47 ohm series resistor between VBUS and VDDH.&lt;/p&gt;
&lt;p&gt;In &lt;em&gt;board_early_init_hook(),&lt;/em&gt; if REGOUT0 is not set with the DEFAULT value, it will not try to set REGOUT0 to 3V.&amp;nbsp; Furthermore, since&amp;nbsp;&lt;em&gt;board_early_init_hook() &lt;/em&gt;does not erase the UICR, it will successfully set REGOUT0 a maximum of twice for any particular nRF52804 Dongle.&amp;nbsp; What if back in 2018 for example, REGOUT0 was set permanently with option value 6, the missing value in the list of possible values.&amp;nbsp; Was there an 3V5 option?&lt;/p&gt;
&lt;p&gt;Is there any code available in the SDK that would allow me to easily erase the UICR, and then execute code like in&amp;nbsp;&lt;em&gt;board_early_init_hook()&lt;/em&gt; to set REGOUT0 to 3V on my 3V5 Dongle?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/562280?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2026 07:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c3dad4e-779b-4f6c-9d97-2787f8fae20f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uicr.html#ariaid-title69"&gt;REGOUT0&lt;/a&gt;&amp;nbsp;is a non-volatile register and you need to erase the UICR section &amp;nbsp;(ERASEUICR) before you can update it to a different setting. In the case where the dongle is not running the pre-programmed FW, the REGOUT0 register will be updated by the board init function here: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/f80011480a2208ddbfb2decad3e3d9dab078c548/boards/nordic/nrf52840dongle/board.c#L12"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/f80011480a2208ddbfb2decad3e3d9dab078c548/boards/nordic/nrf52840dongle/board.c#L12&lt;/a&gt;&lt;/p&gt;
[quote user="Ken58"]A sidebar to that question:&amp;nbsp; I have a particular nRF52840 Dongle whose output voltage running the same application as we have been talking about is 3.5V.&amp;nbsp; That&amp;#39;s a little weird!&amp;nbsp; Any idea on what might cause that?[/quote]
&lt;p&gt;Yes, this does not make sense. The REG0 regulator cannot output more than 3v3 according to the specification. Have you&amp;nbsp;made any changes to the dongle&amp;#39;s supply configuration by any chance (&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52840_dongle/page/UG/nrf52840_Dongle/hw_power_supply.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf52840_dongle/page/UG/nrf52840_Dongle/hw_power_supply.html&lt;/a&gt;)?&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: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/562265?ContentTypeID=1</link><pubDate>Sun, 01 Mar 2026 16:48:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:704f4e46-15fb-4672-b71d-861f41988760</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I had tried the pull-down resistor before using a rather high value (10k) without success.&amp;nbsp; Using a lower value resistor (2.2k) seems to allow dissipation of the startup pulse without switching on the transistor.&amp;nbsp; This becomes a balancing act to keep the &amp;quot;on&amp;quot; circuit current minimized and still pulling enough current on startup to pull down the pulse.&amp;nbsp; Never the less, this conversation helped me ensure there was nothing else in the software I could or should do to prevent the pulse.&lt;/p&gt;
&lt;p&gt;A related question or&amp;nbsp;3 from our discussion:&amp;nbsp; &amp;nbsp;You said &amp;quot;The pre-programmed FW on the dongle sets it to 3v to be able to drive the on-board RGB LED&amp;quot;.&amp;nbsp; Where does this happen and can I easily set REGOUT0 to a different value within a Zephyr application on the nRF52840 Dongle?&amp;nbsp; Is there a system initialization function where this could be done, or DeviceTree parameter used by Zephyr?&amp;nbsp; What would be your recommended method?&lt;/p&gt;
&lt;p&gt;A sidebar to that question:&amp;nbsp; I have a particular nRF52840 Dongle whose output voltage running the same application as we have been talking about is 3.5V.&amp;nbsp; That&amp;#39;s a little weird!&amp;nbsp; Any idea on what might cause that?&lt;/p&gt;
&lt;p&gt;I will probably have a related question or 2 concerning a custom board, but I&amp;#39;m not ready to ask yet.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/561790?ContentTypeID=1</link><pubDate>Mon, 23 Feb 2026 08:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a21952eb-5372-49d0-90cf-3c4e8de04e41</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I discussed this with one of my more hardware oriented coworkers who suggested adding an external pull-down resistor between the GPIO pad and the transistor gate to ensure the signal is not floating on startup.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/561764?ContentTypeID=1</link><pubDate>Sat, 21 Feb 2026 19:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a53ce506-fbe2-4e9d-ac0b-905b56af39d0</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Probing other GPIOs shows similar pulses.&amp;nbsp; Looking around the internet, I see indications that this is not uncommon on MCUs&amp;nbsp;in general, though I haven&amp;#39;t found a specific instance of Nordic SOCs.&amp;nbsp; Could you ask one of your EEs to comment on this?&amp;nbsp; If the pulse cannot be eliminated through setup within the application&amp;nbsp;software, what would be the recommended method of connecting a GPIO port to other electronics - say a simple case of interfacing to a transistor operating as a switch?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll add a couple more pics.&amp;nbsp; As above, the yellow trace is the nRF52840 Dongle GPIO pin (P0.13).&amp;nbsp; In these new images, blue is the 5V supply from my electronics going into VBUS on the dongle.&amp;nbsp; The second pic is zoomed in on the area of interest.&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/TEK00003.JPG" /&gt;&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/TEK00004.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/561651?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2026 07:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d30555fc-b917-44c3-b3c1-70fb93536ac6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m wondering if you are simply seeing noise because the inputs are high-z. To be honest, I am not entirely sure what to expect here, but I know that USB ports can be quite noisy. Have you tried probing other unused pins on the dongle to see if&amp;nbsp;they exhibit similar behaviour?&lt;/p&gt;
[quote user="Ken58"] I did note that VDD is now about 1.8V vs. 3V when powered as before.[/quote]
&lt;p&gt;Yes, default is 1.8. It is controlled by the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uicr.html#register.REGOUT0"&gt;REGOUT0&lt;/a&gt;&amp;nbsp;register. The pre-programmed FW on the dongle sets it to 3v to be able to drive the on-board RGB LED.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/561542?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 21:38:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b782a40-a0bd-44d1-a920-cdf9cd91c46e</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I did the following with the nRF52840 DK:&amp;nbsp; Set SW9 to USB and plugged the USB cable into J3.&amp;nbsp; I did not modify the application software.&amp;nbsp; Powering the board on and off via plugging/unplugging the USB cable into my PC USB port does not produce anything weird on the GPIO pin I&amp;#39;ve been monitoring.&amp;nbsp; It seems well behaved as before.&amp;nbsp; I did note that VDD is now about 1.8V vs. 3V when powered as before.&lt;/p&gt;
&lt;p&gt;Also, a couple more screen shots from my scope showing the weird pulse seen on GPIO P0.13 when plugging in the nRF52840 Dongle, zoomed in on the second pic.&amp;nbsp; I&amp;#39;m assuming the 60Hz noise is expected.&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/TEK00001.JPG" /&gt;&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/TEK00002.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/561202?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2026 09:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc6f643-a3e1-443b-acc2-7edb2dfb920c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you, likewise. With the DK board switches in their default positions and the USB cable connected to the J2 port, the nRF52840 will be supplied with 3 V regulated from the USB bus in &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/power.html#ariaid-title6"&gt;normal voltage mode&lt;/a&gt;&amp;nbsp;while the dongle is powered directly from the USB in high voltage mode. Perhaps this explains the different behaviour. Could you please try supplying the nRF52840 DK from the nRF&amp;nbsp;&lt;/span&gt;USB to see if you get the same result?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/power_source.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/power_source.html&lt;/a&gt;&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: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/561177?ContentTypeID=1</link><pubDate>Sun, 15 Feb 2026 01:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e19b89c-146d-4d29-93d5-0fa3e945c5c5</guid><dc:creator>Ken58</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I can run&amp;nbsp;my application on&amp;nbsp;&lt;span&gt;both the nRF52840DK and nRF52840 Dongle although I am using different pins (P1.06 and P0.13 respectively) to connect with the rest of my electronics.&amp;nbsp; Using the debugger and the DK, I hav&lt;/span&gt;e checked with that my PIN_CNF register value for the GPIO pin I am using is set as you show:&amp;nbsp; Input and Disconnect.&amp;nbsp; I checked DeviceTree as well.&amp;nbsp; Monitoring the DK pin with a scope, turning the DK on via the SW8 power switch, the GPIO pin remains stable and at 0V through the power on reset and boot.&amp;nbsp; On the other hand, when plugging the Dongle into a USB cable, the GPIO pin shows a spike and oscillating voltage as shown in the attached picture.&amp;nbsp; I think this is the root of the problem I am trying to solve.&amp;nbsp; Why is the Dongle producing this GPIO pin voltage during the power on reset and boot?&amp;nbsp; I have seen no evidence of this from the DK.&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/TEK00000.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards, and good to talk with you again,&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to ensure an nRF52840 GPIO pin is disconnected at powerup via the DeviceTree board overlay file?</title><link>https://devzone.nordicsemi.com/thread/560738?ContentTypeID=1</link><pubDate>Tue, 10 Feb 2026 07:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d18f8db-514e-4a41-ade9-99d6adad76c7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Ken,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On startup after a power-on-reset, all GPIOs are configured to their reset state (“disconnected input”), so you should&amp;nbsp;not need to do anything to avoid spurious signals at startup. &lt;/span&gt;If this is not what you are seeing, perhaps it could be&amp;nbsp;that the pin may be assigned to a peripheral or a driver in the device tree and is being reconfigured during driver initialisation?&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/1273.pastedimage1770706919691v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/gpio.html#ariaid-title13"&gt;PIN_CNF[0]&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Wakeup from System OFF mode reset&amp;quot; is the only reset source which will not reset the GPIO registers.&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/5315.pastedimage1770707029918v2.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;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>