<?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 PDK programming trouble</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18690/nrf52840-pdk-programming-trouble</link><description>Hi,
I have serious troubles when trying to program the board with softdevice (s140). 
 
 nRFGo Studio:
nRFGo Studio installed and running fine. When I connected the board I received a notification to update jlink firmware. Update procedure ended with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jul 2017 09:44:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18690/nrf52840-pdk-programming-trouble" /><item><title>RE: nRF52840 PDK programming trouble</title><link>https://devzone.nordicsemi.com/thread/72169?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 09:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82297421-8531-4618-af2d-9188eb9be2c7</guid><dc:creator>flodis</dc:creator><description>&lt;p&gt;In my case the &lt;strong&gt;nRFgo Studio&lt;/strong&gt; prompted for a firmware update of the on board Segger development dongle and after that it complained about readback protection and the &lt;em&gt;Recover&lt;/em&gt; button made no difference other than erasing the &amp;quot;nRF52 Series development kit nRF52840 DK preinstalled program&amp;quot; named &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v13.0.0%2Fpreflash_example.html"&gt;Preflash Example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hinted in an other post: &lt;a href="https://devzone.nordicsemi.com/question/111614/nrf52840-preview-dk-firmware-problems/"&gt;nrf52840-preview-dk-firmware-problems&lt;/a&gt; I downloaded the latest &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF52840/nRF5x-Command-Line-Tools-Win32/58850"&gt;nRF5x-Command-Line-Tools for Win32&lt;/a&gt;. (Could not find any mentioning of a Win 64-bit version).&lt;/p&gt;
&lt;p&gt;After restarting the  &lt;strong&gt;nRFgo Studio&lt;/strong&gt; there was again a &amp;quot;new firmware&amp;quot; prompt, and this time the &amp;quot;dongle&amp;quot; started working.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Skrmklipp-2017_2D00_07_2D00_13-11.15.58.png" alt="Firmware update in progress.." /&gt;&lt;/p&gt;
&lt;p&gt;Somehow the J-Link firmware was way out of date by the update first made by the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRFgo-Studio/nRFgo-Studio-Win64/14964"&gt;nRFgo Studio-Win64 &lt;/a&gt;(1.21.2).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 PDK programming trouble</title><link>https://devzone.nordicsemi.com/thread/72166?ContentTypeID=1</link><pubDate>Sat, 18 Feb 2017 03:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d447289f-b42b-4f22-8c83-fc3cc0eaec8c</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;fguerzoni - would you please share the exact steps you took to unbrick the nRF52840 dev kit?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 PDK programming trouble</title><link>https://devzone.nordicsemi.com/thread/72164?ContentTypeID=1</link><pubDate>Sat, 18 Feb 2017 03:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f36b272e-1b11-4e8a-a1fe-806bd8388b66</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;run_ar - would you please explain how to use nrfjprog to recover a bricked nRF52840 preview development kit? Because I obediently updated the jlink firmware like the nRFgo Studio recommended and bricked the brand new dev kit out of the bag.&lt;/p&gt;
&lt;p&gt;I had to muddle around (it does not show up in Windows 10 as an installed program) and finally found nrfjprog here:
C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin&lt;/p&gt;
&lt;p&gt;Then I used the help messages to piece together this with trial and error:
nrfjprog --family NRF52 --recover&lt;/p&gt;
&lt;p&gt;And this is what I got:
Recovering device. This operation might take 30s.
Erasing user code and UICR flash areas.&lt;/p&gt;
&lt;p&gt;I went back to nRFgo Studio to program the soft device and the nRF52840 is still bricked. Obviously using the &amp;#39;Recover&amp;#39; button in nRFgo Studio also fails to unbrick the device. Too bad I cannot attach a .jpeg screen shot from nRFgo Studio.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 PDK programming trouble</title><link>https://devzone.nordicsemi.com/thread/72168?ContentTypeID=1</link><pubDate>Sat, 18 Feb 2017 03:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b64991b-b3b7-4283-8c32-8afb947ae699</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;To the best of my understanding, it is illegal to use J-Flash with the Nordic dev boards - please correct me if I am wrong and explain how to enable it. Because I own a Segger J-Link Plus and cannot even use the J-Flash program with the Nordic dev boards. In trying to learn why not, I saw this on the Segger website:
J-Link OBs (J-Link On Board) are single chip versions of J-Link which are used on various eval boards. It is legal to use J-Link software with these boards, provided that the eval board manufacturer has obtained a license from SEGGER. The following list shows the eval board manufacturer which are allowed to use J-Link OBs:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Embedded Artists
Energy Micro
IAR Systems
Micrium
Toshiba
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="https://www.segger.com/terms-of-use.html"&gt;www.segger.com/terms-of-use.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 PDK programming trouble</title><link>https://devzone.nordicsemi.com/thread/72165?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 14:54:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a7b32f8-bfd7-4240-92fd-1d3ea77f5631</guid><dc:creator>fguerzoni</dc:creator><description>&lt;p&gt;Thank you Roger, jFlash was already installed during nRFGo Stdudio installation. It works as you kindly pointed out. So I think your comment is the answer to my question.&lt;/p&gt;
&lt;p&gt;I found very useful the &amp;#39;Development with GCC and Eclipse&amp;#39; tutorial, which is what really matters to develop and flash and debug something to the board. So, as run_ar suggested, nrfjprog is the definitive tool.&lt;/p&gt;
&lt;p&gt;@run_ar
about point 2, it was my fault. &amp;#39;flash_softdevice&amp;#39; is obviously a target in makefile. As it is &amp;#39;flash&amp;#39; which is useful to download the binary to board.&lt;/p&gt;
&lt;p&gt;thanks friends
F&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 PDK programming trouble</title><link>https://devzone.nordicsemi.com/thread/72163?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 14:33:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1c1d530-8b99-42ef-b01f-8c86ae02142d</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;@fguerzoni:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I would recommend that you download the latest version of nRF5x toolset from the product page, and try to use nrfjprog to recover your device.&lt;/li&gt;
&lt;li&gt;Which makefile / project is this?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 PDK programming trouble</title><link>https://devzone.nordicsemi.com/thread/72167?ContentTypeID=1</link><pubDate>Sun, 01 Jan 2017 03:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03afc45a-aad2-4c3d-b63f-ca5d26099b40</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Did you try connecting using JFlash ?&lt;/p&gt;
&lt;p&gt;If the nRFGo Studio didn&amp;#39;t install the Segger tools you can download them directly from Seggers site.&lt;/p&gt;
&lt;p&gt;Note.
I found J-Flash will not write to the flash in these Nordic dev boards, but you should be able to connect and read the flash using JFlash&lt;/p&gt;
&lt;p&gt;And JLink Commander is fully functional, so you could try that as well.&lt;/p&gt;
&lt;p&gt;BTW. I received my nRF52840 PDK about a week ago, and I also did the firmware upgrade, but the upgrade was via JFlash not nRFGo. (though its likely to be the same firmware package)&lt;/p&gt;
&lt;p&gt;And the update did not brick the board.&lt;/p&gt;
&lt;p&gt;What confused me is that J-Flash will not write to the flash (you get a license error message)&lt;/p&gt;
&lt;p&gt;But Keil etc can write to the flash (upload the app) using J-Link, so the underlying processes work fine its just the JFlash GUI that does not fully work with the PDK (and other Nordic eval boards)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>