<?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>Erase protect and App protect in nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127844/erase-protect-and-app-protect-in-nrf5340</link><description>I have implemented the erase protect and app protect in our application. There are commands for locking and unlocking the device. Actually, during testing I was able to lock the device and unlock the device through JLink commands. And at one point, JLink</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Apr 2026 13:30:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127844/erase-protect-and-app-protect-in-nrf5340" /><item><title>RE: Erase protect and App protect in nRF5340</title><link>https://devzone.nordicsemi.com/thread/565174?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2026 13:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:321bf897-d040-4cb7-8e3d-2725bb670f26</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you have any firmware on one or both of the cores on your nRF5340 which sets the ERASEPROTECT.DISABLE register to a non-zero 32-bit key value? If you don&amp;#39;t have that and ERASEPROTECT and APPROTECT is enabled for both cores, we no NOT have a recovery method from this point.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you &lt;strong&gt;do&amp;nbsp;&lt;/strong&gt;have a key written to CTRL-APs &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/ctrl-ap.html#unique_1996223470"&gt;ERASEPROTECT.DISABLE&lt;/a&gt; register in your firmware, you can disable erase protection by writing the same key to the debugger side &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/ctrl-ap.html#register.ERASEPROTECT.DISABLE"&gt;ERASEPROTECT.DISABLE&lt;/a&gt; register. The base addresses can be found &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/ctrl-ap.html#d1013e7009"&gt;here&lt;/a&gt;&amp;nbsp;for the application (ns + s) and network cores. Also available in the linked documentation are instructions on how to disable AP protection and erase protection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Going forward, I advise you to read back the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/ctrl-ap.html#register.ERASEPROTECT.STATUS"&gt;ERASEPROTECT.STATUS&lt;/a&gt;&amp;nbsp;before enabling APPROTECT for your device(s). You should not enable APPROTECT and ERASEPROTECT at the same time unless you have firmware which sets the *.DISABLE register(s) to a 32-bit key and you can use that same key by following the instructions for diabling &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/ctrl-ap.html#ariaid-title5"&gt;erase&lt;/a&gt; and &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/ctrl-ap.html#ariaid-title6"&gt;access port&lt;/a&gt; protection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>