<?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 or Reboot Reason</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86421/reset-or-reboot-reason</link><description>I am using nrf52832, softdevice S112 and SDK 17.1.0. I am running the peripheral ble_uart example continuously with the central device sending connects and disconnects in loop. 
 I see that after a while the peripheral resets/reboots. After the reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Apr 2022 14:12:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86421/reset-or-reboot-reason" /><item><title>RE: Reset or Reboot Reason</title><link>https://devzone.nordicsemi.com/thread/362398?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 14:12:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf2ea03-c20b-4500-bd7e-04880fddf05d</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Justin,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have asked expat of our team about the issue. Comment is the shared below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;As long as CONFIG_GPIO_AS_PINRESET is defined, it will enter the &amp;#39;&amp;#39;if&amp;#39;&amp;#39; on every boot, but it should only reset if the UICR register is being written. This should only happen on the first boot, as the next boot should have the correct value in UICR already. Otherwise you would face an endless boot-loop where the chip always resets before entering the application.&amp;#39;&amp;#39;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset or Reboot Reason</title><link>https://devzone.nordicsemi.com/thread/362059?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 11:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41d46292-428e-4e05-b8ed-0271623c4eb3</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Any help in this regard would be highly appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset or Reboot Reason</title><link>https://devzone.nordicsemi.com/thread/361620?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 19:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e065ba9-12c9-4e82-801a-f4dd39937627</guid><dc:creator>Justin</dc:creator><description>[quote userid="108933" url="~/f/nordic-q-a/86421/reset-or-reboot-reason/361459#361459"]if (NRF_POWER-&amp;gt;RESETREAS &amp;amp; POWER_RESETREAS_RESETPIN_Msk){
    NRF_POWER-&amp;gt;RESETREAS =  ~POWER_RESETREAS_RESETPIN_Msk;
}[/quote]
&lt;p&gt;I added this as well. After reset/reboot I am reading RESETREAS as 0x1000C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset or Reboot Reason</title><link>https://devzone.nordicsemi.com/thread/361611?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 18:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:551f5036-c8cf-4a5f-b25f-3bfe67a06824</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thank you for looking to this.&lt;/p&gt;
&lt;p&gt;I did put a breakpoints for calls to NVIC_SystemReset() and observed that during every reboot/reset I am ending up in&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#if defined (CONFIG_GPIO_AS_PINRESET)&lt;br /&gt;&amp;nbsp;if (((NRF_UICR-&amp;gt;PSELRESET[0] &amp;amp; UICR_PSELRESET_CONNECT_Msk) !=&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_Pos)) ||&lt;br /&gt; ((NRF_UICR-&amp;gt;PSELRESET[1] &amp;amp; UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_Pos))){&lt;br /&gt; nvmc_config(NVMC_CONFIG_WEN_Wen);&lt;br /&gt; NRF_UICR-&amp;gt;PSELRESET[0] = RESET_PIN;&lt;br /&gt; nvmc_wait();&lt;br /&gt; NRF_UICR-&amp;gt;PSELRESET[1] = RESET_PIN;&lt;br /&gt; nvmc_wait();&lt;br /&gt; nvmc_config(NVMC_CONFIG_WEN_Ren);&lt;br /&gt; NVIC_SystemReset();&lt;br /&gt; }&lt;br /&gt; #endif&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is in SystemInit() function and gets called during startup.&lt;/p&gt;
&lt;p&gt;Can you please help me in debugging the reason for the system reset?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset or Reboot Reason</title><link>https://devzone.nordicsemi.com/thread/361459?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 10:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aec57ba2-e9d2-4036-be2d-711269562288</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;You should search the project for calls to NVIC_SystemReset(). if you do not have this, you an use the error handler what I said in my previous reply.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;You can apply the following code after any reset (&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev3/ERR/nRF52832/Rev3/latest/anomaly_832_136.html?cp=4_2_1_0_1_34"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev3/ERR/nRF52832/Rev3/latest/anomaly_832_136.html?cp=4_2_1_0_1_34&lt;/a&gt;&amp;nbsp;)&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code&gt;if (NRF_POWER-&amp;gt;RESETREAS &amp;amp; POWER_RESETREAS_RESETPIN_Msk){
    NRF_POWER-&amp;gt;RESETREAS =  ~POWER_RESETREAS_RESETPIN_Msk;
}&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset or Reboot Reason</title><link>https://devzone.nordicsemi.com/thread/361382?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 04:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf1d444-d2b9-4db5-87c7-b722def7c7c8</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt; Can you please look into this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset or Reboot Reason</title><link>https://devzone.nordicsemi.com/thread/361133?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 06:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10fb9b5c-8f66-4d84-bfbb-aef21b83f35f</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;I did try building with debug configuration.&lt;/p&gt;
&lt;p&gt;I am using iar compiler and have breakpoint in&amp;nbsp;app_error_handler() in app_error_handler_iar.c file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see that the breakpoint is not getting hit before the reset/reboots. Is there any other place I can check for the possible reason for reboot?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reset or Reboot Reason</title><link>https://devzone.nordicsemi.com/thread/361066?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 14:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7ff1ec-0f0c-4060-8d75-aa8786fdc052</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Justin,&lt;/p&gt;
&lt;p&gt;You can build debug configuration, then put a breakpoint in the error handler to read out the error info (error code + filename/line number). This is also output on the logger if this is enables, when debug flag is set.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>