<?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>nRF52840 custom hardware Reset using External switch</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70431/nrf52840-custom-hardware-reset-using-external-switch</link><description>Hi All, 
 I have designed one device using nRF52840 MCU and software SDK nRF5_SDK_for_Thread_and_Zigbee_v3.0.0_d310e71. 
 From Software end all features are implement and are working as expected. 
 In our custom device we have included RESET feature using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Jan 2021 12:39:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70431/nrf52840-custom-hardware-reset-using-external-switch" /><item><title>RE: nRF52840 custom hardware Reset using External switch</title><link>https://devzone.nordicsemi.com/thread/289404?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 12:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e46387a-be74-4233-a20b-d415c7c64ba4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Rohit,&lt;/p&gt;
[quote user="Rohit Rajapure"]What did is connected my Dev-kit and open command terminal copy-pasted the suggested command and for both addresses, I got - 00000012 (hex).[/quote]
&lt;p&gt;That&amp;#39;s good. That means that pin reset is enabled there. It should be the same on your custom HW if you flash the same hex, but it would be good to confirm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 custom hardware Reset using External switch</title><link>https://devzone.nordicsemi.com/thread/289382?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 10:27:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eed77fc0-6636-4204-bcac-1c60bfddcc6a</guid><dc:creator>Rohit Rajapure</dc:creator><description>&lt;p&gt;Hi Einar, &lt;/p&gt;
&lt;p&gt;Okay, sorry for my mistake.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What did is connected my Dev-kit and open command terminal copy-pasted the suggested command and for both addresses, I got - 00000012 (hex).&lt;/p&gt;
&lt;p&gt;I will connect the custom device and follow the same steps.&lt;/p&gt;
&lt;p&gt;I will get back to you.&lt;/p&gt;
&lt;p&gt;Thanks and Regards&lt;/p&gt;
&lt;p&gt;Rohit R&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 custom hardware Reset using External switch</title><link>https://devzone.nordicsemi.com/thread/289379?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 10:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b446f59-e2df-4de2-8f04-590bcb06554b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Rohit,&lt;/p&gt;
[quote user="Rohit Rajapure"]&lt;p&gt;Unable to open this, If I click on this it disappears fast.&lt;/p&gt;
&lt;p&gt;Not understanding exact procedure.&lt;/p&gt;[/quote]
&lt;p&gt;You cannot double click it, it is a command line tool. To use nrfjprog first install it, and the installer should automatically add it to your path. Then open a terminal window. When using windows, you can click the start button and write &amp;quot;cmd&amp;quot;. Then you get a terminal window.&lt;/p&gt;
&lt;p&gt;In the terminal window write &amp;quot;nrfjprog.exe --memrd 0x10001200&amp;quot; and press the enter key. Afterwards, do the same with &amp;quot;nrfjprog.exe --memrd 0x10001204&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 custom hardware Reset using External switch</title><link>https://devzone.nordicsemi.com/thread/289376?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 10:12:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e67cf076-acb3-4fde-b403-c996e4beb48c</guid><dc:creator>Rohit Rajapure</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I had gone to this file path,&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4338.nrfjprog.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Unable to open this, If I click on this it disappears fast.&lt;/p&gt;
&lt;p&gt;Not understanding exact procedure.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/70431/nrf52840-custom-hardware-reset-using-external-switch/289352#289352"]There is one more detail I forgot to mention. After programming and thereby writing to the&amp;nbsp;PSELRESET registers the device needs to be reset once (by power-cycle or debug reset) in order to enable pin reset,[/quote]
&lt;p&gt;- We tried this but did not work. But we will try this again, program the hardware first power cycle it again and check. &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and Regards&lt;/p&gt;
&lt;p&gt;Rohit R&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 custom hardware Reset using External switch</title><link>https://devzone.nordicsemi.com/thread/289352?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 08:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d11714-88d0-4aa4-b49a-b4418f74cb07</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Rohit,&lt;/p&gt;
[quote user="Rohit Rajapure"]- Can you please give me steps on how to check this? Sorry, but the point is not clear on debugger how to check.[/quote]
&lt;p&gt;Yes, you can refer to the snippet from my previous post.&lt;/p&gt;
&lt;p&gt;You need to check two registers,&amp;nbsp;PSELRESET[0] which is address&amp;nbsp;0x10001200 and&amp;nbsp;PSELRESET[0] which is address 0x10001204. That is done using nrfjprog as demonstrated in my initial reply. If both registers are&amp;nbsp;00000012 (hex) as you see in my example, then the device is correctly configured for pin reset.&lt;/p&gt;
&lt;p&gt;There is one more detail I forgot to mention. After programming and thereby writing to the&amp;nbsp;PSELRESET registers the device needs to be reset once (by power-cycle or debug reset) in order to enable pin reset, as the&amp;nbsp;PSELRESET registers are only read during startup.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 custom hardware Reset using External switch</title><link>https://devzone.nordicsemi.com/thread/289327?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 05:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b7f67d1-1ca5-4743-85e7-487537e8f7d8</guid><dc:creator>Rohit Rajapure</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the response,&lt;/p&gt;
&lt;p&gt;Okay, I will re-check this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/70431/nrf52840-custom-hardware-reset-using-external-switch/289209#289209"]For HW, can you check that P0.18 actually becomes 0 V when pressing S6?[/quote]
&lt;p&gt;- As shown in the schematic, P0.18, P0.19, P0.21, P0.23, P0.25 are shorted. And there is no way that we can check specifically on P0.18 as IC is soldered. but we have a RST Testpoint in custom board and it goes to low when switch S6 is pressed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/70431/nrf52840-custom-hardware-reset-using-external-switch/289209#289209"]For SW, you can start by checking that the UICR register is actually correctly configured by reading it out with a debugger?[/quote]
&lt;p&gt;- Can you please give me steps on how to check this? Sorry, but the point is not clear on debugger how to check.&lt;/p&gt;
&lt;p&gt;Where I can find this address?&lt;/p&gt;
&lt;p&gt;- And per schematic can I short P0.18 and P0.25 pins and make connection on Dev-kit. Or will it cause any damage to Dev-kit because I have single Dev-kit so. &lt;/p&gt;
&lt;p&gt;- Also, If I just use If BOOT/RESET button from Dev-kit then Dev-kit gets reset properly without any issue.&lt;/p&gt;
&lt;p&gt;But unable to execute same on custom hardware.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and Regards&lt;/p&gt;
&lt;p&gt;Rohit R&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 custom hardware Reset using External switch</title><link>https://devzone.nordicsemi.com/thread/289209?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 13:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fbf941f-363c-409b-bd68-299f54d9345d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Rohit,&lt;/p&gt;
&lt;p&gt;This looks OK from a HW perspective. Pushing S6 will pull P0.18/RESET down to GND, asserting it. And it also looks correct from a SW perspective, with&amp;nbsp;CONFIG_GPIO_AS_PINRESET defined. I think we need to double check a bit.&lt;/p&gt;
&lt;p&gt;For HW, can you check that P0.18 actually becomes 0 V when pressing S6?&lt;/p&gt;
&lt;p&gt;For SW, you can start by checking that the UICR register is actually correctly configured by reading it out with a debugger? You should read out the value of the PSELRESET registers and see that both are 0x00000012 as shown here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Users\eith&amp;gt;nrfjprog.exe --memrd 0x10001200
0x10001200: 00000012                              |....|

C:\Users\eith&amp;gt;nrfjprog.exe --memrd 0x10001204
0x10001204: 00000012                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is that the case?&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>