<?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 one change the RESET pin from 18 to other numbers?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89327/can-one-change-the-reset-pin-from-18-to-other-numbers</link><description>Hi, 
 For the nRF52840, can we use another pin than P18 to realise the Pin RESET functionnality? 
 I can write the register NRF_UICR -&amp;gt; PSELRESET with numbers other than the default 18 but I cannot do the pin reset. 
 Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 16 Jun 2024 07:14:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89327/can-one-change-the-reset-pin-from-18-to-other-numbers" /><item><title>RE: Can one change the RESET pin from 18 to other numbers?</title><link>https://devzone.nordicsemi.com/thread/488960?ContentTypeID=1</link><pubDate>Sun, 16 Jun 2024 07:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28353e09-2ee1-48ef-8185-607ce21b36a2</guid><dc:creator>Sharon Vardi</dc:creator><description>&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Hi, Is it possible to completely disable the PSELRESET routine attached to pin 18?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:inherit;"&gt;I&amp;#39;m working on a board with only one reset button which attached to pin 0.18 of the nrf52840 processor. as a result, pressing this button always causing the system to reset (as should be).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:inherit;"&gt;We want in our project to execute some functions before prompting the Nordic nrf52840 system reset routine.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;text-decoration:underline;"&gt;I&amp;#39;ve tried&amp;nbsp;doing it&amp;nbsp;by performing this steps:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:inherit;"&gt;1. remove the&amp;nbsp; &lt;strong&gt;CONFIG_GPIO_AS_PINRESET&lt;/strong&gt; definition from the pre-processor definitions for both the bootloader and the&amp;nbsp;BLE firmware&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;2. use &lt;strong&gt;bsp_init()&lt;/strong&gt; function (from the bsp.h module) to initialize &lt;strong&gt;pin 0.18&lt;/strong&gt; to execute a callback function (named &lt;strong&gt;&amp;quot;_button_handle()&amp;quot;&lt;/strong&gt; when pressed. I also used &lt;strong&gt;bsp_button_enable()&lt;/strong&gt; to enable it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;3. implement my own routine inside the &lt;strong&gt;&amp;quot;_button_handle()&amp;quot;&lt;/strong&gt; function , which performing some actions before prompting the Nordic&amp;#39;s nrf52840 system reset routine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;for some reason not only does my bsp routine doesn&amp;#39;t executed, but the nrf52840 system reset routine hadn&amp;#39;t been disabled and it still performed once the button is pressed.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;Note:&lt;/span&gt; I&amp;#39;ve tested the above on a different board which has 2 buttons and it succeeded (Fanstel dual-band BGW840X).&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can one change the RESET pin from 18 to other numbers?</title><link>https://devzone.nordicsemi.com/thread/374757?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2022 13:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c8ade63-c6f5-45f3-8649-9ef21d16da89</guid><dc:creator>Hulu</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can one change the RESET pin from 18 to other numbers?</title><link>https://devzone.nordicsemi.com/thread/374730?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2022 12:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a35b67-cd4f-4ed5-9a00-a4a2f2280105</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response.. It is not possible to change the RESET pin.. It is &lt;span&gt;&amp;quot;hardcoded&amp;quot; in HW. No pins&amp;nbsp;other than the one specified in&amp;nbsp;&lt;/span&gt;&lt;a title="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?cp=4_0_0_3_4_0_3#register.pselreset-0-1" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?cp=4_0_0_3_4_0_3#register.PSELRESET-0-1" rel="noopener noreferrer" target="_blank"&gt;PSELRESET[n]&lt;/a&gt;&amp;nbsp;can be used..&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>