<?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>Write Protection NVM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27234/write-protection-nvm</link><description>Reading the documentation online for the BPROT component for the nRF52832, it seems like resetting is the way to clear the Write Protection bits in BPROT. Is resetting the only way to clear the Protection bits or is there another way to clear the bits</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Nov 2017 17:29:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27234/write-protection-nvm" /><item><title>RE: Write Protection NVM</title><link>https://devzone.nordicsemi.com/thread/107463?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 17:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57cff02a-194f-4139-be92-f910239626c0</guid><dc:creator>JeanMBoones</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write Protection NVM</title><link>https://devzone.nordicsemi.com/thread/107462?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 15:15:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54ee5e84-261e-466d-9873-2e6e4a05ccd8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any good reason why the SoftDevice should not allow you to protect the softdevice area also using sd_flash_protect. But, yes, you can always write to the BPROT register directly in the application before enabling the softdevice to protect any part of flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write Protection NVM</title><link>https://devzone.nordicsemi.com/thread/107461?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 23:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac3e2b95-a2fa-4f8c-8da3-ae68fdca65b5</guid><dc:creator>JeanMBoones</dc:creator><description>&lt;p&gt;Hi Sigurd, could you please answer above question? Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write Protection NVM</title><link>https://devzone.nordicsemi.com/thread/107460?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 22:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5444644-fe7f-471b-80ef-f4d650de4cfa</guid><dc:creator>JeanMBoones</dc:creator><description>&lt;p&gt;Thanks Sigurd. Looking at the documentation for sd_flash_protect(), it returns an error if you try to protect the SoftDevice. I am curious as to why this is the case? Why does sd_flash_protect() return NRF_ERROR_FORBIDDEN when trying to protect the Softdevice (with the Softdevice enabled)?&lt;/p&gt;
&lt;p&gt;Also, what if the SoftDevice is disabled. Can I directly modify the BPROT component to Write Protect the area of NVM covered by the Softdevice? OR can you not Write Protect the SoftDevice at all regardless of whether it is enabled or disabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write Protection NVM</title><link>https://devzone.nordicsemi.com/thread/107459?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 10:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f17dd29-ca48-43e5-bcbd-9a130c555b24</guid><dc:creator>Sigurd</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;For example, I set page 0 as write
protected and then later on I want to
set page 5 as write protected. I can
do that, right?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Yes, that is possible.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note: If the SoftDevice is enabled, you have to use the function &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_7_2_8#gadf6c5b029494663d62783ace862b99d5"&gt;sd_flash_protect()&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write Protection NVM</title><link>https://devzone.nordicsemi.com/thread/107458?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 03:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76083bfe-76f0-4e10-b4eb-e1d23a934edc</guid><dc:creator>JeanMBoones</dc:creator><description>&lt;p&gt;Thanks. I have another question. Can I set individual blocks (pages) using the BPROT at different points in time and then each block (page) becomes Write Protected until reset. For example, I set page 0 as write protected and then later on I want to set page 5 as write protected. I can do that, right? Or do I only get a single write opportunity to the BPROT component?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write Protection NVM</title><link>https://devzone.nordicsemi.com/thread/107457?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 08:22:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a956584-8b30-406e-9422-14533090cb61</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;From the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/bprot.html?resultof=%22%42%50%52%4f%54%22%20%22%62%70%72%6f%74%22%20"&gt;BPROT Chapter in the Product Specification&lt;/a&gt; it is stated that&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The &lt;strong&gt;only way&lt;/strong&gt; of clearing protection
bits is by resetting the device from
any reset source.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;A list of reset sources can be found &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=2_1_0_17_5#unique_213661016"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>