<?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/100486/reset-pin-as-gpio</link><description>I am working on a custom nRF552832 board. I need to use the reset pin (p0.21) as GPIO input. 
 I am using the NRFConnect plugin on VSCode to develop and program the board. 
 The issue i am having is that the reset pin is refusing to be disabled so i can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 18 Jan 2025 09:37:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100486/reset-pin-as-gpio" /><item><title>RE: Reset Pin as GPIO</title><link>https://devzone.nordicsemi.com/thread/518942?ContentTypeID=1</link><pubDate>Sat, 18 Jan 2025 09:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c85176c-e9b0-483d-ae64-d81cb7378f7d</guid><dc:creator>bhargav_gondaliya</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/glen-m"&gt;Glen M&lt;/a&gt; , Now I am able to use reset pin as gpio. I enabled nrf-connect.flash.softreset. if I want to implement a hard reset from software is it possible? I have tried NVIC_SystemReset() function but it was not resetting. I have also tried sys_reboot(SYS_REBOOT_COLD) but my other peripheral does not restarting.&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/518895?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 16:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3478561c-1b4f-426d-80d5-d4be48759d12</guid><dc:creator>Glen M</dc:creator><description>&lt;p&gt;If you&amp;#39;re using VSCode there is a File-&amp;gt;Save Workspace As option that will save your project settings in a file with a &amp;quot;.code-workspace&amp;quot; extension that you can put wherever you want (I put it in the root directory of my software project). That&amp;#39;s where I made this change.&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/518777?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 07:34:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3d24efa-ef43-4771-9680-620976a02a53</guid><dc:creator>bhargav_gondaliya</dc:creator><description>&lt;p&gt;hi &lt;a href="https://devzone.nordicsemi.com/members/glen-m"&gt;Glen M&lt;/a&gt; how can I implement this softreset feature in my application?? I am confused to which setting.json file need to be edit. for build or flash?? I found .vscode/setting.json , which is blank.&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/486346?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 09:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e108aea-447a-487b-9f19-bbaa4d151960</guid><dc:creator>davad</dc:creator><description>&lt;p&gt;Thank you&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/429546?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 12:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:040de326-e858-4edb-ac45-ef5790359c39</guid><dc:creator>Michael_Songer</dc:creator><description>&lt;p&gt;Thank you, that works nicely&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/429425?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 20:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9708fea-0c32-4c3d-8f0b-f5c1f2be05f0</guid><dc:creator>Glen M</dc:creator><description>&lt;p&gt;Ah - I found a better solution here:&amp;nbsp;&lt;a id="" href="https://nrfconnect.github.io/vscode-nrf-connect/guides/build_bind_tasks.html"&gt;https://nrfconnect.github.io/vscode-nrf-connect/guides/build_bind_tasks.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;About halfway down the page it talks about adding a &amp;quot;&lt;span&gt;softreset&amp;quot; option to the build. It says to add it to your settings.json, but the thing I clicked on when I found this info (somewhere in the VSCode settings) opened up my local project .code-workspace file. Maybe that becomes the settings.json file when you&amp;#39;ve saved off your workspace as a file like I do.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyway, there was&amp;nbsp; a part of the file that looked like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;settings&amp;quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;quot;nrf-connect.applications&amp;quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I stuck the code in to turn on soft reset between those two lines as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;settings&amp;quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;quot;nrf-connect.applicationOptions&amp;quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;${workspaceFolder}&amp;quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;flash&amp;quot;&lt;/span&gt;&lt;span&gt;: {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;softreset&amp;quot;&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;},&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;quot;nrf-connect.applications&amp;quot;&lt;/span&gt;&lt;span&gt;: [&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&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/429399?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 17:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b3268f-3773-4d2c-b407-4289d3595310</guid><dc:creator>Glen M</dc:creator><description>&lt;p&gt;Hi Michael - I&amp;#39;ve been having this same problem with my nRF52840 on its reset pin (0.18). I just found an older ticket that helped me - apparently&amp;nbsp; the tool that VSCode uses when programming (west flash or whatever) ends up turning it back on.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found that if I use JFlash for programming in the merged.hex file from my \build\zephyr directory that suddenly my pin works.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not a great solution, but at least I know my board isn&amp;#39;t broken and I can move on. Hope that helps!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the thread I found:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74693/unable-to-use-gpio-reset-pin-as-a-gpio-in-nrf-connect-sdk/"&gt;devzone.nordicsemi.com/.../&lt;/a&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/429378?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 15:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ecc1734-341e-4e55-aa2a-6cf41a607079</guid><dc:creator>Michael_Songer</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8475.config.txt"&gt;devzone.nordicsemi.com/.../8475.config.txt&lt;/a&gt;This is my .config file that i have a .txt so i can upload it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>