<?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>Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34374/still-retained-in-debug-mode-nrf51822</link><description>hi all 
 I am facing the issue that the chip still retains in debug mode. SWDCLK pin has connected to GND directly. 
 steps: 
 1. after flashed hex file, removed debugger from the chip and made a hard reset. 
 2. now my customized application has communicated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 May 2018 10:31:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34374/still-retained-in-debug-mode-nrf51822" /><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/133785?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 10:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1c00440-d7b1-4430-a15d-b58eb8a4afd4</guid><dc:creator>Satheeshkumar</dc:creator><description>&lt;p&gt;thank you for your response. let me check and update soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/133772?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 09:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f9d0b73-3ded-4893-b37b-b6a21ad518b3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Based on this information, it is very unlikely that your issue is due to entering debug mode:&lt;/p&gt;
[quote user="yuvasatheesh"]&lt;p&gt;&lt;/p&gt;&lt;p&gt;sorry for late response. it was the pin reset by SWDIO/nReset pin. I have disabled all the software reset in my code.&lt;/p&gt;&lt;p&gt;I checked, there is no any external power up. we used bat42 diode to isolate the power to the nrf51 chip.&lt;/p&gt;&lt;p&gt;it is the very very huge issue for me. I have used RTC for the calendar, due to unnecessary reset,&amp;nbsp; the RTC also resetting the calendar&amp;nbsp;value.&lt;/p&gt;&lt;p&gt;to avoid this issue, I have written the current calendar value in flash memory for every minute. even though, still persist the lagging of time.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;I am sure, the reset has happened by a chip which has changed to debug&amp;nbsp;mode unnecessarily. please help me.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Debug mode is entered if SWDCLK goes high, and SWDIO goes low. SWDCLK cannot go high, as you have directly grounded that pin.&lt;/p&gt;
&lt;p&gt;What you are describing sounds like an assertion occurring in your application, or that you have noise in your design causing the SWDIO pin to be dragged low.&lt;/p&gt;
&lt;p&gt;What I recommend is that you enable blocking assertions in your firmware (add the preprocessor define &amp;quot;DEBUG&amp;quot; to your project) and also check the RESETREAS register upon reboot, then update this thread with the debug information you get if one of these states occurs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/133642?ContentTypeID=1</link><pubDate>Mon, 28 May 2018 12:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e3b6b88-f2a9-4dc7-8e28-adb36335be93</guid><dc:creator>Satheeshkumar</dc:creator><description>&lt;p&gt;Hi Alseth,&lt;/p&gt;
&lt;p&gt;sorry for late response. it was the pin reset by SWDIO/nReset pin. I have disabled all the software reset in my code.&lt;/p&gt;
&lt;p&gt;I checked, there is no any external power up. we used bat42 diode to isolate the power to the nrf51 chip.&lt;/p&gt;
&lt;p&gt;it is the very very huge issue for me. I have used RTC for the calendar, due to unnecessary reset,&amp;nbsp; the RTC also resetting the calendar&amp;nbsp;value.&lt;/p&gt;
&lt;p&gt;to avoid this issue, I have written the current calendar value in flash memory for every minute. even though, still persist the lagging of time.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am sure, the reset has happened by a chip which has changed to debug&amp;nbsp;mode unnecessarily. please help me.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/133154?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 08:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bd23be3-69da-4485-9fea-bcda7b540229</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Does this occur on one specific module, or do several show this issue?&lt;/p&gt;
&lt;p&gt;Just to confirm: A &amp;quot;hard reset&amp;quot; means that you are physically removing power to the nRF and applying it again afterwards?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could also measure VDD_NRF after removing the battery to see if there&amp;#39;s anything external trying to power up the nrf.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/132257?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 11:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a998ece2-80c0-46e9-822a-e93f34745889</guid><dc:creator>Satheeshkumar</dc:creator><description>&lt;p&gt;yes UART had removed and disabled UART module before sleep&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/132223?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 09:58:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94d9a306-347e-41b2-b972-4a886a192964</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Did you leave the UART connected? This can reverse-supply the chip via the RX pin, and could prevent the POR because VCC never drops low enough. &lt;/p&gt;
&lt;p&gt;Remember that UART idle is HIGH.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/132165?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 04:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3be48d7-2fc7-47b9-a05b-774af90c8d03</guid><dc:creator>Satheeshkumar</dc:creator><description>&lt;p&gt;yes exactly,&amp;nbsp; (~1.214mA) current has retained. at that time j-link was not connected&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/132132?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 17:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:848bc950-b37f-44a8-8237-55be4891efa7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is a hard reset? In order to exit debug mode, you need to either power cycle, or use &amp;quot;nrfjprog --pinreset&amp;quot;.&lt;/p&gt;
&lt;p&gt;Normally, the current consumption is 1.2mA when you&amp;#39;re in debug mode. Are you seeing exactly 1.0 mA?&lt;/p&gt;
&lt;p&gt;Does the&amp;nbsp;current&amp;nbsp;consumption change if you disconnect the UART connection going from the nRF to the external device?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/132017?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 11:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02deef0b-fe91-4f04-ba9b-a5f016e002c5</guid><dc:creator>Satheeshkumar</dc:creator><description>&lt;p&gt;thanks for the response. after UART communication, the chip successfully executes sleep function. but it still retains 1 mA, even though&amp;nbsp;I had disabled UART function before sleep there is no any HFCLK module running. And also the chip has reset sometimes automatically. this is purely debugging mode issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Still retained in debug mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/132010?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 10:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4727136-d91f-4c5d-8930-6f83d94b5c1e</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The &amp;quot;debug mode&amp;quot; can only be switched OFF by a power cycle or the debugger itself.&lt;/p&gt;
&lt;p&gt;For the JLink commander, I use the following commands to switch debug mode off:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if swd
speed 2000
connect

readDP 1
writeDP 1 0
q&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;First 3 lines are to connect to the chip. After executing these commands you should see a drop in current consumtion.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that enabling the UART would also cause about 1mA current consumtion, as this requires the HFINT or HFCLK to be up and running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>