<?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>nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75712/nrf53-device-is-protected-after-programming-and-i-cannot-debug</link><description>When i program our new nRF5340 based radio boards the program returns Device Protected for both cores on completion. It is also impossible to debug the board as my segger refuses to connect. 
 I found a case with a similar issue: 
 https://devzone.nordicsemi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jun 2021 11:22:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75712/nrf53-device-is-protected-after-programming-and-i-cannot-debug" /><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/313897?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 11:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:030b5a91-b4a8-4578-b4d3-e3c65f85e644</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Try uninstall Segger J-link, and then run the&amp;nbsp;nRF Command Line Tools installer again,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download#infotabs"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download#infotabs&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/313894?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 11:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5949be29-e060-4e2b-99cd-846c3b2454ce</guid><dc:creator>emag nioj</dc:creator><description>&lt;p&gt;hello thank you!&lt;/p&gt;
&lt;p&gt;about nrfjprog&lt;/p&gt;
&lt;p&gt;i have this error&amp;nbsp;&amp;nbsp;ERROR: JLinkARM DLL not found. Please reinstall latest JLinkARM.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;how to reinstall?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this errr after the update.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/313879?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 10:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b919f0ac-635f-4c74-a4d1-00efa1a6cc34</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;This is handled by the start-up code:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/mdk/system_nrf53_approtect.h"&gt;https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/mdk/system_nrf53_approtect.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/mdk/system_nrf5340_application.c#L233"&gt;https://github.com/zephyrproject-rtos/hal_nordic/blob/master/nrfx/mdk/system_nrf5340_application.c#L233&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/blob/574493fe29c79140df4827ab5d4a23df79d03681/nrfx/mdk/system_nrf5340_network.c#L87"&gt;https://github.com/zephyrproject-rtos/hal_nordic/blob/574493fe29c79140df4827ab5d4a23df79d03681/nrfx/mdk/system_nrf5340_network.c#L87&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you have a nRF5340&amp;nbsp;&lt;span&gt;revision D,&amp;nbsp;I recommend using NCS v.1.5.0, or higher, and make sure to use the latest version&amp;nbsp;of nrfjprog.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/312894?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 13:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71c19c26-5932-4bf0-ab77-27c107574b55</guid><dc:creator>emag nioj</dc:creator><description>&lt;p&gt;here i haven&amp;#39;t hard fault i can check just because the uploaded firmware seems to work&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but the flash in net core when updated programmatically seems to be erased after, but i haven&amp;#39;t a way to verify.&lt;/p&gt;
&lt;p&gt;i m thinking to not continue i have other projects delayed&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/312848?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 11:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e1a84c4-d555-4303-a0da-273f0270da45</guid><dc:creator>nsga333</dc:creator><description>&lt;p&gt;Hi emag nioj&lt;/p&gt;
&lt;p&gt;How did you manage to get that to run - i got a hard failt as soonas i tried to set NRF_CTRLAP_NS-&amp;gt;APPROTECT.DISABLE and NRF_CTRLAP_S-&amp;gt;APPROTECT.DISABLE&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/312813?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 10:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a39071c3-5ca2-495d-855e-2fb4a92c7526</guid><dc:creator>emag nioj</dc:creator><description>&lt;p&gt;&amp;nbsp;But in nrf5340 revision A it was working all very good. Debugging Net Core was very simple.&lt;/p&gt;
&lt;p&gt;Now with revision D&amp;nbsp; i m wasting lot of time.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i have added this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NRF_NVMC_NS-&amp;gt;CONFIG = (NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos);&lt;br /&gt; while (NRF_NVMC_NS-&amp;gt;READY == NVMC_READY_READY_Busy) {};&lt;br /&gt; NRF_UICR_NS-&amp;gt;APPROTECT=0x50fa50fa;&lt;br /&gt; while (NRF_NVMC_NS-&amp;gt;READY == NVMC_READY_READY_Busy) {}&lt;br /&gt; NRF_NVMC_NS-&amp;gt;CONFIG = (NVMC_CONFIG_WEN_Ren &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos);&lt;br /&gt; while (NRF_NVMC_NS-&amp;gt;READY == NVMC_READY_READY_Busy){};&lt;br /&gt; NRF_CTRLAP_NS-&amp;gt;APPROTECT.DISABLE=0x50fa50fa;&lt;/p&gt;
&lt;p&gt;in NET core at main function&lt;/p&gt;
&lt;p&gt;and this in APP main&lt;/p&gt;
&lt;p&gt;NRF_NVMC_S-&amp;gt;CONFIG = (NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos);&lt;br /&gt; while (NRF_NVMC_S-&amp;gt;READY == NVMC_READY_READY_Busy) {};&lt;br /&gt; NRF_UICR_S-&amp;gt;APPROTECT=0x50fa50fa;&lt;br /&gt; while (NRF_NVMC_S-&amp;gt;READY == NVMC_READY_READY_Busy) {}&lt;br /&gt; NRF_NVMC_S-&amp;gt;CONFIG = (NVMC_CONFIG_WEN_Ren &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos);&lt;br /&gt; while (NRF_NVMC_S-&amp;gt;READY == NVMC_READY_READY_Busy){};&lt;br /&gt; NRF_CTRLAP_S-&amp;gt;APPROTECT.DISABLE=0x50fa50fa;&lt;br /&gt; NRF_CTRLAP_S-&amp;gt;SECUREAPPROTECT.DISABLE=1;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;so i m expecting&amp;nbsp; to attach the debug without problems but not.&lt;/p&gt;
&lt;p&gt;So&amp;nbsp; HOW TO&amp;nbsp; DO?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/312810?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 09:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8365823-ce3f-4482-9915-1d25977f5dc9</guid><dc:creator>emag nioj</dc:creator><description>&lt;p&gt;every time there is a reset the protection goes on erasing all automatically.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a lot disturbing, now i need to update the NET core but i m not able to debug.&lt;/p&gt;
&lt;p&gt;I enable FLASH ERASE then writing 0xFFFFFFFF on 0xFFFFF000 boundaries then the page is erased ready to write the code. In APP it&amp;#39;s ok in NET no but how to debug????&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/312809?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 09:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33c7bfc4-a21a-494b-af09-3b102d06627a</guid><dc:creator>nsga333</dc:creator><description>&lt;p&gt;Not I am using the Programmer built into nRF Connect and just drag the images in so I wouldn&amp;#39;t expect an issue.&lt;/p&gt;
&lt;p&gt;As soon as i program the device the nRF Connect programmer reports it as protected&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/312807?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 09:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23bc1a04-6cc5-45a4-a4d2-2a65a848f1d0</guid><dc:creator>nsga333</dc:creator><description>&lt;p&gt;I am using nRFProg to write the image through a Segger j-link ( I have upgraded to the latest Segger as well). This works fine with the older nRF52 boards. and also when i program a PDK. But as soon as I program our target the nRFProg reports that the device is locked.&lt;/p&gt;
&lt;p&gt;Next time i wish to program the device i have to do an erase all to unlock it. I have seen it work for an hour or a few hours such that i can program it and it comes back unlocked so that i am able to debug it but after a period, maybe the next day it wil revert to programming as locked&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/312802?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 09:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cac7c917-bd42-4069-952e-da994c39f325</guid><dc:creator>emag nioj</dc:creator><description>&lt;p&gt;I m stuck i try to attach the debug the flash erases. Sometime it works other not.&lt;/p&gt;
&lt;p&gt;I have the NET core that needs to update the firmware flash and it&amp;#39;s impossible to debug it.&lt;/p&gt;
&lt;p&gt;problems:&lt;/p&gt;
&lt;p&gt;- it&amp;#39;s not clear if it&amp;#39;s possible to write the NET core from the APP core in case of yes it makes firmware update simpler.&lt;/p&gt;
&lt;p&gt;- it&amp;#39;s not clear how to disable protection from firmware to let debug to attach in NET core&lt;/p&gt;
&lt;p&gt;- the info in the datasheet are not clear about lot of protect and disable protect and flash uicr bah!!!!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll abandon nr5340 to many time wasted in problems not related to the development of the code&lt;/p&gt;
&lt;p&gt;bye&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/312446?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 16:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caeb1f72-9b0d-4434-88de-f6fe7712ad26</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How are you flashing the device? With nrfjprog or west?&lt;/p&gt;
&lt;p&gt;Take a look at the commands on this page on how to flash the image:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/ug_nrf5340.html#programming-from-the-command-line"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/ug_nrf5340.html#programming-from-the-command-line&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53 Device is Protected after programming and I cannot debug</title><link>https://devzone.nordicsemi.com/thread/312183?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 15:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b0dc547-3423-447c-8be8-71c2e746375b</guid><dc:creator>nsga333</dc:creator><description>&lt;p&gt;I have subsequently gone back into the situation where the segger reports the following:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img height="123" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1622129664583v1.png" width="406" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>