<?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>Device protection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98223/device-protection</link><description>When trying to flash the NRF Bootloader via OpenOCD, i got this error from command line: 
 nRF52 device has a CTRL-AP dedicated to recover the device from AP lock. A high level adapter (like a ST-Link) you are currently using cannot access the CTRL-AP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Aug 2025 04:24:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98223/device-protection" /><item><title>RE: Device protection</title><link>https://devzone.nordicsemi.com/thread/546686?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2025 04:24:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d3030b6-5e69-4b62-9123-49c1d9fa0e52</guid><dc:creator>sellapio</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device protection</title><link>https://devzone.nordicsemi.com/thread/443137?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 09:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6987c11e-5d70-499f-8c94-62d63c8ce5df</guid><dc:creator>johnnagardner</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;To remove the protection and successfully flash the NRF Bootloader via OpenOCD, you need to follow these steps:&lt;/p&gt;
&lt;p&gt;1. Disable the UICR APPROTECT:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Locate the UICR (User Information Configuration Registers) section in your code or configuration files.&lt;/li&gt;
&lt;li&gt;Find the entry related to &amp;quot;APPROTECT&amp;quot; or &amp;quot;UICR-&amp;gt;APPROTECT&amp;quot; and set its value to 0 or disable it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;2.Save the changes and rebuild your code or configuration files to ensure the updated settings are applied.&lt;/p&gt;
&lt;p&gt;3. Connect a low-level adapter:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Since a high-level adapter like the ST-Link cannot access the CTRL-AP (Control Access Port) required for device recovery, you need to use a low-level adapter that supports it. Examples of such adapters include J-Link and Segger.&lt;/li&gt;
&lt;li&gt;Connect the low-level adapter to your NRF52 device, ensuring proper connections and compatibility.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;4. Use the &amp;#39;nrf52_recover&amp;#39; command:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;With the low-level adapter successfully connected, you can now use the &amp;#39;nrf52_recover&amp;#39; command to remove the protection and recover the device from AP lock.&lt;/li&gt;
&lt;li&gt;Execute the command via the OpenOCD command line or the relevant interface specific to your adapter.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device protection</title><link>https://devzone.nordicsemi.com/thread/418084?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 11:31:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5acaa74f-c4f0-41eb-91c3-8a19ba169135</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If openocd does not have updated functionality on performing a recovery, I would recommend that you obtain a JLink debugger.&lt;/p&gt;
&lt;p&gt;If you have a nRF5-series DK, you can use this kit as a debugger/programmer for external boards.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>