<?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>External Reset Pin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61080/external-reset-pin</link><description>I have an issue with reseting the board using a hard reset via an external button. The onboard development kit reset works, but I am trying to perform the same task using an external push button. Below is how I have wired it. Note i think it should work</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 May 2020 14:12:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61080/external-reset-pin" /><item><title>RE: External Reset Pin</title><link>https://devzone.nordicsemi.com/thread/249999?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 14:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77ba0118-5dd4-47e6-a6e9-9864180f7aed</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I mean the application that you are testing on your custom board. Just to check if the settings are correctly set to enable the reset pin functionality.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Reset Pin</title><link>https://devzone.nordicsemi.com/thread/249968?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 13:09:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7fe370b-c817-4774-b9d0-2c8dec1db00a</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Can you clarify what you mean by FW please. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Reset Pin</title><link>https://devzone.nordicsemi.com/thread/249131?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 09:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d60e06e-08f6-44d0-bd75-df8d9f785cb0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The reset pin is active low, yes.&lt;/p&gt;
&lt;p&gt;Have you tried the same FW on the DK? Does the reset pin work there? Even if the rest of the application doesn&amp;#39;t work with the DK (since it is adapted to the new PCB), perhaps you can strip it down to only test the reset behavior?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Reset Pin</title><link>https://devzone.nordicsemi.com/thread/249092?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 07:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04fb8d15-98a1-45ab-9a3b-e434d995a73b</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;I upload the code to segger using build and run using segger. What I mean about factory resetting is using the cmd commands nrfjrog -e. I have looked in system_nrf52840.c and it is defined. Also tried cycling the power. Can you confirm the reset pin is active low?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Reset Pin</title><link>https://devzone.nordicsemi.com/thread/248733?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 13:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78f22e5a-0f57-4b51-bea3-a6ff98ccaea6</guid><dc:creator>Edvin</dc:creator><description>[quote user="ThomasMorris"]Should I try factory resetting the board and re uploading my firmware?[/quote]
&lt;p&gt;&amp;nbsp;What do you mean by factory resetting it? What kind of board is it? Does it come with a bootloader? Perhaps it doesn&amp;#39;t set the reset pin properly?&lt;/p&gt;
&lt;p&gt;How would you normally upload your code to the chip? Perhaps this will shed some light on how this is set up.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="ThomasMorris"]system_nrf52840.c[/quote]
&lt;p&gt;&amp;nbsp;Sorry, I missed the tag that said you were using the nRF52840.c. Yes. That is the file in that case.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Reset Pin</title><link>https://devzone.nordicsemi.com/thread/248667?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 09:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55144f08-f49c-411b-9ed6-2f894b414ecc</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Cheers Edvin,&lt;/p&gt;
&lt;p&gt;I have checked the voltage which does fall low on a button press. Note it also resets an arduino.&lt;/p&gt;
&lt;p&gt;I have attached the reset button wire to the pin labelled reset this is in between the two VDD pins. I have power cycled the board. I have also checked the preprocessor definitions it is included. I could not find a system_nrf52.c but did find a system_nrf52840.c this on line 168 has if defined ((CONFIG_GPIO_AS_PINRESET)) this is true. I am using Seeger.&lt;/p&gt;
&lt;p&gt;Should I try factory resetting the board and re uploading my firmware?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Reset Pin</title><link>https://devzone.nordicsemi.com/thread/248503?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 13:54:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:600699a5-9bf8-475a-8073-b13af596db7b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I assume you have tried to measure the voltage on &amp;quot;Switch pin&amp;quot; when you hold the button and not. If not, please check that it is actually pulled down by the button press.&lt;/p&gt;
&lt;p&gt;The next thing you need to check is that in your project, the reset button is enabled to actually reset the device.&lt;/p&gt;
&lt;p&gt;Check the system_nrf52.c file in your project. (If you can&amp;#39;t find it, what IDE do you use? Segger embedded studio?) As you see, this file will check if CONFIG_GPIO_AS_PINRESET is defined. So make sure that this is defined in your preprocessor definitions. If you are not sure how to check/add this, what IDE do you use?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Finally. You should know that this file and function is&amp;nbsp;&lt;strong&gt;only&lt;/strong&gt; executed on power on. I don&amp;#39;t remember the details on why. Or if it is executed on a normal reset as well. Either way, flash the application containing the CONIG_GPIO_AS_PINRESET in the preprocessor definitions, and try to power cycle the device. Does the reset button work then?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>