<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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 on nRF52840 old and new build codes/hardware revisions</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/84478/read-back-protection-on-nrf52840-old-and-new-build-codes-hardware-revisions</link><description>Hi there, 
 I am trying to enable the Read Back Protection in the software itself to avoid the FLASH, RAM etc. from being read with a debugger after being flashed for production. I succeeded to do so with the code below running on Zephyr OS, which works</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 09 Feb 2022 09:19:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/84478/read-back-protection-on-nrf52840-old-and-new-build-codes-hardware-revisions" /><item><title>RE: Read back protection on nRF52840 old and new build codes/hardware revisions</title><link>https://test-devzone.nordicsemi.com/thread/351987?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 09:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebd23279-92b2-4224-b36e-2e9894068c79</guid><dc:creator>user75734</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;According to the nrf52840_bitfields.h you can force enable the APPROTECT by setting&amp;nbsp;&lt;strong&gt;APPROTECT_FORCEPROTECT_FORCEPROTECT_Force&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;ENABLE_APPROTECT can be set in the CMakeLists.txt of your project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read back protection on nRF52840 old and new build codes/hardware revisions</title><link>https://test-devzone.nordicsemi.com/thread/351906?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 16:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d70426e-520e-4a9d-a963-b24d2f73a8b9</guid><dc:creator>user86629</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks for your reply. I am using Zephyr v2.7.0. I hope this helps you to answer my questions.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If I got it right, then the only thing I need to do for newer hardware versions (Fxx and later) is to add to my code above (that already writes 0xFFFFFF00 to UICR-&amp;gt;APPROTECT and does a&amp;nbsp;cold reset) the following step:&lt;br /&gt;&lt;br /&gt;--&amp;gt; &amp;quot;write APPROTECT.FORCEPROTECT to Force (0x00)&amp;quot; after the mcu reboots.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could&amp;nbsp;you please confirm my understanding?&lt;br /&gt;&lt;br /&gt;Is there a Zephyr Conf &amp;quot;ENABLE_APPROTECT&amp;quot; that I need to do? As I said, for the device of build code &amp;quot;AAD0&amp;quot;, the code above works without problems.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read back protection on nRF52840 old and new build codes/hardware revisions</title><link>https://test-devzone.nordicsemi.com/thread/351830?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 13:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13108923-6166-4f2e-a6c7-22e1c6c4db83</guid><dc:creator>user75734</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What version of the nRFConnect SDK or Zephyr are you using?&amp;nbsp;Due to the changes in the MDK there is a requirement to use firmware based on nRFConnect SDK v1.6.0 (&lt;span&gt;Zephyr v2.6.0)&lt;/span&gt; or later. You can see&lt;a href="https://infocenter.nordicsemi.com/pdf/in_141_v1.1.pdf"&gt; IN-141&lt;/a&gt; for more information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>