<?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>Read back protection and code in RAM?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21204/read-back-protection-and-code-in-ram</link><description>Recently I have put some code of my application into RAM. When I do not enable read back protection mechanism everything works, however when I want to enable protecting my whole code and put some code into RAM I get into hardfault. 
 I have tried different</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Apr 2017 12:54:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21204/read-back-protection-and-code-in-ram" /><item><title>RE: Read back protection and code in RAM?</title><link>https://devzone.nordicsemi.com/thread/82984?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2017 12:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5087bfa3-97df-473c-91e6-0e049ee02121</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi AlBundy,&lt;/p&gt;
&lt;p&gt;You are correct, the readback protection mechanism on the NRF51 is not perfect and there is a security hole that allow a debugger to access the CPU&amp;#39;s registers to read the content of the flash.
But it should be enphasize that this is only possible when an attacker has physical access to a device and is able to connect a debugger to the product.&lt;/p&gt;
&lt;p&gt;If you looking for a better security of the flash code, I would suggest to use nRF52 where the issue is fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read back protection and code in RAM?</title><link>https://devzone.nordicsemi.com/thread/82983?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2017 12:00:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b3fcff5-325a-44c2-a0e4-60ea961a0813</guid><dc:creator>Al Bundy</dc:creator><description>&lt;p&gt;I have placed quite a lot of code in RAM, so I guess it can be everything but probably it accesses some constant string array. But as far as I know it is still possible to dump memory of nrf51 even if read back protection is enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read back protection and code in RAM?</title><link>https://devzone.nordicsemi.com/thread/82982?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2017 11:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cebd8500-ebab-4e2b-a358-e0271689bd9a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Albundy,&lt;/p&gt;
&lt;p&gt;What exactly you do in the RAM code ? Do you access any flash in code region 1 or code region 0 ? When RBP is enable either &lt;code&gt;all&lt;/code&gt; or &lt;code&gt;region 0&lt;/code&gt;, the code from RAM can&amp;#39;t access those protected code area.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>