<?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>-102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119651/-102-error-when-flashing-nrf52840-dev-kit-via-j-link-plus</link><description>I get an error and the flashing fails when I attempt to flash the nRF52840 DK via an external J-Link Plus connected to the Debug In connector (P18). 
 Programming of the nRF52840 DK using the J-Link Onboard (OB) device in the Interface MCU (via USB port</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Apr 2025 21:34:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119651/-102-error-when-flashing-nrf52840-dev-kit-via-j-link-plus" /><item><title>RE: -102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/thread/533073?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 21:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d738626f-8955-41f3-9df4-be954f4a5324</guid><dc:creator>TUlric</dc:creator><description>&lt;p&gt;Kenneth, thanks for all your suggestions.&amp;nbsp; I did end up ordering another nRF52840DK board (which I needed for other reasons) and found it also failed. So, that led me down the path of re-examining all of my settings.&amp;nbsp; Fortunately, that exposed the issue.&amp;nbsp; It is not likely that others will run into this issue, but I thought I&amp;#39;d explain anyway to provide closure and give you another thing to suggest if you see other strange issues like this.&amp;nbsp; The problem was that I&amp;#39;d previously set the J-Link VTref to a fixed value to work with another board that I was using.&amp;nbsp; It still worked with that board, but not on the nRF52840DK, until I removed that override.&amp;nbsp; In this case the override was visible by using the ShowHWStatus command in J-Link Commander and was removed by sending &amp;quot;VTREF 0&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: -102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/thread/527873?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 14:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2178c1bb-75d6-417e-acca-d08e2c5ca92d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I unfortunately don&amp;#39;t have any other good suggestion here, possible try on a different DK if you have or other hardware for that matter.&amp;nbsp;Possible connect a logic analyzer to the SWD pins to check if the pins are driven high/low as expected.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: -102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/thread/527680?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 14:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bab64224-d11a-4af7-8fef-c0efd2a08071</guid><dc:creator>TUlric</dc:creator><description>&lt;p&gt;Also, in case it is a clue...&amp;nbsp; I can see, when I have the UART connected, that the SEGGER is able to do the reset, just not the programming.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: -102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/thread/527675?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 14:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32175618-ed50-4252-aaba-935ddfd0141c</guid><dc:creator>TUlric</dc:creator><description>&lt;p&gt;OK, I tried disconnecting the UART and powering the DK via P21.&amp;nbsp; Still the same error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: -102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/thread/527559?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 10:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a566d7e5-9390-45bc-99da-acb086f9f904</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Try to disconnect the UART for now, only connect the SEGGER. In addition power the DK through P21 (external supply) header.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: -102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/thread/527483?ContentTypeID=1</link><pubDate>Sun, 16 Mar 2025 21:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7952781c-76d8-431a-94e6-32e494045e08</guid><dc:creator>TUlric</dc:creator><description>&lt;p&gt;I had tried supplying power from USB connector J2 (the interface MCU, but only power, not digital) and from USB connector J3 (for the nRF52840 SoC) with the same results.&amp;nbsp; Per your suggestion I tried using VIN on P21 (at 4.8V) and I got the same -102 error.&amp;nbsp; Here are a couple of pictures of my setup.&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/BoardAndProgrammer.jpg" alt=" " /&gt;&amp;nbsp; &lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/BoardOnly.jpg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: -102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/thread/527474?ContentTypeID=1</link><pubDate>Sun, 16 Mar 2025 10:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e413094-bd1a-4076-8a57-ae43b1ba6e9c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The alternative I can see is to power the DK from the external supply (not using the USB), did you try that also? If that doesn&amp;#39;t work, then it must be something fundamentally different. Maybe take a picture of your setup so I can check.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: -102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/thread/527267?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 19:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baceaadf-9aa6-4e7c-9876-0ac4a66ce78f</guid><dc:creator>TUlric</dc:creator><description>&lt;p&gt;Thanks for pointing that out.&amp;nbsp; I am connecting the debugger to P18 as described in that reference and I have also probed the pin to ensure that the signals appear to be correct.&amp;nbsp; I am using a &amp;quot;&lt;a href="https://www.segger.com/products/debug-probes/j-link/accessories/adapters/9-pin-cortex-m-adapter/"&gt;Segger J-Link Adaptor CortexM&lt;/a&gt;&amp;quot; which flips the pins to match the CortexM expectations.&amp;nbsp; I had not tried switching SW7 since I thought that was for trace and not just external debugging.&amp;nbsp; But, I did try switching it after your suggestion and it did not affect the result.&amp;nbsp; I.e. I am still getting the -102 error when I attempt to flash.&amp;nbsp; Were there any clues in the log.log as to what was going wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: -102 error when flashing nRF52840 Dev Kit via J-Link Plus</title><link>https://devzone.nordicsemi.com/thread/526528?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 11:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e975ecc2-eadc-4abb-ba92-d85cb9df2969</guid><dc:creator>Kenneth</dc:creator><description>[quote user=""]I get an error and the flashing fails when I attempt to flash the nRF52840 DK via an external J-Link Plus connected to the Debug In connector (P18).[/quote]
&lt;p&gt;Have you followed:&lt;br /&gt;&amp;quot;&lt;span&gt;The Debug in connector (&lt;/span&gt;&lt;span&gt;P18&lt;/span&gt;&lt;span&gt;) makes it possible to connect external debuggers&amp;nbsp;&lt;/span&gt;&lt;span&gt;when the interface MCU USB cable is not connected, or the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="A hardware development platform used for application development." href="https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/dita_common/glossary/glossary.html#dk"&gt;&lt;dfn&gt;Development Kit (DK)&lt;/dfn&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;is in nRF only mode&lt;/span&gt;&lt;span&gt;.&amp;quot;&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/hw_debug_in_trace.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/hw_debug_in_trace.html&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>