<?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>Can&amp;#39;t erase nRF51 flash?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15370/can-t-erase-nrf51-flash</link><description>I need to save data to flash on an nRF51422. I already have same basic thing working on an nRF52, so I figured the same API calls would work, but they don&amp;#39;t. My main symptom is that sd_flash_page_erase() always returns NRF_ERROR_FORBIDDEN no matter what</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Aug 2016 11:31:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15370/can-t-erase-nrf51-flash" /><item><title>RE: Can't erase nRF51 flash?</title><link>https://devzone.nordicsemi.com/thread/58719?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 11:31:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bae081d7-b67a-4446-be38-436dde57c09e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The nRF51 has a page size of 1kB.&lt;/p&gt;
&lt;p&gt;With S130 v2 pages 0-108 will be protected, and sd_flash_page_erase() will return NRF_ERROR_FORBIDDEN.&lt;/p&gt;
&lt;p&gt;The nRF52 has a page size of 4kB.&lt;/p&gt;
&lt;p&gt;With S132 v2 pages 0-27 will be protected, and sd_flash_page_erase() will return NRF_ERROR_FORBIDDEN.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't erase nRF51 flash?</title><link>https://devzone.nordicsemi.com/thread/58718?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 15:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45a53bf8-c488-4cca-946e-aaedba11d8f6</guid><dc:creator>Elias</dc:creator><description>&lt;p&gt;I wrote a loop that tries all of them, 0 to 64, with the intent that the program doesn&amp;#39;t complete. On the 51, I always get FORBIDDEN (0x000f), so it actually does complete. On the 52, the same loop kills the program as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't erase nRF51 flash?</title><link>https://devzone.nordicsemi.com/thread/58717?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 09:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eed44ab-7c20-4360-a2b3-7e633e51ea97</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What pages have you tried?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>