<?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 repeated reboot without debugger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41100/nrf52840-repeated-reboot-without-debugger</link><description>Hi, we are trying to work with nRF52840. We have a problem that our hardware goes into continuous reboot mode when we disconnect the JLINK debugger. The disconnect can be a hard disconnect or a soft disconnect when the debugger is &amp;quot;clicked&amp;quot; to disconnect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Dec 2018 10:08:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41100/nrf52840-repeated-reboot-without-debugger" /><item><title>RE: NRF52840 repeated reboot without debugger</title><link>https://devzone.nordicsemi.com/thread/160699?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 10:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:412b887c-ddd6-4ad1-9fca-c73b3719167a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If you are entering the APP_ERROR_CHECK() with an error code, and you have DEBUG defined and logging enabled, the app_error_fault_handler() function will print the error code. In &amp;ldquo;nRF Only mode&amp;rdquo;, the debugger IC is not powered, but if you have a logic analyzer that can parse the serial data, you can just hook the &lt;span&gt;analyzer&amp;nbsp;&lt;/span&gt;up to the UART TX pin(p0.06), and see what the error code is.&lt;/p&gt;
[quote userid="29647" url="~/f/nordic-q-a/41100/nrf52840-repeated-reboot-without-debugger/160039"]Does this have anything to do with Watchdog?[/quote]
&lt;p&gt;I don&amp;#39;t think so.&lt;/p&gt;
[quote userid="29647" url="~/f/nordic-q-a/41100/nrf52840-repeated-reboot-without-debugger/160060"]* How can I use the internal HF oscillator to confirm if my external HF crystal is not the source of the problem?[/quote]
&lt;p&gt;First step would be to see if you get the event EVENTS_HFCLKSTARTED when you trigger the&amp;nbsp;TASKS_HFCLKSTART task.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  // Start HFCLK from crystal oscillator.
  NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
  while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);&lt;/pre&gt;&lt;/p&gt;
[quote userid="29647" url="~/f/nordic-q-a/41100/nrf52840-repeated-reboot-without-debugger/160060"]* What are the symptoms of an unstable external HF crystal?[/quote]
&lt;p&gt;You would see problems with&amp;nbsp;peripherals that needs an accurate HF clock, e.g. the RADIO&amp;nbsp;&lt;span&gt;peripheral.&lt;/span&gt;&lt;/p&gt;
[quote userid="29647" url="~/f/nordic-q-a/41100/nrf52840-repeated-reboot-without-debugger/160060"]* What happens if my RF is feeding back through the crystal path? I have an antenna which is part of the GND plane. I am feeding the RF output to a GND pattern which acts like an antenna.[/quote]
&lt;p&gt;That is OK. It should not cause any issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 repeated reboot without debugger</title><link>https://devzone.nordicsemi.com/thread/160060?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 16:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c06ae5-9109-4510-a58e-812aa4282edd</guid><dc:creator>gauthamkarnik</dc:creator><description>&lt;p&gt;Had a few more questions to ask&lt;/p&gt;
&lt;p&gt;* How can I use the internal HF oscillator to confirm if my external HF crystal is not the source of the problem?&lt;br /&gt;* Will the UART work satisfactorily well if I use the internal HF oscillator?&lt;br /&gt;* What are the symptoms of an unstable external HF crystal?&lt;br /&gt;* What happens if my RF is feeding back through the crystal path? I have an antenna which is part of the GND plane. I am feeding the RF output to a GND pattern which acts like an antenna.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 repeated reboot without debugger</title><link>https://devzone.nordicsemi.com/thread/160039?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 15:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5311004e-8e40-49b1-8966-e99b64d1c57e</guid><dc:creator>gauthamkarnik</dc:creator><description>&lt;p&gt;I agree with you on the DEBUG processor flag. I was just referring to the debug uart and not the flag.&lt;/p&gt;
&lt;p&gt;Regarding the DEFAULT Mode, every thing works fine. As long as we have the JTAG communications things work fine.&lt;/p&gt;
&lt;p&gt;Does this have anything to do with Watchdog?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 repeated reboot without debugger</title><link>https://devzone.nordicsemi.com/thread/160029?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 15:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f3bf029-b4c0-4261-bd0b-dc2896109de5</guid><dc:creator>Sigurd</dc:creator><description>[quote user="gauthamkarnik"]Even if the debug UART is enabled I do not suppose we could see anything when the processor resets.[/quote]
&lt;p&gt;&amp;nbsp;That is the reason why we add the DEBUG&amp;nbsp;&lt;span&gt;Processor flag, it will prevent the reset, and should instead print the error-code.&lt;/span&gt;&lt;/p&gt;
[quote user="gauthamkarnik"]* run in &amp;quot;nRF Only&amp;quot; mode[/quote]
&lt;p&gt;&amp;nbsp;Do you see any difference if you set it to &amp;quot;DEFAULT&amp;quot; instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 repeated reboot without debugger</title><link>https://devzone.nordicsemi.com/thread/160002?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 14:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79fe504b-3696-41bd-9ea9-7864fdb29897</guid><dc:creator>gauthamkarnik</dc:creator><description>&lt;p&gt;We do not have the debug UART enabled. I will look at the Debug Processor flag.&lt;/p&gt;
&lt;p&gt;Even if the debug UART is enabled I do not suppose we could see anything when the processor resets.&lt;/p&gt;
&lt;p&gt;We have also tested this on the Evaluation board (nRF52840 Eval board) and set up the board to&lt;/p&gt;
&lt;p&gt;* run with external battery&lt;/p&gt;
&lt;p&gt;* run in &amp;quot;nRF Only&amp;quot; mode&lt;/p&gt;
&lt;p&gt;The behavior is similar to what we are seeing with our custom HW.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 repeated reboot without debugger</title><link>https://devzone.nordicsemi.com/thread/159993?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 14:19:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0635721b-5933-4f70-be2c-b81b1cfe0ff8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A reset indicates that you are running into the error handler, where the default behavior is to do a reset.&lt;/p&gt;
&lt;p&gt;Have you enabled UART logging, do you gey any output from the UART?&lt;/p&gt;
&lt;p&gt;Could you set the DEBUG preprocessor flag:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0ae87e8818c149e3b39f93df9e4e4685/pastedimage1543846540078v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is the UART RX pin connected to anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>