<?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>nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43788/nrf52840-dongle-firmware-flash</link><description>Hi, 
 due to some evaluation effort of nRF52840 Dongle, I went through whole Zephyr project building of their Bluetooth hci_uart example. After couple of ardous hours(or more), I was finally able to generate appropriate .hex for nRF52840 Dongle(PCA10059</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Feb 2019 13:28:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43788/nrf52840-dongle-firmware-flash" /><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/172306?ContentTypeID=1</link><pubDate>Thu, 21 Feb 2019 13:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6df2a7d-011d-4cdb-a0e1-48d8b39146a0</guid><dc:creator>Storvagun</dc:creator><description>&lt;p&gt;Ok, for the future generations - it was the cable problem.&lt;/p&gt;
&lt;p&gt;to be more specific, pinout of the cable connecting Cortex M Adapter and nRF52840 Dongle was not correct - SWCLK signal was missing on the dongle. This caused all problems.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/600x240/__key/communityserver-discussions-components-files/4/PinoutWrong.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;J&amp;oslash;rgen, thanks again for the support.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I had to weld wires directly to the board, but I&amp;#39;m now able to flash it.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/172193?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2019 21:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb3542b4-ff21-4846-a728-29a68a1bd1c1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I do not see anything that could cause this, except connection issues. Can you check with a multimeter if there are connection between the SWDIO/SWDCLK pinout on the adapter you have in the J-Link Plus to the SWDIO/SWDCLK pads on the dongle close to the USB port, to be absolutely certain that there is not some issue with connection/cable?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://www.segger.com/fileadmin/images/products/J-Link/Interface_Description/181129_SWD.svg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-4c6ec596b7424fbfbd7786b7bdc0f37f/nRF52840_5F00_dongle_5F00_kit_5F00_content.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/171965?ContentTypeID=1</link><pubDate>Tue, 19 Feb 2019 17:46:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a10ce5b4-e02a-4859-a154-32bab3d07dc9</guid><dc:creator>Storvagun</dc:creator><description>&lt;p&gt;Unfortunately, I have no nRF5x DK to work with.&lt;/p&gt;
&lt;p&gt;The dongle was plugged in USB, otherwise I get different kind of error which signals that I&amp;#39;m missing power.&lt;/p&gt;
&lt;p&gt;Below is what I tried.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Case A:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. Plug in the dongle in USB, and Plug in JLink in USB.&lt;/p&gt;
&lt;p&gt;2. Execute nrfjprog to try to flash zephyr.hex to dongle.&lt;/p&gt;
&lt;p&gt;3. Immediately after I execute nrfjprog, red led starts pulsating.&lt;/p&gt;
&lt;p&gt;4. JLinkARMDLL.dll problem appears.&lt;/p&gt;
&lt;p&gt;5. Nothing is flashed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Case B:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. Plug in the dongle in USB, and Plug in JLink in USB.&lt;/p&gt;
&lt;p&gt;2. Press &amp;quot;Reset&amp;quot; button -&amp;gt; Red LED starts pulsating&lt;/p&gt;
&lt;p&gt;3. Execute nrfjprog to try to flash zephyr.hex to dongle&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp; JLinkARMDLL.dll problem appears.&lt;/p&gt;
&lt;p&gt;5. Nothing is flashed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is exact nrfjprog command I executed:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrfjprog --program zephyr.hex -f NRF52 --snr 609301412 --sectoranduicrerase&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;ve tried both of these scenarios on Win10 PC, and on Ubuntu 18.04 LTS.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a little desperate now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/171951?ContentTypeID=1</link><pubDate>Tue, 19 Feb 2019 15:56:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:559fec06-6339-469c-a0df-3a34abc626d3</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You do not have a nRF5x DK that you could try as a debugger instead of the J-Link? The Dongle should be plugged in a USB port when it is flashed, but I understand that you did this? You should anyway get a different error if the dongle was not powered.&lt;/p&gt;
&lt;p&gt;The glowing light indicate that the dongle is in bootloader mode, is this not the case before you try to flash it with the J-Link?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/171886?ContentTypeID=1</link><pubDate>Tue, 19 Feb 2019 12:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78a4777b-6e9a-4ff7-9187-21a5a9d750d1</guid><dc:creator>Storvagun</dc:creator><description>&lt;p&gt;I have flashed multiple ATMEL boards with this same JLink, so I believe it works correctly.&lt;/p&gt;
&lt;p&gt;So immediately after the nrfjprog command is executed, red LED starts pulsating on the nRF52840 dongle.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s strange that the nRF chip is not found, since this dongle works just fine with nRF Connect software.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So it must be something on the nrfjprog/JLink side.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT : I&amp;#39;ve tried with another JLink Plus adapter - no success. Still the same error message.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/171884?ContentTypeID=1</link><pubDate>Tue, 19 Feb 2019 12:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf0112b3-f35e-42d9-a375-9591f5e25565</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you tested to flash any of our development kits with the same J-Link? I tested a J-Trace Pro with the dongle, and I&amp;#39;m able to flash it just fine with nrfjprog.&lt;/p&gt;
&lt;p&gt;Error -102 from JLinkARM.dll indicate that the nRF chip was not found.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/171801?ContentTypeID=1</link><pubDate>Tue, 19 Feb 2019 07:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2cd0a8-f3c2-44a3-91bb-97ace7d4ae08</guid><dc:creator>Storvagun</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;Sorry - I&amp;#39;ve sen&amp;#39;t the wrong picture, the dongle was plugged correctly - I&amp;#39;ve taken care that pins match.&lt;/p&gt;
&lt;p&gt;This is correct connected state, and &lt;strong&gt;only this&amp;nbsp;&lt;/strong&gt;is how I attempted to perform flash.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/420x240/__key/communityserver-discussions-components-files/4/5516.Untitled.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Still the same problem:&lt;/p&gt;
&lt;p&gt;C:\Users\vladimir\zephyr\samples\bluetooth\hci_uart\build&amp;gt;ninja flash&lt;br /&gt;[0/1] Flashing nrf52840_pca10059&lt;br /&gt;Using runner: nrfjprog&lt;br /&gt;Flashing file: C:/Users/vladimir/zephyr/samples/bluetooth/hci_uart/build/zephyr/zephyr.hex&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;br /&gt;error: command exited with status 33: nrfjprog --program C:/Users/vladimir/zephyr/samples/bluetooth/hci_uart/build/zephyr/zephyr.hex -f NRF52 --snr 609301412 --sectoranduicrerase&lt;br /&gt;run as &amp;quot;west -v ... flash ...&amp;quot; for a stack trace&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog return code is 33, and based on &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.tools%2Fdita%2Ftools%2Fnrf5x_command_line_tools%2Fnrf5x_nrfjprogexe_return_codes.html"&gt;now outdated document&lt;/a&gt; - it&amp;#39;s what we already knew - some kind of JLinkARM.dll problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/171741?ContentTypeID=1</link><pubDate>Mon, 18 Feb 2019 20:54:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bf4e1c1-a440-4aa8-b991-531ae83beaaa</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It could look like you have mounted the socket the wrong way on the image, the opening on the socket should face this way (towards pin 1 on the solder pads):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-4c6ec596b7424fbfbd7786b7bdc0f37f/20190218_5F00_214946.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/171720?ContentTypeID=1</link><pubDate>Mon, 18 Feb 2019 17:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:264da44f-b217-401c-9feb-67bebd12c778</guid><dc:creator>Storvagun</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for the quick answer.&lt;/p&gt;
&lt;p&gt;Yes, the dongle is connected to the JLink through the 9 pin Cortex M adapter.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://www.segger.com/fileadmin/images/products/J-Link/Accesory/Adapters/J-Link_9-pin_Cortex-M_500x.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alltogether, it looks like this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/600x240/__key/communityserver-discussions-components-files/4/nrfDongle.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I believe the pinouts are correctly connected.&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;ve tried with power supply over JLink and without it. Both cases produce the same error.&lt;/p&gt;
&lt;p&gt;To reiterate - when executing nrfjprog&amp;nbsp; command, &lt;strong&gt;both&amp;nbsp;&lt;/strong&gt; dongle and the JLink were plugged in the PC. Immediately after starting nrfjprog, red LED started pulsing slowly on the dongle.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Vladimir&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Firmware Flash</title><link>https://devzone.nordicsemi.com/thread/171689?ContentTypeID=1</link><pubDate>Mon, 18 Feb 2019 14:59:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef43d694-076e-4fef-a5fd-35e82b29c9cf</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How have you connected the J-Link to the dongle?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>