<?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>How to turn off Access Protection?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110180/how-to-turn-off-access-protection</link><description>Hello, 
 I have a ble mesh application, that I am flashing with Jflash through Clion, After the initial flash, I can use RTT, however after power loss, RTT no longer works due to access protection. Clion is also no longer able to flash due to the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Apr 2024 13:26:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110180/how-to-turn-off-access-protection" /><item><title>RE: How to turn off Access Protection?</title><link>https://devzone.nordicsemi.com/thread/478567?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 13:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99e87458-9ef8-4473-aeb3-afbc4ac31a42</guid><dc:creator>Einar Thorsrud</dc:creator><description>[quote user="Shahin97"]Rev 3 on the latest ncs release,&amp;nbsp;[/quote]
&lt;p&gt;I see. That should be no problem then. Do you have updated nRF Command Line tools? If so, and you still see issues, can you share details on how you program the application? (if you for isntance do a eraseall after the recover operation, that would erase the magic word in UICR.APPROTECT that is needed in order to open the debug port (in addition to the SW part).&lt;/p&gt;
[quote user="Shahin97"]am I correct in saying&amp;nbsp;&amp;nbsp;&lt;span&gt;nrfjprog --recover&amp;quot; will allow debugger access&amp;nbsp;without erasing the chip?&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;No. The recover operation will first do an erase all operation (which erase all the flash and RAM and opens the debug port for the rest of that debug session). Then it writes to UICR.APPROTECT and writes a small firwmare piece that that writes to APPROTECT.DISABLE after reset. (The latter is overwritten when you flash your application, but by default, nRF Connect applications will write to this on startup unless configured otherwise).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to turn off Access Protection?</title><link>https://devzone.nordicsemi.com/thread/478565?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 13:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a3bcb69-13fc-4b96-b82f-0a49886648e5</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;Rev 3 on the latest ncs release,&amp;nbsp;&lt;br /&gt;am I correct in saying&amp;nbsp;&amp;nbsp;&lt;span&gt;nrfjprog --recover&amp;quot; will allow debugger access&amp;nbsp;without erasing the chip?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to turn off Access Protection?</title><link>https://devzone.nordicsemi.com/thread/478562?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2024 13:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b6dfb25-5146-4291-9017-92bd34c3e53d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Shahin,&lt;/p&gt;
&lt;p&gt;Which SDK version are you using?&lt;/p&gt;
&lt;p&gt;The latest revision of the nF52 series devices, including rev 3 of the nRF52832, has an improved access port protectin mechanism that use both hardware and software. This is described in &lt;a href="https://infocenter.nordicsemi.com/pdf/in_142_v1.1.pdf?cp=19_26"&gt;IN142&lt;/a&gt; and in the product specification under &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/dif.html?cp=5_2_0_15#debugandtrace"&gt;Debug and trace&lt;/a&gt;. If you use updated SDK and tools, this is handled automatically for you, so that the debug port is opened by or instance a &amp;quot;nrfjprog --recover&amp;quot; operation, and the firmware by default keeps debugger access enabled. However, if you use older SDKs(?) or explicitly lock the access bort (&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/security/ap_protect.html"&gt;Enabling access port protection mechanism&lt;/a&gt;), it will be enabled.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>