<?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>jlink flashing via nrf52840dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109897/jlink-flashing-via-nrf52840dk</link><description>Hi, 
 
 We can program our products via older nrf52840dk boards - we are using them as jlink programmer. But not with the recent ones. 
 
 We get error on linux and windows machines: 
 
 [error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Apr 2024 13:44:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109897/jlink-flashing-via-nrf52840dk" /><item><title>RE: jlink flashing via nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/477837?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 13:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d05552c-02ed-447c-a8a2-62af5f98da4d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Can you explain in detail how you use the debug out port? If you have a simple (hand drawn is more than good enough) schematic of how you use it as well as photo(s) that would be good.&lt;/p&gt;
&lt;p&gt;(How it should be used is explained under &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/hw_debug_out.html"&gt;Debug output&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: jlink flashing via nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/477752?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 09:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:779c32e4-7272-4265-afff-1a3015dc327a</guid><dc:creator>gorazd</dc:creator><description>&lt;p&gt;ok. hex dumps are then irrelevant, i had thought it could be of help if you would could to see the uicr settings from them.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;gt; Just so I&amp;nbsp;did not misunderstand anything, the problem is debugging/programming external boards via the Debug out port, right?&lt;br /&gt;&lt;br /&gt;yes exactly.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The version of all nrf52840dk boards is the same: 3.0.0, 2022.36&lt;br /&gt;but i know the one that is working was bought much earlier, like one year ago. And it might have been that that board was also not working initialy - and i remember to have played with this &lt;a href="https://wiki.segger.com/J-Link_OB#Workaround_2"&gt;https://wiki.segger.com/J-Link_OB#Workaround_2&lt;/a&gt; to get it start working.&lt;br /&gt;&lt;br /&gt;Can you recommend flashing these boards with some binaries. I know there are some binaries that can be programmed onto these boards when in bootloader mode.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: jlink flashing via nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/477511?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 10:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:855ce1a6-1163-48e6-bbee-d8b34b3e2f5c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="gorazdko"]the not working one: 1050271479 - NRF52840_xxAA_REV3&amp;nbsp;&amp;nbsp; # cant program board (1050283640 - NRF52832_xxAA_REV2), CAN program a NRF52840_xxAA_REV3 board[/quote]
&lt;p&gt;What is the version printed on the white sticker on both the working and non-working boards (this tells us the version of the DK, includign which onboard deugger it has)?&lt;/p&gt;
[quote user="gorazdko"]&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3858.the_5F00_working_5F00_one.hex"&gt;the_working_one.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2476.the_5F00_NOT_5F00_working_5F00_one.hex"&gt;the_NOT_working_one.hex&lt;/a&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Are these .hex dumps of the onboard nRF52840 deviceon on the DK? If so, these are not relevant, as this has nothign to do with the debug out feature.&lt;/p&gt;
&lt;p&gt;Just so I&amp;nbsp;did not misunderstand anything, the problem is debugging/programming external boards via the Debug out port, right? Can you elaborate a bit as there are a few pieces of information here that I am hving trouble to link (like the relevance of the flash content of the onboard nRF52840 device).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: jlink flashing via nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/477257?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 09:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f066d4-fa52-4b34-9deb-9efb492d9afa</guid><dc:creator>gorazd</dc:creator><description>&lt;p&gt;You&amp;#39;re rigth. It seems that i can only program REV3 MCUs but not REV2:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;the not working one: 1050271479 - NRF52840_xxAA_REV3&amp;nbsp;&amp;nbsp; # cant program board (1050283640 - NRF52832_xxAA_REV2), CAN program a NRF52840_xxAA_REV3 board&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;the working one: 1050283640 - NRF52840_xxAA_REV3&amp;nbsp;&amp;nbsp; # CAN program ANY board via its jlink&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/the_5F00_working_5F00_one.hex"&gt;devzone.nordicsemi.com/.../the_5F00_working_5F00_one.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/the_5F00_NOT_5F00_working_5F00_one.hex"&gt;devzone.nordicsemi.com/.../the_5F00_NOT_5F00_working_5F00_one.hex&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: jlink flashing via nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/477083?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 11:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:101c2b00-eeaf-4b8f-b273-c00905ec77fb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am a bit confused about this. You need to be able to debug in order to program the UICR, so if you are, that means you get debugging/programming working? Also, there should not be any need to flash anything to the UICR, and the hex file you have attached has all FF in the UICR, so it is the same as you get after an erase all operation. So I wonder if there is a pattern in when you see this issue and not?&lt;/p&gt;
&lt;p&gt;Without fully understanding the situation, we saw another issue not long ago which was temporarily worked around by using nRF Command Line Tools version 10.23.0 and J-Link 7.88j, so I would suggest that.&lt;/p&gt;
&lt;p&gt;Also, note that if you are programming the latest generation nRF52840, you need to do a recover operation (like &amp;quot;nrfjprog --recover&amp;quot;) to open up the debug interface, as it is locked by default.&lt;/p&gt;
&lt;p&gt;PS: I am not sure the Segger licence allows using DKs as production programmers, so you may want to&amp;nbsp;check with Segger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: jlink flashing via nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/476865?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 12:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8be9ac1-ba6f-44b0-9d49-6e1dc4f45c13</guid><dc:creator>gorazd</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/uicr_5F00_52840.hex"&gt;devzone.nordicsemi.com/.../uicr_5F00_52840.hex&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Apparently yes - some uicr settings need to be set correctly. Why are the new borads not configured like that by default? Provide link/information about the uicr registers.&lt;br /&gt;&lt;br /&gt;To make it work i read the uicr registers from older boards and flashed it to the newer ones, like so:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;nrfjprog --program uicr_52840.hex --verify --reset&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>