<?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>Disable debug unit with JLink still connected?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/546/disable-debug-unit-with-jlink-still-connected</link><description>I&amp;#39;m measuring current consumption on nRF51822, making code changes and then flashing/debugging via JLink GDBServer and gdb. 
 Right now it seems like I either have to physically disconnect my board from the JLink Lite or disconnect the JLink from USB</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Oct 2013 12:44:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/546/disable-debug-unit-with-jlink-still-connected" /><item><title>RE: Disable debug unit with JLink still connected?</title><link>https://devzone.nordicsemi.com/thread/2807?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2013 12:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0778b81c-277c-4b5e-b2de-325ccc1e0ca8</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Take a look at the Makefile.posix attached &lt;a href="https://devzone.nordicsemi.com/index.php/is-it-possible-to-flash-s110-from-linux-or-os-x"&gt;here&lt;/a&gt;. It includes pin-reset target, which as Ulrich says will disable the debug interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable debug unit with JLink still connected?</title><link>https://devzone.nordicsemi.com/thread/2806?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2013 13:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf722701-cb7e-4a1e-9c30-f2629ebb2e75</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;The SWDIO and SWCLK are overlaid on the TMS and TCK pins of the JLink, so there are some JLink DLL APIs that can set the output of these manually. Reproducing the correct sequence with these outputs should produce a PIN reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable debug unit with JLink still connected?</title><link>https://devzone.nordicsemi.com/thread/2808?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2013 12:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93cdc3c9-25ed-4e41-8b5e-8b1b3d551e05</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I am using something like this in my Makefile:&lt;/p&gt;
&lt;p&gt;echo &amp;quot;device nrf51822\nw4 4001e504 2\nw4 40000544 1\nr\nexit\n&amp;quot; &amp;gt; $(OUTPUT_BINARY_DIRECTORY)/pin-reset.jlink&lt;/p&gt;
&lt;p&gt;Not sure what you mean by TMS and TCK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable debug unit with JLink still connected?</title><link>https://devzone.nordicsemi.com/thread/2805?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2013 12:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05dee7ea-a31e-40c0-ad21-d11af3c5e576</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m on thin ice when it comes to GDB server in general, but take a look at Chapter 10.1.3 of the nRF51 reference manual. Pin-reset, power-on-reset or brown-out reset should all detach the debugger.&lt;/p&gt;
&lt;p&gt;nrfjprog just follows the procedure listed in 10.1.3, using the JLink DLL.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Write 0x1 to POWER_RESET register&lt;/li&gt;
&lt;li&gt;ClrTMS &amp;amp; ClrTCK&lt;/li&gt;
&lt;li&gt;Wait at least 2ms&lt;/li&gt;
&lt;li&gt;SetTMS&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable debug unit with JLink still connected?</title><link>https://devzone.nordicsemi.com/thread/2804?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2013 12:37:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d87d755-23ca-442d-b594-cd51ede96d50</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;nrfjprog doesn&amp;#39;t run on OSX, that is why I asked about JLink GDB Server.  Not sure how nrfjprog actually does the reset, but we might be able to do it with the JLink console.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable debug unit with JLink still connected?</title><link>https://devzone.nordicsemi.com/thread/2803?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2013 12:34:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37a44ad9-e2db-4c7b-a612-7082a3b35f0a</guid><dc:creator>Christopher Mason</dc:creator><description>&lt;p&gt;I should also mention: I&amp;#39;m on a mac.  Does the nrfjprog tool use the JLink DLL?  Is it open source?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable debug unit with JLink still connected?</title><link>https://devzone.nordicsemi.com/thread/2802?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2013 12:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd1133f3-4f5d-4555-9f1b-b81cec167c8f</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Could this be done through JLink GDB server?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable debug unit with JLink still connected?</title><link>https://devzone.nordicsemi.com/thread/2801?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2013 08:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0be1181-54cd-4908-81d0-66b570bb5c95</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried doing a PIN-reset by calling &amp;quot;nrfjprog -p&amp;quot;?&lt;/p&gt;
&lt;p&gt;This should properly detach the debugger interface and reset the chip.&lt;/p&gt;
&lt;p&gt;Regards,
Ulrich&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>