<?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>PCA10040 dk flash entire erase after linked to jlink</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128577/pca10040-dk-flash-entire-erase-after-linked-to-jlink</link><description>I&amp;#39;m developing with PCA10040 DK(3.0.0 2022.10), the IDE is SES for ARM 5.42a. 
 The app is normal after download the application. After a reset or power off and restart, the program works fine. Once I connect the PCA10040 DK with the J-Link on board to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jun 2026 12:17:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128577/pca10040-dk-flash-entire-erase-after-linked-to-jlink" /><item><title>RE: PCA10040 dk flash entire erase after linked to jlink</title><link>https://devzone.nordicsemi.com/thread/568542?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2026 12:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ae42241-b692-472e-8a00-02f295bb90fa</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This is a one time operation as long as you do not erase the UICR section or boot the device without a valid FW.&amp;nbsp;&lt;/p&gt;
[quote userid="145961" url="~/f/nordic-q-a/128577/pca10040-dk-flash-entire-erase-after-linked-to-jlink/568540"]I have another question: how should I avoid this problem if I&amp;#39;m using SDK 16.0.0?[/quote]
&lt;p&gt;You must upgrade the MDK as stated in IN-142:&amp;nbsp;&lt;a href="https://nrfconnectdocs.nordicsemi.com/pdf/IN/in_142_v1.1.pdf"&gt;https://nrfconnectdocs.nordicsemi.com/pdf/IN/in_142_v1.1.pdf&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10040 dk flash entire erase after linked to jlink</title><link>https://devzone.nordicsemi.com/thread/568540?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2026 12:15:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ead9e3bd-8793-4708-aefd-c9b5fe50a380</guid><dc:creator>lzq597</dc:creator><description>&lt;p&gt;I have another question: how should I avoid this problem if I&amp;#39;m using SDK 16.0.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10040 dk flash entire erase after linked to jlink</title><link>https://devzone.nordicsemi.com/thread/568538?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2026 12:08:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60989471-d33a-4e1a-bac2-c56ea667e78c</guid><dc:creator>lzq597</dc:creator><description>&lt;p&gt;Thanks Vidar, your method is useful. Does this mean that whenever this problem occurs, I need to do a register rewrite the way you said?&amp;nbsp;Is there a one-time solution to avoid this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10040 dk flash entire erase after linked to jlink</title><link>https://devzone.nordicsemi.com/thread/568537?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2026 11:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc42e0b6-1b6d-4807-8d1e-bc172a8e1970</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Before programming the ble_app_uart example from SDK v17.1.0, run &amp;quot;nrfjprog --recover&amp;quot; or &amp;quot;nrfutil device recover&amp;quot; from the command line. This command&amp;nbsp;includes writing 0x5A to UICR.APPROTECT to keep approtect unlocked across resets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10040 dk flash entire erase after linked to jlink</title><link>https://devzone.nordicsemi.com/thread/568536?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2026 11:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce4f26d3-cc8c-4c43-a4f5-25205fd36746</guid><dc:creator>lzq597</dc:creator><description>&lt;p&gt;I used&amp;nbsp;nRF5_SDK_16.0.0 and&amp;nbsp;17.1.0, both have this problem. I try again just now with&amp;nbsp;&lt;span&gt;17.1.0 example &amp;lsquo;ble_app_uart&amp;rsquo;, it happen just as I say.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10040 dk flash entire erase after linked to jlink</title><link>https://devzone.nordicsemi.com/thread/568530?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2026 09:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1dd2f7e-2aac-468e-a399-a1576912b7cd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This version&amp;nbsp;of the nRF52 DK has revision 3 of the nRF52832 with a hardened readback protection mechanism, see&amp;nbsp;&lt;a href="https://nrfconnectdocs.nordicsemi.com/pdf/IN/in_142_v1.1.pdf"&gt;https://nrfconnectdocs.nordicsemi.com/pdf/IN/in_142_v1.1.pdf&lt;/a&gt;&amp;nbsp;and it&amp;nbsp;is only nRF5 SDK v17.1.0 that supports this revision out of the box. Perhaps you are you using an older SDK? The jlink tools will prompt you to erase the chip if they detect that AP protection is enabled.&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>