<?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>Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16530/issue-with-nrf51-unexpectedly-entering-debug-mode</link><description>Hi, 
 My company has been running into an issue with the NRF51822 where the MCU appears to enter debug mode unexpectedly and I wanted to see if any others had experienced the same problem. 
 Short story: 
 I&amp;#39;ve read through the messages in the forum</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jan 2017 10:24:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16530/issue-with-nrf51-unexpectedly-entering-debug-mode" /><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63248?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 10:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bbdfd7a-76a6-4773-b0f0-d995afeb4707</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;The reference layout (PS 3.3) uses a 1k resistor.&lt;/p&gt;
&lt;p&gt;When this is not enough, the suggested alternative is to remove the resistor and add the 1nF (or less) capacitor in its place. Note that using a capacitor instead of a resistor may affect programming speed, and for most designs using a 1k resistor solves the issue. Whether this change is needed depends on the particular PCB layout/casing/environment. See also the other suggestions in Kenneth&amp;#39;s answer above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63247?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 13:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dda5458-2ca5-40ff-8b1c-89b45590bcfb</guid><dc:creator>Stefan</dc:creator><description>&lt;p&gt;Bumping this. We can (rarley) reproduce exact the same behaviour with 1.2mA when device is doing nothing, and 4mA when we run system_off.&lt;/p&gt;
&lt;p&gt;The issue is triggered when you glitch the power on/off, and not even the HW reset circuit saves us since the reset is inactivated...&lt;/p&gt;
&lt;p&gt;Is the official solution to add 1k resistor together with 1nF shunt on the SWDCLK?
Since the 1k is added in PS 3.3 i assume Nordic knows that this is a problem in practice as well and should have a verified solution&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63245?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2016 13:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd57c8c7-2882-469f-9824-89f943ea8a89</guid><dc:creator>Carl</dc:creator><description>&lt;p&gt;No sign of a glitch on SWDCLK. However, we have observed that placing a probe on the SWDIO/nRESET pin during power-up prevents the issue from occurring (probably due to capacitance).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63244?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2016 10:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a0f75f-b4b1-4475-a1eb-3a431c296d26</guid><dc:creator>Carl</dc:creator><description>&lt;p&gt;I am investigating a similar issue now. The chip appears to enter debug state (draws high currents even in system off, ignores reset pin, but otherwise behaves correctly) very rarely in cases of unusual power-on conditions. Will check for glitches on SWDCLK today. Note that the resistor on the SWDCLK line is only shown in version 3.3 of the nRF51822 PS, not version 3.1, and there is no explanatory text (which I&amp;#39;d expect if this is a known issue, particularly as the pin has an internal pull-down as well).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63246?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 19:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a58bee12-5a73-4b76-8d7e-5b97af2b2cd0</guid><dc:creator>Dave J</dc:creator><description>&lt;p&gt;@Jarmo, We have not succeeded in capturing the event that is causing the NRF51 to enter debug mode. I&amp;#39;ll keep this thread updated if we find any more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63243?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 12:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef24cfd-10e5-4fdb-9ee0-af08aaea9e3d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;A pull down itself doesn&amp;#39;t provide any filtering, so if you have instant energy applied to the trace, the pull down will only reduce the time, not necessarily the level. In such case a capacitor will be a better solution. The nRF52 requires 50clock cycles + 2 x 32-bit word required to enable debug mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63242?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2016 13:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ac9ff2-fe82-4423-a48e-4278e859a2de</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;My similar question is here: &lt;a href="https://devzone.nordicsemi.com/question/98116/nrf51822-current-consumption-after-power-up-is-often-1000-x-higher/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63241?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2016 12:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a1c4a6-7d71-492d-b35f-da0633154e02</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Have you succeeded to capture such an accidental noise event in SWDCLK line? It is very hard to believe the explanation, especially when there is that 470 ohm pull-down installed. It would need really strong external field to generate enough noise into that strongly grounded line. Or at least I think so. Is the SWDCLK somehow very different compared to other GPIO pins?&lt;/p&gt;
&lt;p&gt;Yes, we are experiencing the same problem and it is really very frustrating. Is the nRF52832 any better in this sense?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63240?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 19:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6efc0da5-465f-4fd7-a6ea-0e171f4e7125</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The short answers to your questions are: Yes, Yes, and No.&lt;/p&gt;
&lt;p&gt;Debug interface mode is initiated by clocking one clock cycle on SWDCLK with SWDIO=1 [See ch. 11.1.2 Debug interface mode in nRF51 Reference Manual v3.0].&lt;/p&gt;
&lt;p&gt;Depending on layout, grounding and housing, it is not unlikely that the SWDCLK trace can act as an &amp;quot;antenna&amp;quot; and for instance, if the device is subjected to strong electromagnetic fields close by (for example a cell phone at high output power), this might be picked up.&lt;/p&gt;
&lt;p&gt;For the majority of the applications I am aware of this is not a problem, and this is typically something developers experience during prototype stage when the bare PCB is exposed to the environment.&lt;/p&gt;
&lt;p&gt;We recommend to add a small resistor on the SWDCLK line to make it more robust [See reference circuitry in nRF51822 Product specification v3.1]. The resistor should be as small as possible, yet still make it possible to program the chip. We have recommended 1kohm.&lt;/p&gt;
&lt;p&gt;If you still experience that the product enter debug mode, you might consider additional steps. For instance make the SWDCLK track as short as possible, have ground on all sides of the track to avoid crosstalk with other digital lines, and avoid that it can act as an antenna. You might consider replace the 1kohm with a 1nF capacitor (or less), this might affect programming speed.&lt;/p&gt;
&lt;p&gt;As a last resort you might even consider connect a spare GPIO on the nRF51822 directly to SWDCLK, and set the spare GPIO to output low after power up. This will prevent re-programming, so you might want to have some means for the application to release the pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with NRF51 unexpectedly entering debug mode</title><link>https://devzone.nordicsemi.com/thread/63239?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2016 23:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50e8622a-fe4e-4c58-8149-e10584093a6c</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure if this is related.&lt;/p&gt;
&lt;p&gt;But I posted a question where the nRF51 would not enter debug.&lt;/p&gt;
&lt;p&gt;I have it connected, all the time via JLink, and I uploaded some code, but I think I must have had a pointer overflow.
But when I tried to upload, JLink would not connect.&lt;/p&gt;
&lt;p&gt;I had to power cycle the device (a Smart Watch) in order to be able to upload.&lt;/p&gt;
&lt;p&gt;PS. As far as I&amp;#39;m aware, no one answered my question about not being able to enter debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>