<?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>Opening RTT console causes repeated resets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69968/opening-rtt-console-causes-repeated-resets</link><description>One of the nRF52840-DK (PCA10056 v2.0.0) we are using as a programmer and debugger for our custom board has started repeatedly resetting the custom board whenever an RTT console is opened. However it still works as a programmer and can control the program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jan 2021 00:30:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69968/opening-rtt-console-causes-repeated-resets" /><item><title>RE: Opening RTT console causes repeated resets</title><link>https://devzone.nordicsemi.com/thread/288061?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 00:30:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:396897ca-ab17-4192-81f6-576bfbfd76ee</guid><dc:creator>Samuel Pell</dc:creator><description>&lt;p&gt;If the cause is elsewhere in the code, why does this issue only occur with one particular board and not all others? Another debugging board has started doing the same behaviour, however when run with a third debugger and the same code these resets do not occur.&lt;/p&gt;
&lt;p&gt;Loading programs onto the custom board has also become hit-or-miss; failing for several &amp;#39;undocumented errors&amp;#39; in a row&amp;nbsp;before&amp;nbsp;succeeding. This is possibly due to the constant resets.&lt;/p&gt;
&lt;p&gt;Regardless, I have tried disabling RTT logging and it fixed&amp;nbsp;the issue of constant resets. However, this is not a practical solution as both of the UARTs are used so the only logging is from the SD card which cannot be accessed live. (Additionally UART logging occasionally causes the whole system to hang whilst waiting for a interrupt that never triggers.) Do you have an recommendations for the next steps to try and fix this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Opening RTT console causes repeated resets</title><link>https://devzone.nordicsemi.com/thread/286904?ContentTypeID=1</link><pubDate>Wed, 30 Dec 2020 02:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5ed52f6-f11c-4957-8403-c6ab7381e1ec</guid><dc:creator>Henry_Chou</dc:creator><description>&lt;p&gt;In my experience, it&amp;#39;s not the RTT message case the system reset. It&amp;#39;s usual the error handle procedure case the system reset. In your project code, it must be some error in some case. for example:&lt;/p&gt;
&lt;p&gt;err_code = some_func();&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;if the err_code happen, RTT will show log first, but error handle here&lt;/p&gt;
&lt;p&gt;__WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)&lt;br /&gt;{&lt;br /&gt; NRF_LOG_ERROR(&amp;quot;Fatal\r\n&amp;quot;);&lt;br /&gt; NRF_LOG_FINAL_FLUSH();&lt;br /&gt; // On assert, the system can only recover with a reset.&lt;br /&gt;#ifndef DEBUG&lt;br /&gt; NVIC_SystemReset();&lt;br /&gt;#else&lt;br /&gt; app_error_save_and_stop(id, pc, info);&lt;br /&gt;#endif // DEBUG&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;cause system reset. I think you have better to find out the real error cause.&lt;/p&gt;
&lt;p&gt;Else you may disable the RTT log backend in your sdk_config.h&lt;/p&gt;
&lt;p&gt;And try the root cause is RTT function or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>