<?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>Need to enable reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11838/need-to-enable-reset</link><description>Hi all, 
 there is a nice section in here already about enabling the Reset input (P0.21). Unfortunately the link to the relevant infocenter docu is missing. 
 Could you tell me how to enable Reset so that my reset button works? 
 Thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Dec 2016 17:50:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11838/need-to-enable-reset" /><item><title>RE: Need to enable reset</title><link>https://devzone.nordicsemi.com/thread/44807?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2016 17:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4ed8043-3bc3-4ec1-83d2-d18d6181a760</guid><dc:creator>Martin Roa Villescas</dc:creator><description>&lt;p&gt;The link is broken.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to enable reset</title><link>https://devzone.nordicsemi.com/thread/44806?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2016 13:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:695a1d0c-ce6a-47a5-9526-8143c0b25973</guid><dc:creator>oneguy</dc:creator><description>&lt;p&gt;Thank you - works well&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to enable reset</title><link>https://devzone.nordicsemi.com/thread/44805?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2016 13:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d9b56ef-5bef-4bd0-be7a-77438e2309ed</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;If you are using a SDK  example application you can enable the reset pin by defining &lt;code&gt;CONFIG_GPIO_AS_PINRESET&lt;/code&gt;, as &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52.v1.0.0/development/dev_kit/boot_reset_but.html?resultof=%22%62%6f%6f%74%22%20%22%72%65%73%65%74%22%20"&gt;described here&lt;/a&gt;. This enables this snippet of code from system_nrf52.c, which configures the pin as a reset pin:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#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[0] &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] = 21;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
        NRF_UICR-&amp;gt;PSELRESET[1] = 21;
        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;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>