<?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>Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16333/debugging-external-nrf51422</link><description>Hi, 
 I am programming and debugging an external customised board by following the DK manual and the below link:
 electronut.in/.../ 
 I use the interface P20 instead of P19, and wire the four signals (VTG, GND_Detect, SWDIO and SWDCLK) to the external</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Sep 2016 00:07:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16333/debugging-external-nrf51422" /><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62418?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 00:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1768a12-67a7-41ea-b6ea-2200deab3a8a</guid><dc:creator>swoud</dc:creator><description>&lt;p&gt;Hi, could you please refer to my update and give me some suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62426?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 04:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f41cae90-6f65-4181-8884-f14f2f2056d9</guid><dc:creator>swoud</dc:creator><description>&lt;p&gt;Hi, thanks for your reply. I am sorry but I know quite little about software part. Could you please guide me how to connect to the target chip via JLink command line? Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62425?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 04:28:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d294371-fb12-44c8-9b7a-7d4a73e2f208</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;No there is no reason for this - it works - therefore either you have not connected it properly or you have misidentified which board you are connected to and it has in fact bypassed it, or you blew something up whilst trying it out .&lt;/p&gt;
&lt;p&gt;Again - use the JLink command line to read the FICR on the chip to work out what you are actually connected to in each case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62424?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 04:25:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aed14be-b0d6-4486-aae5-3b9b77542401</guid><dc:creator>swoud</dc:creator><description>&lt;p&gt;Hi, what confuses me is that, when the pin1 of P19 is supplied with high voltage while pin10 is connected to the GND, the DK should bypass the internal chip, however, it doesn&amp;#39;t. is there any reason for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62422?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 03:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43df99a4-c0cd-491e-9717-1880bd60701a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I have no more ideas and your explainaion about the serial port was too contorted to understand. I am however telling you that if the debugger is connected during programming then it&amp;#39;s connected during debugging, they are one and the same thing. It&amp;#39;s either connected, or it&amp;#39;s not connected.&lt;/p&gt;
&lt;p&gt;Try using JLink from the command line to go read the FICR where the unique MAC address of the chip is, that will tell you which chip you are actually talking to&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62423?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 01:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f7f595f-c7b8-45e6-b180-e1d00b3681c4</guid><dc:creator>swoud</dc:creator><description>&lt;p&gt;Hi, I did change to P19 for programming, but the same problem still exists, the code is uploaded to the external chip but the debugging is directed to the internal one. Here is how I judge it (if the code is uploaded correctly, it will print on the serial port): 1. Connecting all the cables from P19 to the external board; 2. Powering on the external board and programming it from the DK; 3. Monitoring from the serial port shows nothing; 4. Disconnect only SWCLK signal from the external board, programming failed; 5. Disconnecting the whole external board, and programming the DK; 6. The serial port is printing normally; 7. Reconnecting the external board to P19, the serial port still works normally; So from above steps, I can tell the programming function works fine, but the debugging does not. I measured the voltage on Pin1 of P19, it is 3.3V, so I suspect the DK should bypass the internal chip. Would you please guide me on this? Many thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62417?ContentTypeID=1</link><pubDate>Sun, 11 Sep 2016 04:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b176f0be-5225-449a-95e8-c41a7a25a17d</guid><dc:creator>swoud</dc:creator><description>&lt;p&gt;Many thanks. I will use P19 instead and see whether it would recover this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62421?ContentTypeID=1</link><pubDate>Sun, 11 Sep 2016 04:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145b54d7-3f78-4604-a255-97f8d70a8900</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;programming and debugging are exactly the same - if it&amp;#39;s connected to the external one for programming, it&amp;#39;s connected to the external one for debugging also, it&amp;#39;s all done via the exact same interface. So I doubt you are seeing what you think you are seeing.&lt;/p&gt;
&lt;p&gt;And I have no idea whether it&amp;#39;s related to P19 vs P20, however P19 is the standard debug out, P20 is really designed for debugging things connected via arduino shields and if you check the links I pointed you to you will see lots of people have failed to use P20&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62420?ContentTypeID=1</link><pubDate>Sun, 11 Sep 2016 04:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f07f810-4617-4d98-ad89-c5f22a9f06b2</guid><dc:creator>swoud</dc:creator><description>&lt;p&gt;Thanks for your help and reply.
What really confuse me is that the DK can actually programme the external chip, but the debugged target is not correct (I can tell it is debugging the internal one). Does this problem relate to whether  pin19 or P20 I am selecting? Many thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging external nRF51422</title><link>https://devzone.nordicsemi.com/thread/62419?ContentTypeID=1</link><pubDate>Sun, 11 Sep 2016 01:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52433fcc-08f3-4d1f-abf6-764ba457296d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Type &amp;#39;P20&amp;#39; into the search box and read some of the previous threads about the difficulties of using P20 over P19. P20 is really designed for arduino shield debugging, P19 is the real debug out. There are a couple of suggestions in those threads which include shorting a couple of pins together. The best suggestion however is to use P19, the header which is actually designed for debug out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>