<?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>How to program softdevice and firmware with new nrfjprog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10135/how-to-program-softdevice-and-firmware-with-new-nrfjprog</link><description>Hi, 
 I used the old nrfjprog like this: 
 nrfjprog --eraseall --dfu --programs s130_softdevice_whatever.hex --program my_firmware.hex
 
 Which worked fine. I&amp;#39;ve now updated to the new version with different options. What is the equivalent command</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Nov 2015 08:16:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10135/how-to-program-softdevice-and-firmware-with-new-nrfjprog" /><item><title>RE: How to program softdevice and firmware with new nrfjprog</title><link>https://devzone.nordicsemi.com/thread/37592?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 08:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d194e64-ad67-45b5-a6d2-fec305d07c42</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;Brilliant, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program softdevice and firmware with new nrfjprog</title><link>https://devzone.nordicsemi.com/thread/37591?ContentTypeID=1</link><pubDate>Sun, 08 Nov 2015 22:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc6e5e59-2639-4990-a0c3-1a7efe245b25</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve faced similar problem when upgraded to nRFTools v7.x - all my scripts suddenly stopped working. However when you let &lt;code&gt;nrfjprog&lt;/code&gt; print help into the command line you will get it fixed quickly. Probably the main change is that flashing with more than one binary is not supported any more. You should use &lt;code&gt;mergehex&lt;/code&gt; program (included in nRFTool bundle) instead. Another notable changes are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Read-back protection cannot be removed by &lt;code&gt;--chiperase&lt;/code&gt; any more (at least on nRF51) but you need to use separate command &lt;code&gt;--recover&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Each call can now specify chip family by using &lt;code&gt;-f &amp;lt;family&amp;gt;&lt;/code&gt; or &lt;code&gt;--family &amp;lt;family&amp;gt;&lt;/code&gt; switch where family is either &lt;code&gt;NRF51&lt;/code&gt; or &lt;code&gt;NRF52&lt;/code&gt;. However it has default value (&lt;code&gt;NRF51&lt;/code&gt;) set in &lt;code&gt;nrfjprog.ini&lt;/code&gt; file so you probably don&amp;#39;t care until you switch to nRF52.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here is example of part of my flashing script (if anyone has shortcut to safe some calls I&amp;#39;ll be interested to hear because I was unable to simplify it so far):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;mergehex -m %SOFTDEVICE_NAME% %APP_NAME% -o %MERGE_NAME%
nrfjprog --recover -f NRF51
nrfjprog --program %MERGE_NAME% --verify --chiperase -f NRF51
nrfjprog --rbp ALL -f NRF51
nrfjprog -r -f NRF51
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>