<?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>it is seem that APPROTECT permanently enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89493/it-is-seem-that-approtect-permanently-enabled</link><description>Hello, 
 Every time I restart the power(power on reset) and then use the command nrfjprog to download, the following error will appear 
 
 After I use the nrfjprog --recover command, I can download the firmware, but the power on reset, and then the readback</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jul 2022 07:01:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89493/it-is-seem-that-approtect-permanently-enabled" /><item><title>RE: it is seem that APPROTECT permanently enabled</title><link>https://devzone.nordicsemi.com/thread/375450?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 07:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d71baddd-f707-4cd2-9ed5-16425a89e859</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Ryon_pan"]yes,i know how to read out these registers.but my question is how to&lt;span&gt;&amp;nbsp;keep readback protection disabled?&lt;/span&gt;[/quote]
&lt;p&gt;To disable readback protection you would have to:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Start with a CTRL-AP ERASEALL operation (nrfjprog -e)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;2. Program code compiled with an MDK 8.44.1 or later,&amp;nbsp;&lt;/span&gt;&lt;strong&gt;without&lt;/strong&gt;&lt;span&gt;&amp;nbsp;ENABLE_APPROTECT defined.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;3. Write HwDisabled (0x5A) to UICR.APPROTECT&lt;/span&gt;&lt;br /&gt;&lt;span&gt;4. Perform any reset to run the code. The programmed code from step 2 will open access port by writing to APPROTECT.DISABLE during start-up.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it is seem that APPROTECT permanently enabled</title><link>https://devzone.nordicsemi.com/thread/375234?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2022 04:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4a64376-02ac-49ac-8306-b4f5fae3ba7f</guid><dc:creator>Ryon_pan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;yes,i know how to read out these registers.but my question is how to&lt;span&gt;&amp;nbsp;keep readback protection disabled?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I followed your above steps. do a&amp;nbsp;power-on-reset, readback protection will still start again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The following figure is to read the value of two registers:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1656909125911v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it is seem that APPROTECT permanently enabled</title><link>https://devzone.nordicsemi.com/thread/375127?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 13:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0dfa807-f19a-4e39-990f-441c4335e15c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You&amp;#39;re using the latest version which behaves a bit different then the older ones in regards to App protect. In the newest version app protect is enabled by default while it was the opposite in the older versions. nrfjprog --recover command will disable the app protect&lt;span&gt;&amp;nbsp;&lt;/span&gt;temporary until a reset&amp;nbsp;occurs, which will effectively activate the readback protection again.&lt;/p&gt;
&lt;p&gt;Could you:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Read out the UICR.APPROTECT register and NRF_APPROTECT.&lt;span&gt;DISABLE register&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;nrfjprog --recover&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Read out the UICR.APPROTECT register and NRF_APPROTECT.&lt;span&gt;DISABLE register&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Flash your fw&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Read out the UICR.APPROTECT register and NRF_APPROTECT.&lt;span&gt;DISABLE register&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Do a power-on-reset&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Read out the UICR.APPROTECT register and NRF_APPROTECT.&lt;span&gt;DISABLE register&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;You can read out the&amp;nbsp;UICR.APPROTECT by:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --memrd 0x10001208&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can read out the&amp;nbsp;NRF_APPROTECT.DISABLE&amp;nbsp;register by:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --memrd 0x40000558&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also see&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/working-with-the-nrf52-series-improved-approtect"&gt;this&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;blogpost about APPROTECT and the documentation on it in the product specification&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/dif.html?cp=4_1_0_3_7_1#concept_udr_mns_1s"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it is seem that APPROTECT permanently enabled</title><link>https://devzone.nordicsemi.com/thread/375038?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 09:33:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d023e95-73e2-4508-b39f-f3e8f8e06092</guid><dc:creator>Ryon_pan</dc:creator><description>&lt;p&gt;many thx for your support.&lt;/p&gt;
&lt;p&gt;i am using nRF5SDK.&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Read the package variant and build code from the marking on the top of the nRF52 SoC is N52833&amp;nbsp; QDAAB0&amp;nbsp;&amp;nbsp;2117AA&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The package is QFN40,so the&amp;nbsp;version should be circled in red in the image below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Soc-revison.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it is seem that APPROTECT permanently enabled</title><link>https://devzone.nordicsemi.com/thread/375026?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 08:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bc5a267-4250-438e-88d5-5cb61b6758fb</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Are you using nRF5SDK or NCS?&lt;/p&gt;
&lt;p&gt;Could you also provide &lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52833/COMP/nrf52833/nRF52833_ic_revision_overview.html?cp=4_1_3_0"&gt;what version&lt;/a&gt; of the nRF52833 that you&amp;#39;re using?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: it is seem that APPROTECT permanently enabled</title><link>https://devzone.nordicsemi.com/thread/374825?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2022 06:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd8c81e2-5f5c-489f-a118-adf361386a08</guid><dc:creator>Lucia LIU</dc:creator><description>&lt;p&gt;HI Ryan,&lt;/p&gt;
&lt;p&gt;I am Lucia Liu, Nordic sales based at Beijing, you can call me via 13661101663(also is wechat name), I can assign FAE to support you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>