<?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 button doesn&amp;#39;t work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38555/reset-button-doesn-t-work-on-some-nrf52840-dk-pca10056-1-0-0-boards</link><description>The reset button doesn&amp;#39;t seem to work on two of my PCA10056 1.0.0 development kits, but works on two others, and works on some earlier versions. 
 
 I tested by running the peripheral/uart and peripheral/blinky examples with SDK 15.0.0 and SDK 15.2.0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Oct 2018 13:32:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38555/reset-button-doesn-t-work-on-some-nrf52840-dk-pca10056-1-0-0-boards" /><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/151472?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 13:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d7716fe-09a8-40a5-9c89-cd1681a841bd</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You pin reset number is not 18 somehow, as it should be, but 21.&lt;/p&gt;
&lt;p&gt;Can you open the project you have programmed the boards you have a problem with and search for:&lt;/p&gt;
&lt;p&gt;NRF_UICR-&amp;gt;PSELRESET[0] and NRF_UICR-&amp;gt;PSELRESET[1]&lt;/p&gt;
&lt;p&gt;They should be set to 18, not 21.&lt;/p&gt;
&lt;p&gt;Like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    #if defined (CONFIG_GPIO_AS_PINRESET)
        if (((NRF_UICR-&amp;gt;PSELRESET[0] &amp;amp; UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_Pos)) ||
            ((NRF_UICR-&amp;gt;PSELRESET[1] &amp;amp; UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_Pos))){
            NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            NRF_UICR-&amp;gt;PSELRESET[0] = 18;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            NRF_UICR-&amp;gt;PSELRESET[1] = 18;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
            while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}
            NVIC_SystemReset();
        }
    #endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can find them in the &lt;strong&gt;system_nrf52840.c&lt;/strong&gt; file.&lt;/p&gt;
&lt;p&gt;Hopefully this works.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/151449?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 12:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:335b792f-1b41-4951-9644-4a59a6e4f595</guid><dc:creator>mtfurlan_t</dc:creator><description>&lt;p&gt;0x10001200: 00000015 00000015&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/151335?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 07:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd2a9e5a-e7ba-420d-84d6-8e976538c431</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Could you try this command on both board that does not work:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrfjprog --memrd 0x10001200 --w 32 --n 8&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please post the output, it should be:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;0x10001200: 00000012 00000012                     |........| &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/151258?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 13:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec9cce35-8dac-426b-9752-09a2344365ac</guid><dc:creator>mtfurlan_t</dc:creator><description>&lt;p&gt;That works fine.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The two boards that are having this issue are&lt;/p&gt;
&lt;p&gt;PCA10056 1.0.0 2018.17 683415786&lt;/p&gt;
&lt;p&gt;PCA10056 1.0.0 2018.17 683742869&lt;/p&gt;
&lt;p&gt;One of the boards that works is&lt;/p&gt;
&lt;p&gt;PCA10056 1.0.0 2018.20 683557756&lt;/p&gt;
&lt;p&gt;Also working are the boards I tried under version 1.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/151103?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 06:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a53ce577-d3a2-4dd3-bcd1-43c3d82b0f7f</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Could you try to hold down the RESET button, and switch the board off and on, and release the RESET button.&lt;/p&gt;
&lt;p&gt;Is LED 5 blinking slowly? If it is then the RESET button is connected to the debugger as it should be.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/150986?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 13:26:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa7d99c-f1c9-448d-bdf3-99b72525221f</guid><dc:creator>mtfurlan_t</dc:creator><description>&lt;p&gt;I have it defined in CFLAGS and ASMFLAGS&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;CFLAGS += -DCONFIG_GPIO_AS_PINRESET&lt;/p&gt;
&lt;p&gt;ASMFLAGS += -DCONFIG_GPIO_AS_PINRESET&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/150930?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 10:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d847f632-71e5-4fde-a32e-98dbe185cd6e</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Can you check that you have &lt;strong&gt;CONFIG_GPIO_AS_PINRESET&lt;/strong&gt; defined in your preprosessor settings?&lt;/p&gt;
&lt;p&gt;Open Project Options --&amp;gt; Select Common --&amp;gt; Preprocessor --&amp;gt; Preprosessor Definitions --&amp;gt; &lt;strong&gt;CONFIG_GPIO_AS_PINRESET&lt;/strong&gt; should be in that list&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/150711?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 12:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9747757-6da7-4aae-aa9c-7e4afaa57fe7</guid><dc:creator>mtfurlan_t</dc:creator><description>&lt;p&gt;I don&amp;#39;t actually have the function nrf_drv_usbd_errata_type_52840_fp1.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m actually on nRF5_SDK_15.2.0_9412b96 not 15.0.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/150643?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 09:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a0e816-262b-4cea-8f83-43befe717de3</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Then there shouldn&amp;#39;t be anything wrong with the hardware. Can you try to modify what I wrote in my last reply?&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/150525?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 15:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21b5731a-1c89-414e-ae31-a0526ada2e83</guid><dc:creator>mtfurlan_t</dc:creator><description>&lt;p&gt;I do see a 30ms drop to ground on pin 18.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/149346?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 07:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8af97e40-2509-4df8-b8f3-ecbcc4981351</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;br /&gt;&lt;br /&gt;1. Are the kits connected with USB? Make sure your kit is connected with USB. Could you measure using a oscilloscope that there is a pulse from P0.18 when you press reset? I had a 30ms pulse.&lt;br /&gt;&lt;br /&gt;2. If there is no pulse, could you try modifying the following: &lt;br /&gt;&lt;br /&gt;The function found in line 94 in nrf_drv_usbd_errata.h in location nRF5_SDK_15.0.0_a53641a\components\drivers_nrf\usbd&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static inline bool nrf_drv_usbd_errata_type_52840_fp1(void)
{
    return ( nrf_drv_usbd_errata_type_52840() &amp;amp;&amp;amp;
               ( ((*(uint32_t *)0xF0000FE8) &amp;amp; 0xF0) == 0x10 ) &amp;amp;&amp;amp;
               ( ((*(uint32_t *)0xF0000FEC) &amp;amp; 0xF0) == 0x00 ) );
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Try changing it to:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static inline bool nrf_drv_usbd_errata_type_52840_fp1(void)
{
    return ( nrf_drv_usbd_errata_type_52840() &amp;amp;&amp;amp;
               ( ((*(uint32_t *)0xF0000FE8) &amp;amp; 0xF0) == 0x20 ) &amp;amp;&amp;amp; // note: modified from 0x10 to 0x20!
               ( ((*(uint32_t *)0xF0000FEC) &amp;amp; 0xF0) == 0x00 ) );
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;There could be that this small bug in the SDK is causing your issue.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/149241?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 13:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc1d7d7-d8d0-474e-b3d3-a3177339838e</guid><dc:creator>mtfurlan_t</dc:creator><description>&lt;p&gt;So on a board where the reset button does work, SB42 and P0.18 are around 3V unrelated to if I am pressing the reset button or not.&lt;/p&gt;
&lt;p&gt;When the board is off, I can see connectivity between P0.18 and SB42, but not to any of the pads of the reset button.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see a difference on boards that don&amp;#39;t have a working reset button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset button doesn't work on some nRF52840 DK PCA10056 1.0.0 boards</title><link>https://devzone.nordicsemi.com/thread/148965?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 09:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d9ee493-2876-493d-892e-4d4a83ba953f</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Could you first measure if you have a signal on P0.18 when you click on RESET?&lt;/p&gt;
&lt;p&gt;And then measure SB42 when you click on RESET?&lt;/p&gt;
&lt;p&gt;You find SB42 close to DEBUG IN&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-353c194bc4d24ea48d53ffe9c46e3c96/pastedimage1537175270653v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>