<?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>nRF52840 - securing the device against firmware read, erase, and re-program</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38660/nrf52840---securing-the-device-against-firmware-read-erase-and-re-program</link><description>Hello team, 
 I found a great conversation on securing my device at https://devzone.nordicsemi.com/f/nordic-q-a/23972/cybersecurity-features-for-nrf52-chips but I wanted to check if there&amp;#39;s an application note that discusses the specific subject of steps</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jan 2023 19:17:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38660/nrf52840---securing-the-device-against-firmware-read-erase-and-re-program" /><item><title>RE: nRF52840 - securing the device against firmware read, erase, and re-program</title><link>https://devzone.nordicsemi.com/thread/404187?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 19:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7aa7ff1-9398-4437-9235-32c9ad6b2404</guid><dc:creator>Mr. Broshar</dc:creator><description>&lt;p&gt;First call enables config write access.&lt;/p&gt;
&lt;p&gt;Second call disables config write access.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - securing the device against firmware read, erase, and re-program</title><link>https://devzone.nordicsemi.com/thread/227257?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 13:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a9e6d5e-c5a4-43bc-8ae3-abdde33606c8</guid><dc:creator>manoj12345</dc:creator><description>&lt;p&gt;&lt;span&gt;why NRF_NVMC-&amp;gt;CONFIG used for two times?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - securing the device against firmware read, erase, and re-program</title><link>https://devzone.nordicsemi.com/thread/199078?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 18:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52ed0ea5-f32a-4a69-9949-02b485977e9f</guid><dc:creator>Garrett</dc:creator><description>&lt;p&gt;I say this in jest but, they might be able to use the following NRF52840 errata&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1563387964665v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - securing the device against firmware read, erase, and re-program</title><link>https://devzone.nordicsemi.com/thread/149316?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 18:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48697e2c-eda3-4283-8ea3-4a8479380600</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;As far as I know you can&amp;#39;t protect against ERASEALL.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You use the APPROTECT UICR register to protect against SWD read/write memory access and access to the processor registers. The ERASEALL command clears the entire chip including UICR.&amp;nbsp; Even with APPROTECT UICR set you can still do OTA/DFU if you implement it.&lt;/p&gt;
&lt;p&gt;You can set APPROTECT either through command line and SWD or you can set it in software.&lt;/p&gt;
&lt;p&gt;Currently I set it in main for our products. But there are good reasons for doing it at command line.&lt;/p&gt;
&lt;p&gt;This is how you do it in&amp;nbsp; code:&lt;/p&gt;
&lt;p&gt;if (NRF_UICR-&amp;gt;APPROTECT != 0x0) &lt;br /&gt; {&lt;br /&gt; NRF_NVMC-&amp;gt;CONFIG = 0x1;&lt;br /&gt; NRF_UICR-&amp;gt;APPROTECT = 0x0;&lt;br /&gt; NRF_NVMC-&amp;gt;CONFIG = 0x0;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;It writes same way as flash, so erase is all 1&amp;#39;s and set is 0&amp;#39;s.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>