<?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-DK reset button doesnt work?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51455/nrf52840-dk-reset-button-doesnt-work</link><description>Hi can somebody help why nrf52840 doesnt be reseted when you press SW5(if boot/reset)? I have alredy with tried with few examples flashed on nrf52840 and in Segger IDE set CONFIG_GPIO_AS_PINRESET as in datasheet says &amp;quot;When using SEGGER Embedded Studio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Aug 2019 06:25:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51455/nrf52840-dk-reset-button-doesnt-work" /><item><title>RE: Nrf52840-DK reset button doesnt work?</title><link>https://devzone.nordicsemi.com/thread/206495?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 06:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44ed6b49-576a-42ae-a3b5-022228e1b0a5</guid><dc:creator>gnrboy</dc:creator><description>&lt;p&gt;probally is that but for now everything works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840-DK reset button doesnt work?</title><link>https://devzone.nordicsemi.com/thread/206493?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 06:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6187e80-bc18-4bf7-8022-036484c60eb1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Glad you were able to solve the problem. Is the project you tried flashing a custom output .hex file from SES, or one of the SDK examples &amp;quot;premade&amp;quot; .hex files? If it&amp;#39;s a custom application, it&amp;#39;s likely that the .hex file you tried flashing in nRFConnect didn&amp;#39;t include the SoftDevice. If the SoftDevice is used by your application, you&amp;#39;ll have to add the SoftDevice .hex that can be found in&amp;nbsp;&lt;strong&gt;...\&lt;/strong&gt;&lt;strong&gt;nRF5_SDK_15.3.0_59ac345\components\softdevice\s140\hex&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840-DK reset button doesnt work?</title><link>https://devzone.nordicsemi.com/thread/206417?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 13:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d705c90-0ff7-4011-98ce-e53aa97b4243</guid><dc:creator>gnrboy</dc:creator><description>&lt;p&gt;PROBLEM SOLVED:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems that nrf connect app -&amp;gt; programmer app have some problem. I have tried multiple time to flash nrf52840-DK&amp;nbsp; with SES and NRF connect&amp;nbsp; programmer app with the same hex and problem will still always occur.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have now in SES in target tab first on connect j-link and then in SES in target tab on erase all and flash with the same hex used before and now reset work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840-DK reset button doesnt work?</title><link>https://devzone.nordicsemi.com/thread/206411?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 13:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d003d77-2372-4fb3-ae95-ec77067a3f34</guid><dc:creator>gnrboy</dc:creator><description>&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;it seems to me that is set pin p0.18.&lt;/p&gt;
&lt;p&gt;i dont have this function in entire solution&amp;nbsp;nrf_drv_usbd_errata_type_52840_fp1.&lt;/p&gt;
&lt;p&gt;my sdk is nrf5 15.3&lt;/p&gt;
&lt;p&gt;this is in system_nrf52840.c&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Im not 100 percent sure but i think that started after i have tried with nrf connect programmer app to flash nrf52840-dk with hex generated in SES. Maybe some settings is erased with Erase ALL command in nrf connect programmer? I have tried flashing from SES too but now that problem with reset button happens all the time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52840-DK reset button doesnt work?</title><link>https://devzone.nordicsemi.com/thread/206403?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 13:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4e5d90b-494d-4dd8-8913-41cd49aefaeb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you please check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38555/reset-button-doesn-t-work-on-some-nrf52840-dk-pca10056-1-0-0-boards/150930#150930"&gt;this link&lt;/a&gt;, which deals with a similar issue. It might be that your reset pin is set as P0.21 for some reason.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>