<?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>recover nrf52 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101209/recover-nrf52-dk</link><description>Hi all! 
 I just bought a new nrf52DK: PCA10040, 3.0.0, 2023.10 If I want to flash my SW into it, nrfjprog says 
 
 So I run nrfjprog --recover -f nrf52 . After that, I try to flash my FW, but nrfjprog returns 
 If I plug off the DK and replace it by</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jul 2023 11:53:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101209/recover-nrf52-dk" /><item><title>RE: recover nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/435474?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 11:53:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba0deaa-bd6d-462b-98a4-d3bfa81273e4</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Håkon is out of office now on vacation for the next weeks. Based on what I can see and what Håkon states it looks like this latest issue is a new issue. I recommend you to create a new case and we will assign it to an available engineer to look into it over the summer. Do however note that we&amp;#39;re in the main summer vacation period here in Norway, so responses will be slower than usual until mid August.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recover nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/435053?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 15:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d250cbfb-5f80-4c9c-806c-36a32ff8929d</guid><dc:creator>Neum_d</dc:creator><description>&lt;p&gt;Yes. If I switch back to the old MDK 8.24.1, I can write into internal flash, but no more, if I use 8.53.1. Then, fds.c::record_header_write_begin() does not return and the whole system hangs (until watchdog causes reboot), even if fds_record_update() is called in the context of app_scheduler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recover nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/435031?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 14:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd9cd9fe-9f86-46df-b1af-21ea11a0603d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The handling of approtect is done in the startup files, so no need to add anything in your application when using MDK v8.40.2 or newer.&amp;nbsp;&lt;/p&gt;
[quote user="Neum_d"]MDK 8.53.1 prevents me to use FDS to store data into flash.[/quote]
&lt;p&gt;How do you mean? You&amp;#39;re not able to write to internal flash from the mcu anymore? This sounds like a different issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recover nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/434960?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 12:05:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ea590d8-51bf-4d6b-b502-f1a4c39f82f8</guid><dc:creator>Neum_d</dc:creator><description>&lt;p&gt;I just saw that updating to MDK 8.53.1 prevents me to use FDS to store data into flash. I assume I have to take additional steps to re-enable it. I opened with NRF_UICR-&amp;gt;APPROTECT =&amp;nbsp;APPROTECT_DISABLE_DISABLE_SwDisable, but no success. I assume, I have to change some&amp;nbsp; other things too, is there a porting guide for the MDKs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recover nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/433463?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 12:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52ea252a-4c2c-4d82-b841-71e7885ec39d</guid><dc:creator>Neum_d</dc:creator><description>&lt;p&gt;Thanks. I updated MDK and nrfjprog and now it seems to work. I have to check, if my program does the things still correct.&lt;/p&gt;
&lt;p&gt;BTW: The connectivity firmware which comes with nrfutil 6.1.7 seems to use a MDK which is too old...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recover nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/433378?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 08:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dd54a73-3008-47b0-a4c5-62c53dfd22c6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Neum_d"]&lt;p&gt;If I understand the linked explanation correct, I just add NRF_UICR-&amp;gt;APPROTECT=0xFF; to my main() ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;That will lock down the device, so that you&amp;#39;ll need to recover each time you reprogram.&lt;/p&gt;
&lt;p&gt;Set it to 0x5AUL; to open it up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is strongly recommended that you update to&amp;nbsp;MDK version 8.40.2 or later:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-MDK"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-MDK&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Neum_d"]I use nrfjprog version 10.12.2:[/quote]
&lt;p&gt;Could you try to update nrf-command-line-tools to a newer version?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recover nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/433259?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 13:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c27cc916-5554-498a-950b-c9540fd57c39</guid><dc:creator>Neum_d</dc:creator><description>&lt;p&gt;If I understand the linked explanation correct, I just add NRF_UICR-&amp;gt;APPROTECT=0xFF; to my main() ?&lt;/p&gt;
&lt;p&gt;I use nrfjprog version 10.12.2:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog -v
nrfjprog version: 10.12.2 
JLinkARM.dll version: 6.88a&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recover nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/433233?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 12:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:493e7431-733d-4610-b607-554e7439a177</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With newer revisions of the nRF52 SoC family, a hardened approtect is added, which requires handling in the firmware to open up the debugger session:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev3/ERR/nRF52832/Rev3/latest/config_832_249.html?cp=5_2_1_0_2_0"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev3/ERR/nRF52832/Rev3/latest/config_832_249.html?cp=5_2_1_0_2_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is your firmware compiled with newer startup files (MDK)?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]So I run &lt;span style="font-family:courier new, courier;"&gt;nrfjprog --recover -f nrf52&lt;/span&gt;.&lt;br /&gt;After that, I try to flash my FW, but nrfjprog returns[/quote]
&lt;p&gt;which version of nrfjprog are you using? Could you share the output of &amp;quot;nrfjprog -v&amp;quot;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>