<?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 0.18 disable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114244/nreset-0-18-disable</link><description>I have a customized PCB with nrf52840. Pin 0.18 is used as CS pin in SPI communication. 
 I want to disable the nreset function and I add this CONFIG_GPIO_AS_PINRESET=n in .conf file 
 When I click flash it still shows 
 [ ###### ] 0.000s | Program file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Aug 2024 10:41:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114244/nreset-0-18-disable" /><item><title>RE: nreset 0.18 disable</title><link>https://devzone.nordicsemi.com/thread/500555?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 10:41:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8866fae-9106-4f17-b0a4-63b9189feb6d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The reset button on the DK is connected to the onboard debugger, and will reset the nRF via the debugger. This is independen of the reset pin on the nRF.&lt;/p&gt;
[quote user="xuezhi_zed"]or is there any other method to check if i change 0.18 from reset to a normal GPIO correctly?&amp;nbsp;[/quote]
&lt;p&gt;The simplest which I use is to connect a jumper wire from P0.18 to GND and release it again (pin reset is active low with an internal pull-up). If that resets the device, pin reset is enabled. If not, it is not enabled.&lt;/p&gt;
[quote user="xuezhi_zed"]After i done so, it should be able to use as CS pin for spi communication right?[/quote]
&lt;p&gt;Yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nreset 0.18 disable</title><link>https://devzone.nordicsemi.com/thread/500543?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 09:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d84a477-3e7a-4da2-b62c-f5ec490b5c45</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;Hi Einar, if i disabled the reset correctly, when I press the ifboot/reset button on nrf52840dk , there should be no action right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;or is there any other method to check if i change 0.18 from reset to a normal GPIO correctly?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After i done so, it should be able to use as CS pin for spi communication right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nreset 0.18 disable</title><link>https://devzone.nordicsemi.com/thread/500156?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 09:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab7932e2-c4cc-417d-99a8-63748032c319</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;Thank you!!!!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nreset 0.18 disable</title><link>https://devzone.nordicsemi.com/thread/500155?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 09:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4286ffcc-d20b-41ed-a055-1ab0f2e5fa1b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;For the second step the simplest is to use the GUI in VS Code. Go to File -&amp;gt; Preferences -&amp;gt; Settings, search for &amp;quot;nrf-connect.flash.softreset&amp;quot; and tick the box. As shown here:&lt;/p&gt;
&lt;p&gt;&lt;span style="color:rgba(0, 0, 0, 0);height:240px;width:320px;"&gt;...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nreset 0.18 disable</title><link>https://devzone.nordicsemi.com/thread/500150?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 09:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:485bd2da-6b6a-4df2-8b4a-8ff0076d1448</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;yes i understand the first step, I want to ask where to put the 2nd step&amp;nbsp;&lt;/p&gt;
&lt;p&gt;you mentioned put the below piece of code in VS Code configuration , may I ask which file ?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;nrf-connect.applicationOptions&amp;quot;: {
    &amp;quot;/home/eith/ncs/v2.5.0/zephyr/samples/basic/blinky&amp;quot;: {
    &amp;quot;flash&amp;quot;: {
    &amp;quot;softreset&amp;quot;: true,
    &amp;quot;skipBuild&amp;quot;: false
}
}
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nreset 0.18 disable</title><link>https://devzone.nordicsemi.com/thread/500149?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 08:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b949e1d-8db7-44c6-9e0e-6c5dcc2b1153</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The simplest is probably to make a file called&amp;nbsp;app.overlay in your project folder (the same folder where you have prj.conf and CMakeLists.txt, and in that file add just this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uicr {
        /delete-property/ gpio-as-nreset;
    };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;PS: If you have your own board files for your custom board you can also just remove gpio-as-nreset from the .dts file for your custom board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nreset 0.18 disable</title><link>https://devzone.nordicsemi.com/thread/500147?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 08:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54c19dfc-4619-4758-b70a-4b3c4014f957</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;sorry for asking this dumb question&lt;/p&gt;
&lt;p&gt;1. add this in the overlay file&lt;br /&gt;&amp;amp;uicr {&lt;br /&gt; /delete-property/ gpio-as-nreset;&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;2. &lt;strong&gt;where to add this ?&amp;nbsp; CMakeLists.txt ? or launch.json? or some other files in VSCode?&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;or can i add&amp;nbsp;&lt;span&gt;nrf-connect.flash.softreset=y to extra cmake arguments in build configuration on vscode?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;nrf-connect.applicationOptions&amp;quot;: {
&amp;quot;/home/eith/ncs/v2.5.0/zephyr/samples/basic/blinky&amp;quot;: {
&amp;quot;flash&amp;quot;: {
&amp;quot;softreset&amp;quot;: true,
&amp;quot;skipBuild&amp;quot;: false
}
}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;launch.jason&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    &amp;quot;version&amp;quot;: &amp;quot;0.2.0&amp;quot;,
    &amp;quot;configurations&amp;quot;: [
        {
            &amp;quot;type&amp;quot;: &amp;quot;nrf-connect&amp;quot;,
            &amp;quot;request&amp;quot;: &amp;quot;launch&amp;quot;,
            &amp;quot;name&amp;quot;: &amp;quot;Launch the active build configuration&amp;quot;,
            &amp;quot;config&amp;quot;: &amp;quot;${activeConfig}&amp;quot;,
            &amp;quot;runToEntryPoint&amp;quot;: &amp;quot;main&amp;quot;
        }
    ]
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nreset 0.18 disable</title><link>https://devzone.nordicsemi.com/thread/499899?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 07:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c33e1be7-de3c-4c89-901c-1a41b4bdac7f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are two things that needs to be adressed in order to not use pin reset.&lt;/p&gt;
&lt;p&gt;The first is to don&amp;#39;t enable pin reset in&amp;nbsp; your firmware. You describe&amp;nbsp;&lt;code&gt;CONFIG_GPIO_AS_PINRESET=n&lt;/code&gt; but that is deprecated, so if using a recent SDK release (&amp;gt;= v2.5.0) you need to adjust your devicetree as explained in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106015/use-reset-pin-as-gpio---nrf52840/457188"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The second is that when programming&amp;nbsp;west flash needs to be called with the &amp;quot;&lt;code&gt;--softreset&lt;/code&gt;&amp;quot; option. If calling it direclty, just add that option. If programming from nRF Connect for VS Code, set&amp;nbsp;&lt;code&gt;&amp;quot;nrf-connect.flash.softreset&amp;quot;: true&lt;/code&gt; in your VS Code configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>