<?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>Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29175/unable-to-recover-nrf52832-after-writing-into-approtect-register</link><description>I am using nrf52832_xxaa with SDK v11.0.I tried writing into the APPROTECT register by using the code below 
 sd_softdevice_disable();

NRF_NVMC-&amp;gt;CONFIG = (NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos);
while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jan 2018 09:07:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29175/unable-to-recover-nrf52832-after-writing-into-approtect-register" /><item><title>RE: Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/thread/115969?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 09:07:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf5a3b3c-b3b8-4549-9880-f620576f7e1a</guid><dc:creator>Simen August Tinderholt</dc:creator><description>&lt;p&gt;Hi,
Are you able to do this test? It would give us some valuable information so we can find out exactly where it fails.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/thread/115968?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 09:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f159a5c-047b-4c18-bf41-94ee42c92712</guid><dc:creator>Simen August Tinderholt</dc:creator><description>&lt;p&gt;Hi, could you do the following and attach both the resulting nRFJProg and Segger log files?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open J-Link Commander.&lt;/li&gt;
&lt;li&gt;Right click the small green J-Link icon in the windows task bar and press Open.&lt;/li&gt;
&lt;li&gt;Under Settings-&amp;gt;Log File, tick the &amp;quot;Override&amp;quot; box, and specify a log file path for the Segger log.&lt;/li&gt;
&lt;li&gt;Close Control Panel, but leave J-Link Commander open.&lt;/li&gt;
&lt;li&gt;Run nrfjprog -f NRF52 --recover --log&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After you&amp;#39;re finished, you may want to the log file setting as Segger will remember it between sessions. This can be done by removing the &amp;quot;Override&amp;quot; check mark. in the Control panel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/thread/115967?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 07:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:475e1a1f-ce1c-4e06-a6ed-4457eea6431e</guid><dc:creator>Simen August Tinderholt</dc:creator><description>&lt;p&gt;Ok, and both the J-Link pro and the J-Link edu fail? That should at least rule out incompatability.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/thread/115966?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2018 15:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f25a7e0-ce91-4d52-af2f-35e3ae4663e9</guid><dc:creator>sreehari410</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/thread/115965?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2018 13:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2388a96b-75a9-448a-84f0-3a9299077ab0</guid><dc:creator>David Garc&amp;#237;a Polo</dc:creator><description>&lt;p&gt;Do you have a DK? Why dont you use the debugger in the DK in that case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/thread/115964?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2018 13:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd0e1fbb-8096-4a12-8276-526a9f4cfe35</guid><dc:creator>sreehari410</dc:creator><description>&lt;p&gt;I am using the JLink Pro with dll version V6.20i&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/thread/115963?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2018 12:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b1bea99-e871-49f7-98cc-504d1ee30a8c</guid><dc:creator>David Garc&amp;#237;a Polo</dc:creator><description>&lt;p&gt;What segger debug probe are you using? What segger dll version are you using? What device are you using?&lt;/p&gt;
&lt;p&gt;I have never seen &amp;quot;Not supported by current CPU + target interface combination.&amp;quot; error message in the log.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/thread/115962?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 14:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4afc809-6a4e-4d97-bc83-90cc3971c72a</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;And one more btw.: it&amp;#39;s kind of logical to enforce chip read-back protection at the start-up if it is not done through the external SWD programmer before even running the FW for the first time. However your code snippet suggests that you run some code including enabling BLE stack, then you disable it again because you want to write to UICR (it could be done through SD API as well - at least I believe so) and then you enable the stack again. Why so complicated????&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to recover nrf52832 after writing into APPROTECT register</title><link>https://devzone.nordicsemi.com/thread/115961?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 14:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62bf6aa1-5070-41bc-9b1a-8e5c33c8716c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;First of all you shouldn&amp;#39;t write into such register blindly in your code. It almost looks like at certain point you write into it on every occasion! It would be much better to just read the value first and write into it only if the value isn&amp;#39;t the one you need.&lt;/p&gt;
&lt;p&gt;To the issue itself: what SEGGER J-Link probe do you use? Is it running the latest SEGGER J-Link firmware and the same for SEGGER J-Link SW pack on our PC? Could you try to recover the chip through nRFgo Studio instead of nrfjprog?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>