<?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>Flash program nRF52840 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26000/flash-program-nrf52840-dk</link><description>I have trouble programming the PDK using nrfjprog. I can flash the program fine using Segger Embedded Studio but it doesn&amp;#39;t appear to be working using nrfjprog. 
 Here are the steps I followed: 
 
 
 Flash s140 softdevice using make flash_softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Oct 2017 14:10:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26000/flash-program-nrf52840-dk" /><item><title>RE: Flash program nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/102462?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 14:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8130ff98-3b52-4eeb-8d8b-2b4c502fd666</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;To my knowledge you dont have this command in the mesh SDK.&lt;/p&gt;
&lt;p&gt;You can flash it by entering the folder &lt;code&gt;Mesh_SDK_folder\external\softdevice\s140_5.0.0-3.alpha&lt;/code&gt;, and then use the nrfjprog command like this: &lt;code&gt;nrfjprog --family nrf52 --program s140_nrf52840_5.0.0-3.alpha_softdevice.hex&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You can also combine step 1 and 2 like this: &lt;code&gt;nrfjprog --family nrf52 -e &amp;amp;&amp;amp; nrfjprog --family nrf52 --program s140_nrf52840_5.0.0-3.alpha_softdevice.hex&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash program nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/102461?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 14:05:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2b795df-6c75-4305-aa32-a947aab4d5c5</guid><dc:creator>cdugue</dc:creator><description>&lt;p&gt;That might be the reason then. I was doing &lt;code&gt;make flash_softdevice&lt;/code&gt; inside &lt;code&gt;nRF5_SDK_14.0.0_3bcc1f7/examples/ble_central/ble_app_multilink_central/pca10056/s140/armgcc&lt;/code&gt;. Where can I run this command in the BT Mesh SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash program nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/102466?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2017 10:25:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb81e47a-2f72-4160-aeb6-686baca54b69</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;In what directory did you use the &amp;quot;make flash_softdevice&amp;quot; command ?&lt;/p&gt;
&lt;p&gt;Note that the Mesh 0.10.0-Alpha SDK uses S140 5.0.0-3.alpha, but the regular SDK uses the &lt;strong&gt;S140 5.0.0-2.alpha&lt;/strong&gt; version. Make sure that you are using the correct SoftDevice version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash program nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/102465?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 15:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf4e933-d775-460d-9899-b95a0a248534</guid><dc:creator>cdugue</dc:creator><description>&lt;p&gt;I am using nrf5_SDK_for_Mesh_v0.10.0-Alpha_src. I am testing the light switch example: client/server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash program nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/102464?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 15:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77128eec-eb00-4fcb-a0d3-cb336f170ea3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What SDK version are you using ? What example are you testing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash program nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/102463?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 15:02:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04dc963c-710c-47b6-af8c-84c208f614fd</guid><dc:creator>cdugue</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thanks for your answer. I switched the order of steps, but I still can&amp;#39;t run my program.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash program nRF52840 DK</title><link>https://devzone.nordicsemi.com/thread/102460?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 14:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:950610cd-96a0-4bce-8249-8c811a4ba568</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The command &lt;code&gt;nrfjprog --family nrf52 -e&lt;/code&gt; will erase all user available program flash memory and the UICR page. So in step 2 you are erasing the S140 SoftDevice. Try to switch the order between step 1 and step 2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>