<?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>nrf52833-dk read protection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92759/nrf52833-dk-read-protection</link><description>Hi, 
 I bought a second nrf52833-dk. After I program my code on it, I can&amp;#39;t debug or read the code because read protection is on. This is strange, because I didn&amp;#39;t program it like that. I program the board like this: 
 nrfjprog -f nrf52 --program [name_of_file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Oct 2022 14:21:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92759/nrf52833-dk-read-protection" /><item><title>RE: nrf52833-dk read protection</title><link>https://devzone.nordicsemi.com/thread/390688?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 14:21:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eaa963d-2ad2-41d4-9ec3-ba2284824a02</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Gaston"]Ok, thanks works now.[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="Gaston"]But wouldn&amp;#39;t it be a good idea to update the SDK of tread and zigbee with this latest mdk?[/quote]
&lt;p&gt;Ideally, yes, but our main focus is now on nRF Connect SDK. See this post for more information:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF Connect SDK and nRF5 SDK statement&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833-dk read protection</title><link>https://devzone.nordicsemi.com/thread/390663?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 13:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:230157af-22f3-4e81-aea0-3a4099840f51</guid><dc:creator>Gueston</dc:creator><description>&lt;p&gt;Ok, thanks works now.&lt;/p&gt;
&lt;p&gt;But wouldn&amp;#39;t it be a good idea to update the SDK of tread and zigbee with this latest mdk?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833-dk read protection</title><link>https://devzone.nordicsemi.com/thread/390504?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 15:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0cf06a7-14fc-4591-a4e4-b49690aa14ba</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Gaston"]how can I see which MDK version this uses[/quote]
&lt;p&gt;You can see that in&amp;nbsp;&lt;span&gt;&amp;lt;sdk root folder&amp;gt;/modules/nrfx/mdk/ in the&amp;nbsp;nrf.h file. E.g.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/* MDK version */&lt;br /&gt;#define MDK_MAJOR_VERSION 8 &lt;br /&gt;#define MDK_MINOR_VERSION 40 &lt;br /&gt;#define MDK_MICRO_VERSION 3 &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Gaston"] And how can I update the MDK?[/quote]
&lt;p&gt;Take a look at this post&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/85638/how-to-update-mdk-to-handle-approtect"&gt;how to update MDK to handle APPROTECT&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833-dk read protection</title><link>https://devzone.nordicsemi.com/thread/390445?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 12:30:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09e9d45c-5b63-4c21-9694-30915fb6e62e</guid><dc:creator>Gueston</dc:creator><description>&lt;p&gt;I use nRF5_SDK_for_Thread_and_Zigbee_v4.1.0, how can I see which MDK version this uses? And how can I update the MDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833-dk read protection</title><link>https://devzone.nordicsemi.com/thread/390430?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 11:58:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9e868e8-ebb7-4110-a920-6a260683f7e9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Gaston"]I also read &amp;quot;Firmware must write &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/dif.html?cp=4_1_0_3_7_1#register.DISABLE"&gt;APPROTECT.DISABLE&lt;/a&gt; to &lt;code&gt;SwDisable&lt;/code&gt;&amp;quot;, but I can&amp;#39;t find the APPPROTECT register. How can I write SwDisable to this register?[/quote]
&lt;p&gt;If you use the latest SDK version, this will be handled for you by the MDK startup code. If you are using an older SDK version, and don&amp;#39;t want to update the SDK version, then please update the MDK version instead. We have also have an&amp;nbsp;Informational Notice about the changes here&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/pdf/in_149_v1.1.pdf?cp=18_13"&gt;https://infocenter.nordicsemi.com/pdf/in_149_v1.1.pdf?cp=18_13&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833-dk read protection</title><link>https://devzone.nordicsemi.com/thread/390389?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 09:18:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:705835cc-5cb3-43f2-9ee4-b1972d76c539</guid><dc:creator>Gueston</dc:creator><description>&lt;p&gt;Oh, I didn&amp;#39;t know that has changed. I need to use --sectoranduicrerase because I only want to flash a certain area of the flash.&lt;/p&gt;
&lt;p&gt;However, after a reset it&amp;#39;s still protected.&lt;/p&gt;
&lt;p&gt;I read that I need to disable it in the firmware, but when I type this NRF_UICR-&amp;gt;APPROTECT=0x5A; it&amp;#39;s still not disabled after reset.&lt;/p&gt;
&lt;p&gt;I also read &amp;quot;Firmware must write &lt;a class="xref" href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/dif.html?cp=4_1_0_3_7_1#register.DISABLE"&gt;APPROTECT.DISABLE&lt;/a&gt; to &lt;code class="ph codeph"&gt;SwDisable&lt;/code&gt;&amp;quot;, but I can&amp;#39;t find the APPPROTECT register. How can I write SwDisable to this register?&lt;/p&gt;
&lt;p&gt;I already spend a couple hours on this to fix it, I personally don&amp;#39;t like this change that nordic made to enable rbp it by default. Would have been better to disable it and the with programming enable it, like I always do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833-dk read protection</title><link>https://devzone.nordicsemi.com/thread/390249?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 11:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:602c4cfe-d644-4d33-8738-eabb6b21d1c5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You likely have nRF52833 with&amp;nbsp;&lt;span&gt;build code&amp;nbsp;&lt;/span&gt;&lt;span&gt;Bxx(or&amp;nbsp;&lt;/span&gt;&lt;span&gt;later).&amp;nbsp;A&lt;/span&gt;ccess port protection is enabled by default on these latest revision(s). You can find some more info about this here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52833%2Fdif.html&amp;amp;cp=4_1_0_3_7_1&amp;amp;anchor=concept_udr_mns_1s"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52833%2Fdif.html&amp;amp;cp=4_1_0_3_7_1&amp;amp;anchor=concept_udr_mns_1s&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Try to program the chip like this:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog -f nrf52 --program [name_of_file].hex --recover&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>