<?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 external nrf51422 with nrf51-dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11714/flash-external-nrf51422-with-nrf51-dk</link><description>Hello, 
 I&amp;#39;m trying to flash external nrf51422 module.
I want to flash both softdevice and application. I used below commands: 
 mergehex -m %SOFTDEVICE_NAME% %APP_NAME% -o %MERGE_NAME%
nrfjprog --recover -f NRF51
nrfjprog --program %MERGE_NAME%</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Feb 2016 20:21:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11714/flash-external-nrf51422-with-nrf51-dk" /><item><title>RE: Flash external nrf51422 with nrf51-dk</title><link>https://devzone.nordicsemi.com/thread/44300?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2016 20:21:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0897f6cc-aad8-4910-9338-0e3a6b3c3d1b</guid><dc:creator>Marcin</dc:creator><description>&lt;p&gt;Hello Kenneth,&lt;/p&gt;
&lt;p&gt;Thanks for the information.
It looks like I got a very old version of the chip.&lt;/p&gt;
&lt;p&gt;Best regards,
Marcin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash external nrf51422 with nrf51-dk</title><link>https://devzone.nordicsemi.com/thread/44299?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2016 10:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a44420-2d40-4ec2-9b63-6d346efcd849</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The chip you are using is the 1st hardware revision of the nRF51422, it&amp;#39;s not recommened for new development and the pre-programmed firmware was never intended to be re-programmed. It&amp;#39;s not possible to write new softdevice to this chip, please refer to nRF51 Series Compatibility Matrix document for details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash external nrf51422 with nrf51-dk</title><link>https://devzone.nordicsemi.com/thread/44296?ContentTypeID=1</link><pubDate>Sat, 06 Feb 2016 09:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2603ff94-e490-48c7-9dbe-50c65c943e5c</guid><dc:creator>Marcin</dc:creator><description>&lt;p&gt;Hello David,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog version: 7.5.2
JLinkARM.dll version: 5.10i
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Recover log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;--------------------------------------------------------------------------------
nrfjprog --recover -f NRF51 --log
nrfjprog verion 7.5.2
--------------------------------------------------------------------------------
FUNCTION: open_dll.
FUNCTION: open_dll.
FUNCTION: dll_version.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_without_snr.
FUNCTION: enum_emu_snr.
Device &amp;quot;NRF51822_XXAA&amp;quot; selected.
FUNCTION: recover.
FUNCTION: recover.
Found SWD-DP with ID 0x0BB11477
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl 0 @ F0000000
ROMTbl 0 [0]: F00FF000, CID: B105100D, PID: 000BB471 ROM Table
ROMTbl 1 @ E00FF000
ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
ROMTbl 0 [1]: 00002000, CID: B105900D, PID: 000BB9A3 ???
Found SWD-DP with ID 0x0BB11477
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl 0 @ F0000000
ROMTbl 0 [0]: F00FF000, CID: B105100D, PID: 000BB471 ROM Table
ROMTbl 1 @ E00FF000
ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
ROMTbl 0 [1]: 00002000, CID: B105900D, PID: 000BB9A3 ???
FUNCTION: close_dll.
FUNCTION: close_dll.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Flash log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;--------------------------------------------------------------------------------
nrfjprog --program test.hex --verify -f NRF51 --log
nrfjprog verion 7.5.2
--------------------------------------------------------------------------------
FUNCTION: open_dll.
FUNCTION: open_dll.
FUNCTION: dll_version.
FUNCTION: enum_emu_snr.
FUNCTION: enum_emu_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_with_snr.
FUNCTION: connect_to_emu_without_snr.
FUNCTION: enum_emu_snr.
Device &amp;quot;NRF51822_XXAA&amp;quot; selected.
FUNCTION: read_device_version.
FUNCTION: read_device_version.
Found SWD-DP with ID 0x0BB11477
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl 0 @ F0000000
ROMTbl 0 [0]: F00FF000, CID: B105100D, PID: 000BB471 ROM Table
ROMTbl 1 @ E00FF000
ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
ROMTbl 0 [1]: 00002000, CID: B105900D, PID: 000BB9A3 ???
FUNCTION: readback_status.
FUNCTION: readback_status.
FUNCTION: read.
FUNCTION: read.
FUNCTION: close_dll.
FUNCTION: close_dll.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Regards,
Marcin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash external nrf51422 with nrf51-dk</title><link>https://devzone.nordicsemi.com/thread/44295?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2016 13:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff9c4c75-f2e3-492b-a5ba-3d7a38bd974f</guid><dc:creator>David Garc&amp;#237;a Polo</dc:creator><description>&lt;p&gt;Also, do not --chiperase when programmed. After the --recover the device is also erased.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash external nrf51422 with nrf51-dk</title><link>https://devzone.nordicsemi.com/thread/44294?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2016 13:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76e121a1-c8fa-489c-a9b7-d2ddab0b95ed</guid><dc:creator>David Garc&amp;#237;a Polo</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Which version of nrfjprog are you using (nrfjprog -v) ?&lt;/li&gt;
&lt;li&gt;Can you run again the command with the extra option --log (or --logeverything if --log gives error) and post the generated log here? Thanks.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash external nrf51422 with nrf51-dk</title><link>https://devzone.nordicsemi.com/thread/44298?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 21:56:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64061b9f-fecc-4314-b797-e5b131fc9980</guid><dc:creator>Marcin</dc:creator><description>&lt;p&gt;Hello Aryan,&lt;/p&gt;
&lt;p&gt;Thanks for the answer, but it seems that those splitting is not correct:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --chiperase -f NRF51
ERROR: One or several arguments are missing. Use --help to read about the valid
ERROR: argument combinations.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I tried also:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --eraseall -f NRF51
Erasing addresses 0xA000 to 0x3FFFF.
Erasing UICR flash area.
Applying system reset.
nrfjprog --program test.hex --verify -f NRF51
Parsing hex file.
Reading flash area to program to guarantee it is erased.
ERROR: The area to write is not erased.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Doesn&amp;#39;t work. Any more sugestions?&lt;/p&gt;
&lt;p&gt;Regards,
Marcin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash external nrf51422 with nrf51-dk</title><link>https://devzone.nordicsemi.com/thread/44297?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2016 08:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e0810c0-104c-4933-98aa-75d7fa43f8d1</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;split your last command&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --program %MERGE_NAME%  --verify --chiperase -f NRF51 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;into&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --chiperase -f NRF51
nrfjprog --program %MERGE_NAME% --verify -f NRF51
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then --chiperase will ensure to remove the readback protection before --program takes over&lt;/p&gt;
&lt;p&gt;The draw back of mixing many commands into one is that IT DOES NOT NECESSARILY EXECUTE IN THE SAME ORDER. If you want to ensure the order of the commands, then do not mix them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>