<?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>nRESET Pin floating in Deep Sleep which is causing wake up unintentionally</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61905/nreset-pin-floating-in-deep-sleep-which-is-causing-wake-up-unintentionally</link><description>Hello All, I am having a trouble with the nReset Pin during Deep Sleep. The issue is that the board is waking up from Deep Sleep due to floating nReset Pin. I am using a nrf52480. Before going to a Deep Sleep I am making this nReset Pin to the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 May 2020 14:25:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61905/nreset-pin-floating-in-deep-sleep-which-is-causing-wake-up-unintentionally" /><item><title>RE: nRESET Pin floating in Deep Sleep which is causing wake up unintentionally</title><link>https://devzone.nordicsemi.com/thread/252243?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 14:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5567c89-1058-4141-a1c4-4a62c715c406</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Well, yes the pin shouldn&amp;#39;t float. Are you using a custom board? If you are, then the next step would be to flash your application on a development kit and see if the issue is reproducible. You can upload your design files if the issue is not reproducible on the development kit.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRESET Pin floating in Deep Sleep which is causing wake up unintentionally</title><link>https://devzone.nordicsemi.com/thread/252233?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 14:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a852b86-bf1a-417a-afeb-af326ef8cbe3</guid><dc:creator>Aswin Matthew</dc:creator><description>&lt;p&gt;But its found that the PIN is floating. The below are the observations:-&lt;/p&gt;
&lt;p&gt;Connected a multimeter (supposed to be very high impedance) to between Vdd and nRESET. Measured 0V as expected.&lt;/p&gt;
&lt;p&gt;Then connected multimeter between gnd and nRESET. Measured 2.2V, however the sensor started to advertise.&lt;/p&gt;
&lt;p&gt;Repeated the test a few times, also with a 800k resistor, the same happens.&lt;/p&gt;
&lt;p&gt;What may be the reason its set to Floating ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRESET Pin floating in Deep Sleep which is causing wake up unintentionally</title><link>https://devzone.nordicsemi.com/thread/252230?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 14:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:993ca52b-35d0-464c-8a59-a6ef50a14bee</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The pullup is automatically enabled when you set it as a reset pin.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRESET Pin floating in Deep Sleep which is causing wake up unintentionally</title><link>https://devzone.nordicsemi.com/thread/252225?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 13:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d450d1a6-b033-4317-ae29-d343394f3ecc</guid><dc:creator>Aswin Matthew</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I have already used the above code to enable PIN RESET on nRESET pin. However since the nRESET pin doesnt have an external PULL UP I want to&amp;nbsp; configure the GPIO Pin to an internal PULL UP. Hence the configuration is done before a deep sleep.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have printed the pin config as well as the PSELRESET register values before going to deep sleep and is as follows.&lt;/p&gt;
&lt;p&gt;reg-&amp;gt;PIN_CNF[18]&amp;nbsp;&amp;nbsp;&amp;nbsp; = 12&lt;br /&gt; NRF_UICR-&amp;gt;PSELRESET[0]&amp;nbsp;&amp;nbsp;&amp;nbsp; = 18&lt;br /&gt; NRF_UICR-&amp;gt;PSELRESET[1]&amp;nbsp;&amp;nbsp;&amp;nbsp; = 18&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#Please note the debugger is not used in the actual case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRESET Pin floating in Deep Sleep which is causing wake up unintentionally</title><link>https://devzone.nordicsemi.com/thread/252219?ContentTypeID=1</link><pubDate>Thu, 28 May 2020 13:47:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4a5c43e-7a71-4ac5-b6d6-65010ba281b1</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Before going to a Deep Sleep I am making this nReset Pin to the following configuration:-&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Disable The GPIO needed for N_RESET_PIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_cfg( N_RESET_PIN,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_DIR_INPUT,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_INPUT_CONNECT,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_PULLUP,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_S0S1,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_NOSENSE);[/quote]
&lt;p&gt;&amp;nbsp;This is not quite how you enable PIN RESET on nRESET pin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See the system_nRF52840.c file for a example on this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    /* Configure GPIO pads as pPin Reset pin if Pin Reset capabilities desired. If CONFIG_GPIO_AS_PINRESET is not
      defined, pin reset will not be available. One GPIO (see Product Specification to see which one) will then be
      reserved for PinReset and not available as normal GPIO. */
    #if defined (CONFIG_GPIO_AS_PINRESET)
        if (((NRF_UICR-&amp;gt;PSELRESET[0] &amp;amp; UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_Pos)) ||
            ((NRF_UICR-&amp;gt;PSELRESET[1] &amp;amp; UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_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;PSELRESET[0] = 18;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            NRF_UICR-&amp;gt;PSELRESET[1] = 18;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            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){}
            NVIC_SystemReset();
        }
    #endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>