<?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>nRF51822 : enable protection against readback in app doesn&amp;#39;t work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/521/nrf51822-enable-protection-against-readback-in-app-doesn-t-work</link><description>Dear Nordic Developer Zone, 
 I am trying to enable the readback protection in the main function just before the &amp;quot;wait for interrupt&amp;quot; sd_app_event_wait function using the command 
 NRF_UICR-&amp;gt;RBPCONF = (UICR_RBPCONF_PALL_Enabled &amp;lt;&amp;lt; UICR_RBPCONF_PALL_Pos</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2013 06:55:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/521/nrf51822-enable-protection-against-readback-in-app-doesn-t-work" /><item><title>RE: nRF51822 : enable protection against readback in app doesn't work</title><link>https://devzone.nordicsemi.com/thread/2716?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2013 06:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ae32edb-93b1-45cd-afe6-2c1bbc5556eb</guid><dc:creator>S&amp;#233;bastien Despont</dc:creator><description>&lt;p&gt;Thanks for your quick answer. I have looked on the nrfjprog software and it fits my needs.&lt;/p&gt;
&lt;p&gt;P.S. About the Developer Zone editor, it would be great if you could add a live preview of the final render when a question or an anwer is writing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 : enable protection against readback in app doesn't work</title><link>https://devzone.nordicsemi.com/thread/2715?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2013 16:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aaeb372-8713-4a62-8d23-233d56774375</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;The UICR is a flash-backed register, and as such, it cannot be written like you have done here, you have to enable flash writing in the NVMC first. Flash writing also halts the CPU, so if this happens to be at the same time as a radio event, the softdevice will assert. You should therefore always use the radio notification feature when doing flash writes.&lt;/p&gt;
&lt;p&gt;However, a much simpler option is to set this with nrfjprog, and not on run-time. This can be done with the --rbp option:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
nrfjprog --help
...
     --rbp &amp;lt;protection_level&amp;gt;                     Sets the desired protection
                             level. Only CR0 or ALL can be used as valid
                             levels. Can be combined with erase operations,
                             reset operations and programming operations.
...

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;(It is also possible to do a special trick to include such setting in the hex file itself, in which case this will be done automatically on programming. See the uicr_config_example in SDK 4.4.0)&lt;/p&gt;
&lt;p&gt;PS: I saw you had problems with the code-tag. We&amp;#39;re working on solving that, and the fix will hopefully come tomorrow!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>