<?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>nrf52 enables protection by accident?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121322/nrf52-enables-protection-by-accident</link><description>Somehow a program I have running on a nrf52840-DK board will enable protection. This kind of screws up the small application I am testing because it seems to lock out the UICR registers I am using. Has this been seen before. Am I somehow crashing and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 May 2025 11:13:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121322/nrf52-enables-protection-by-accident" /><item><title>RE: nrf52 enables protection by accident?</title><link>https://devzone.nordicsemi.com/thread/534849?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 11:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c85d7871-1db0-439a-96ba-779bab6296de</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Anthony,&lt;/p&gt;
&lt;p&gt;Yes, this is a known behavior. If your application is somehow&amp;nbsp;writing to UICR-&amp;gt;APPROTECT (e.g., setting it to 0x00), or if you have ENABLE_APPROTECT defined in your project, the device will enable protection after a reset.&amp;nbsp;&lt;/p&gt;
[quote user=""]Am I somehow crashing and slamming the bits?[/quote]
&lt;p&gt;This might not be the issue as it&amp;#39;s quite a rare situation. I think your code is enabling APPROTECT somehow.&lt;/p&gt;
&lt;p&gt;Please check your code to see if something writes to&amp;nbsp;NRF_UICR-&amp;gt;APPROTECT or defines ENABLE_APPROTECT.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>