<?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>RESET pin as GPIO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119283/reset-pin-as-gpio</link><description>Hi 
 I want to use P0.18 gpio as output pin and not as reset for nordic. 
 I am using ncs v2.0.0. 
 I have added 
 
 CONFIG_GPIO_AS_PINRESET =n in prj.conf 
 
 and when i read UICR PSELRESET[0] PSELRESET[1], it says no pin is set as reset pin 
 
 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Feb 2025 16:59:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119283/reset-pin-as-gpio" /><item><title>RE: RESET pin as GPIO</title><link>https://devzone.nordicsemi.com/thread/524906?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 16:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f86474e-6c3e-42c5-81b8-704c74d9a2e3</guid><dc:creator>Sahu</dc:creator><description>&lt;p&gt;Thanks this helped&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESET pin as GPIO</title><link>https://devzone.nordicsemi.com/thread/524738?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 08:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58e93d9a-4b8e-4223-8d59-c2e1a85bc094</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Good to se you resolved it with an UICR reset. However, there are a few points worth. mentioning. On nRF52840, the regsiter addresses for enabling pin reset is&amp;nbsp;&lt;span&gt;0x10001200 and&amp;nbsp;0x10001204, so those are the addresses you need to check (see &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uicr.html"&gt;UICR&lt;/a&gt;).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, to properly solve this, we should understand why pin reset is enabled in the first place. There are two typical reasons:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Pin reset is enabled in any of the binaries that are programmed to the device. So for instance, you have a bootloaer or similar, make sure to add&amp;nbsp;CONFIG_GPIO_AS_PINRESET=n to the board configuration or to also the bootloader project(s).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;By default, pin reset is enabled when programming via west on the command line or from vs code. From command line, add &amp;quot;--softreset&amp;quot; to the program command. And from VS Code, change the settings by searching like this (open Preferences -&amp;gt; Settings, search for &amp;quot;soft reset&amp;quot; and check the checkbox):&lt;/li&gt;
&lt;/ol&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/pastedimage1740557505388v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESET pin as GPIO</title><link>https://devzone.nordicsemi.com/thread/524631?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2025 14:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a846699-9002-4d84-b163-fd1d2969be89</guid><dc:creator>Sahu</dc:creator><description>&lt;p&gt;Update on above.&lt;br /&gt;After I program the hex using visual studio flash, if I give&amp;nbsp;nrfjprog --eraseuicr the reset pin works.&lt;br /&gt;&lt;br /&gt;But what confuses me is, why did below registers say no pin set as reset and still needed eraseuicr to make reset pin as gpio work?&lt;/p&gt;
&lt;p&gt;nrfjprog --memrd 0x10001014 --n 4&lt;/p&gt;
&lt;p&gt;nrfjprog --memrd 0x10001018 --n 4&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>