<?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>After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122812/after-using-the-approtect-function-complete-erasure-became-impossible-that-right</link><description>My customer is now unable to disable secure erasure after using the APPROTECT function. Is this correct? 
 Please let me know if there is another way to check this. 
 ”nrfjprog --recover”log 
 PS C:\Users\hoko&amp;gt; nrfjprog --memrd 0x10001200 --n 4 0x10001200</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Jul 2025 06:20:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122812/after-using-the-approtect-function-complete-erasure-became-impossible-that-right" /><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542181?ContentTypeID=1</link><pubDate>Fri, 11 Jul 2025 06:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a7987db-bb29-4489-90a0-562be2d68f46</guid><dc:creator>Hoko</dc:creator><description>&lt;div class="n4sEPd"&gt;
&lt;div class="FFpbKc"&gt;
&lt;div class="xMmqsf"&gt;
&lt;div class="nidPne"&gt;
&lt;div data-show-delay-ms="250" data-append-to-body="true" data-propagate-tooltip-mouseover-events="true" data-anchor-corner="bottom-left" data-enable-skip-handler="true" data-popup-corner="top-left"&gt;
&lt;div class="dig2sb"&gt;
&lt;div class="scLCMd"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="QcsUad BDJ8fb BLojaf sMVRZe hCXDsb wneUed"&gt;
&lt;div class="usGWQd"&gt;
&lt;div class="KkbLmb"&gt;
&lt;div class="lRu31" dir="ltr"&gt;&lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I just wanted to erase all mem, and the steps below seem to have done the trick, so I think I&amp;#39;ll go ahead with this.&lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt; Thank you so much for your support.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;PS C:\Users\hoko&amp;gt; nrfjprog --recover&lt;br /&gt;Recovering device. This operation might take 30s.&lt;br /&gt;Erasing user code and UICR flash areas.&lt;br /&gt;Writing image to disable ap protect.&lt;br /&gt;PS C:\Users\hoko&amp;gt; nrfjprog --eraseall&lt;br /&gt;Erasing user available code and UICR flash areas.&lt;br /&gt;Applying system reset.&lt;br /&gt;PS C:\Users\hoko&amp;gt; nrfjprog --memrd 0x00000000 --n 16&lt;br /&gt;0x00000000: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542061?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 08:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a76c740-0178-4394-9c75-140db9f18444</guid><dc:creator>Hoko</dc:creator><description>&lt;p&gt;OK, I see what I don&amp;#39;t understand. Could you please show me a document that explains &amp;quot;This is the beginning of the firmware image that is loaded after the chip is erased here:&amp;quot;? I&amp;#39;ll study it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542057?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 08:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59ddea6d-8797-4d68-a1c9-3596d1269a69</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No, you would not have been able to read from the FLASH if readback protection was still enabled.&amp;nbsp;&lt;/p&gt;
[quote userid="119152" url="~/f/nordic-q-a/122812/after-using-the-approtect-function-complete-erasure-became-impossible-that-right/542052"]PS C:\Users\hoko&amp;gt; nrfjprog --memrd 0x00000000 --n 16&lt;br /&gt;0x00000000: 20020000 0000057D 000[/quote]
&lt;p&gt;This is the beginning of the&amp;nbsp;firmware image that is loaded after the&amp;nbsp;chip is erased here:&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/122812/after-using-the-approtect-function-complete-erasure-became-impossible-that-right/542012"]&lt;p&gt;&lt;span&gt;PS C:\Users\hoko&amp;gt; nrfjprog --recover&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Recovering device. This operation might take 30s.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Erasing user code and UICR flash areas.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Writing image to disable ap protect.&lt;/strong&gt;&lt;br /&gt;&lt;span&gt;PS C:\Users\hoko&amp;gt; nrfjprog --rbp all --log&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Protected the device against read and debug. Only a --recover, --debugreset,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;or --pinreset operations will work from now on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The &amp;quot;recover&amp;quot; command will first erase the chip through the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/dif.html#d913e1399"&gt;CTRL-AP&lt;/a&gt;&amp;nbsp;then it will load a small FW binary which will do the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/dif.html#d913e201"&gt;SW unlocking&lt;/a&gt; of the approtect mechansim.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Please clarify what you&amp;#39;re trying to do or achieve.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542052?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 08:48:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89ac87aa-5d21-4016-90f5-844fe19cf5aa</guid><dc:creator>Hoko</dc:creator><description>&lt;p&gt;OK, I checked again and got the following result:&lt;/p&gt;
&lt;p&gt;PS C:\Users\hoko&amp;gt; nrfjprog --deviceversion&lt;br /&gt;483012109 - NRF52833_xxAA_REV2&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;PS C:\Users\hoko&amp;gt; nrfjprog --recover&lt;br /&gt;Recovering device. This operation might take 30s.&lt;br /&gt;Erasing user code and UICR flash areas.&lt;br /&gt;Writing image to disable ap protect.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;PS C:\Users\hoko&amp;gt; nrfjprog --memrd 0x00000000 --n 16&lt;br /&gt;0x00000000: 20020000 0000057D 000&lt;/p&gt;
&lt;p&gt;I think I may have applied other protection. Is there a way to check?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542045?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 08:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14320d82-c16a-4260-b6c1-019853337ef0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;APPROTECT is referred to as &amp;quot;access port protection&amp;quot; in the linked document. Any existing data on the chip is erased when you run &amp;quot;nrfjprog --recover&amp;quot;.&lt;/p&gt;
[quote userid="119152" url="~/f/nordic-q-a/122812/after-using-the-approtect-function-complete-erasure-became-impossible-that-right/542042"]I have a feeling that the flash on this device cannot be erased, is that correct?[/quote]
&lt;p&gt;No.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542042?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 08:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d279044-87ab-4c88-a112-6687dcb637ca</guid><dc:creator>Hoko</dc:creator><description>&lt;p&gt;The revision is NRF52833-CJAA-B.&lt;/p&gt;
&lt;p&gt;I could not find any mention of APPROTECT in &lt;a href="https://docs.nordicsemi.com/bundle/IN/resource/in_149_v1.1.pdf."&gt;docs.nordicsemi.com/.../in_149_v1.1.pdf.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have a feeling that the flash on this device cannot be erased, is that correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542031?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 07:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb583016-946d-4e9c-8f0a-da694a95882a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;FLASH is erased&amp;nbsp;is a part of the recovery procedure as I mentioned earlier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542026?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 07:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02ae07f7-79c1-48e4-b197-d30d49b9ebee</guid><dc:creator>Hoko</dc:creator><description>&lt;p&gt;I was told that unless I erased the flash I couldn&amp;#39;t proceed with the analysis at the factory, so I am currently trying to erase the flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542015?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 05:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92091547-8014-40a1-a4a4-d8ea68916634</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;nRF52833 rev2 has the same approtect mechanism:&amp;nbsp;&lt;a id="" href="https://docs.nordicsemi.com/bundle/IN/resource/in_149_v1.1.pdf"&gt;https://docs.nordicsemi.com/bundle/IN/resource/in_149_v1.1.pdf&lt;/a&gt;. But what are you trying to do?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542013?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 05:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba7ac0d7-0d45-4ef8-be4b-a535532f5e5f</guid><dc:creator>Hoko</dc:creator><description>&lt;p&gt;Sorry. I use NRF52833.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS C:\Users\hoko&amp;gt; nrfjprog --deviceversion&lt;br /&gt;483012109 - NRF52833_xxAA_REV2&lt;/p&gt;
&lt;p&gt;PS C:\Users\hoko&amp;gt; nrfjprog --recover -f NRF52 --log&lt;br /&gt;Recovering device. This operation might take 30s.&lt;br /&gt;Erasing user code and UICR flash areas.&lt;br /&gt;Writing image to disable ap protect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542012?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 05:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc420ce5-000e-45be-9e90-fcb4a5422ed5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry, but I&amp;#39;m not sure I understand what you are trying to achieve. It is working as expected here:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PS C:\Users\hoko&amp;gt; nrfjprog --recover&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Recovering device. This operation might take 30s.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Erasing user code and UICR flash areas.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Writing image to disable ap protect.&lt;/strong&gt;&lt;br /&gt;&lt;span&gt;PS C:\Users\hoko&amp;gt; nrfjprog --rbp all --log&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Protected the device against read and debug. Only a --recover, --debugreset,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;or --pinreset operations will work from now on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The &amp;quot;recover&amp;quot; command will first erase the chip through the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/dif.html#d913e1399"&gt;CTRL-AP&lt;/a&gt;&amp;nbsp;then it will load a small FW binary which will do the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/dif.html#d913e201"&gt;SW unlocking&lt;/a&gt; of the approtect mechansim.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/542008?ContentTypeID=1</link><pubDate>Thu, 10 Jul 2025 05:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0f14b8f-3ab1-4269-b056-3f0624d385e4</guid><dc:creator>Hoko</dc:creator><description>&lt;p&gt;Thanks　Vidar.&lt;/p&gt;
&lt;p&gt;I tried &amp;rdquo;&lt;span&gt;nrfjprog --rbp all&amp;rdquo;, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But.I can&amp;#39;t elase flash.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;PS C:\Users\hoko&amp;gt; nrfjprog --rbp all&lt;br /&gt;[error] [ Client] - Encountered error -90: Command read_device_info executed for 15 milliseconds with result -90&lt;br /&gt;[error] [ Worker] - Access protection is enabled, can&amp;#39;t read device version.&lt;br /&gt;[error] [ Client] - Encountered error -90: Command read_memory_descriptors executed for 15 milliseconds with result -90&lt;br /&gt;[error] [ Worker] - Can&amp;#39;t read memory descriptors, ap-protection is enabled.&lt;br /&gt;[error] [ Client] - Encountered error -90: Command readback_protect executed for 15 milliseconds with result -90&lt;br /&gt;[error] [ Worker] - Ap-protection is already enabled, can&amp;#39;t enable ap protection.&lt;br /&gt;ERROR: The operation attempted is unavailable due to readback protection in&lt;br /&gt;ERROR: your device. Please use --recover to unlock the device.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;/p&gt;
&lt;p&gt;I tried recovering as instructed.&lt;/p&gt;
&lt;p&gt;PS C:\Users\hoko&amp;gt; nrfjprog --recover&lt;br /&gt;Recovering device. This operation might take 30s.&lt;br /&gt;Erasing user code and UICR flash areas.&lt;br /&gt;Writing image to disable ap protect.&lt;br /&gt;PS C:\Users\hoko&amp;gt; nrfjprog --rbp all --log&lt;br /&gt;Protected the device against read and debug. Only a --recover, --debugreset,&lt;br /&gt;or --pinreset operations will work from now on.&lt;/p&gt;
&lt;p&gt;Hiroaki&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After using the APPROTECT function, complete erasure became impossible.that right?</title><link>https://devzone.nordicsemi.com/thread/541859?ContentTypeID=1</link><pubDate>Wed, 09 Jul 2025 04:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:844484b9-3601-46aa-8152-4737bf88225b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The nRF52832 does not have erase protection&amp;nbsp;like some other nRF chips, but it does have readback protection with the APPROTECT mechanism. After APPROTECT is enabled, it can only be disabled with a full chip erase through the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/dif.html#d913e1399"&gt;CTRL-AP - Control access port&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can use the following command to ensure approtect gets enabled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Enable APPROTECT
nrfjprog --rbp all&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please also note that the APPROTECT mechanism works differently between revision 2 and 3 as explain in this Informational Notice:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/IN/resource/in_142_v1.1.pdf"&gt;IN142 v1.1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>