<?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 read back protection is working??</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20695/nrfjprog-read-back-protection-is-working</link><description>Hello, after I program bootloader, sd, application, I did the following command to do read back protection, 
 nrfjprog --rbp ALL -f NRF51 
 But, even though I still can get data by using nrfjprog --memrd xxxxx.
Can anybody tell me how can I protect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Apr 2017 15:30:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20695/nrfjprog-read-back-protection-is-working" /><item><title>RE: nrfjprog read back protection is working??</title><link>https://devzone.nordicsemi.com/thread/80721?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 15:30:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3836f5b1-f6dd-491a-b10a-348d75a3a564</guid><dc:creator>sosse</dc:creator><description>&lt;p&gt;Thank you ! Solve problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog read back protection is working??</title><link>https://devzone.nordicsemi.com/thread/80715?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 09:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5184c76-cd6e-44d4-b469-95074520b46b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Modified script for &lt;code&gt;NRF51&lt;/code&gt;, using &lt;code&gt;s130_nrf51_2.0.1_softdevice.hex&lt;/code&gt; and any example HEX from nRF5 SDK v12.2.0, surprisingly already first &lt;code&gt;nrfjprog --rbp ALL -f %NRF5_CHIP_FAMILY%&lt;/code&gt; manages to protect read-back...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog read back protection is working??</title><link>https://devzone.nordicsemi.com/thread/80716?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 09:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6e15e88-183f-4401-bf44-b3aaf0706eb8</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;This is output of the script on my Win7 machine:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF5_CHIP_FAMILY = NRF51
SOFTDEVICE_NAME  = s130_nrf51_2.0.1_softdevice.hex
APP_NAME         = my-ble-app.hex
Parsing input hex files.
Merging files.
Storing merged file.
Recovering device. This operation might take 30s.
Erasing user code and UICR flash areas.
0x0000300C: FFFFFFFF                              |....|
Parsing hex file.
Erasing code and UICR flash areas.
Applying system reset.
Checking that the area to write is not protected.
Programing device.
Verifying programming.
Verified OK.
0x0000300C: FFFF0087                              |....|
Protected the device against read and debug. --pinreset might no longer be
available.
0x0000300C: 00000000                              |....|
Applying pin reset.
0x0000300C: 00000000                              |....|
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog read back protection is working??</title><link>https://devzone.nordicsemi.com/thread/80718?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 07:20:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3e92211-cd50-4db8-91fa-f4a4a26092ac</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Sorry, I&amp;#39;ve corrected the script. It is suited for nRF52, modifying it for nRF51 is easy (change target to &lt;code&gt;NRF51&lt;/code&gt;, Soft Device HEX to S110 or S130 variant you use and name your app HEX file). Now the address 0x300C is chosen because there should be Soft Device version string. 0xFFFFxxxx is correct, whatever else (like all zeros) indicates that read-back is active.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog read back protection is working??</title><link>https://devzone.nordicsemi.com/thread/80717?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 02:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37bdcabb-07fd-4cb9-b10e-7100e9f483d5</guid><dc:creator>sosse</dc:creator><description>&lt;p&gt;Thank you for your answer.  I follow your script and I added on the last command,
nrfjprog --rbp ALL -f NRF51 (I think you forgot to write)
But, I still got no error after memrd command, but the result is changed to all zeros(00000000) from FFFF0080. Is it right??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog read back protection is working??</title><link>https://devzone.nordicsemi.com/thread/80713?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa2a2fc6-2492-4bf6-8cbc-f74581a0e05d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@sosse: Please take a screenshot of your test. If the RBP works , you should see all 0x00000 when you do a memory read.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog read back protection is working??</title><link>https://devzone.nordicsemi.com/thread/80719?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 09:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:440a8b32-93b0-4fae-bfdb-50e41462e3f1</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;This works for me (getting error on last &lt;code&gt;memrd&lt;/code&gt;), not sure what you do wrong:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;set MERGE_NAME=merged.hex
set SOFTDEVICE_NAME=s130_nrf51_2.0.1_softdevice.hex
set NRF5_CHIP_FAMILY=NRF51
set APP_NAME=my-ble-app.hex

echo Programming ...
echo NRF5_CHIP_FAMILY = %NRF5_CHIP_FAMILY%
echo SOFTDEVICE_NAME  = %SOFTDEVICE_NAME%
echo APP_NAME         = %APP_NAME%

mergehex -m %SOFTDEVICE_NAME% %APP_NAME% -o %MERGE_NAME%
nrfjprog --recover -f %NRF5_CHIP_FAMILY%
nrfjprog --memrd 0x0000300C -f %NRF5_CHIP_FAMILY%
nrfjprog --program %MERGE_NAME% --verify --chiperase -f %NRF5_CHIP_FAMILY%
nrfjprog --memrd 0x0000300C -f %NRF5_CHIP_FAMILY%
nrfjprog --rbp ALL -f %NRF5_CHIP_FAMILY%
nrfjprog --memrd 0x0000300C -f %NRF5_CHIP_FAMILY%
nrfjprog -p -f %NRF5_CHIP_FAMILY%
nrfjprog --memrd 0x0000300C -f %NRF5_CHIP_FAMILY%
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog read back protection is working??</title><link>https://devzone.nordicsemi.com/thread/80720?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 04:00:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deb2132f-510c-42e4-a259-a98c75934be1</guid><dc:creator>sosse</dc:creator><description>&lt;p&gt;I did nrfjprog --reset command after that.
But the nrfjprog --memrd XXX command still working...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog read back protection is working??</title><link>https://devzone.nordicsemi.com/thread/80714?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2017 09:40:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92c30e3f-3145-4dd4-8948-6b05ddcbe2c2</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;UICR register is reloaded during nRF5x reset, have you powered the chip off and on (or issued reset command)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>