<?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>nrfjprog softdevice programming</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19112/nrfjprog-softdevice-programming</link><description>Please tell me how to use nrfjprog command to program softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jan 2017 09:51:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19112/nrfjprog-softdevice-programming" /><item><title>RE: nrfjprog softdevice programming</title><link>https://devzone.nordicsemi.com/thread/73945?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 09:51:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ef221e5-75f5-46b7-bf97-3c553c2868c1</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I also recommend that you take a look at &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe_reference.html?resultof=%22%6e%72%66%6a%70%72%6f%67%22%20"&gt;this&lt;/a&gt;  and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe.html"&gt;this&lt;/a&gt; page on Infocenter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog softdevice programming</title><link>https://devzone.nordicsemi.com/thread/73944?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 09:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b55e248-35ee-437e-94b4-24986f525aac</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Fiske,&lt;/p&gt;
&lt;p&gt;Place this to batch file and run:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;set SOFTDEVICE_NAME=s132_nrf52_2.0.1_softdevice.hex
nrfjprog --program %SOFTDEVICE_NAME% --verify --chiperase -f NRF52
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;(you obviously need to change chip family and SoftDevice file name according to your needs)&lt;/p&gt;
&lt;p&gt;However note that SoftDevice itself won&amp;#39;t do anything and if you want to flash application on top of it most &lt;code&gt;nrfjprog&lt;/code&gt; commands will complain that chip is not erased entirely. So you are most probably looking for this sequence:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;set MERGE_NAME=merged.hex
set SOFTDEVICE_NAME=s132_nrf52_2.0.1_softdevice.hex
set NRF5_CHIP_FAMILY=NRF52
set APP_NAME=my-ble-application.hex

mergehex -m %SOFTDEVICE_NAME% %APP_NAME% -o %MERGE_NAME%
nrfjprog --program %MERGE_NAME% --verify --chiperase -f %NRF5_CHIP_FAMILY%
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and alternatively put this line in the end:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --rbp ALL -f %NRF5_CHIP_FAMILY%
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and of course then you need to put this line before &lt;code&gt;nrfjprog --program...&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --recover -f %NRF5_CHIP_FAMILY%
&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>