<?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>Why MBR is erased when I erase or write the SorfDevice with 1kB at address 0x3000?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7366/why-mbr-is-erased-when-i-erase-or-write-the-sorfdevice-with-1kb-at-address-0x3000</link><description>HI, All. 
 I have some troubles:
Why MBR is erased when I erase or write the SorfDevice with 1kB at address 0x3000? My SorfDevice version is 7.1.0. 
 Thanks all. 
 Update:
Attach my snapshot: 
 Befor erase the 12th page:
 
 Erasing the 12th page</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jun 2015 07:07:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7366/why-mbr-is-erased-when-i-erase-or-write-the-sorfdevice-with-1kb-at-address-0x3000" /><item><title>RE: Why MBR is erased when I erase or write the SorfDevice with 1kB at address 0x3000?</title><link>https://devzone.nordicsemi.com/thread/26099?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2015 07:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fd9033b-b3bc-4022-b688-455af4d2743e</guid><dc:creator>tany0699</dc:creator><description>&lt;p&gt;Thank you for your reply, Aryan.Your are right and with your help, I had solved my problem,thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why MBR is erased when I erase or write the SorfDevice with 1kB at address 0x3000?</title><link>https://devzone.nordicsemi.com/thread/26098?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2015 05:34:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fd399aa-eb2b-49d2-ad6c-3cb5ac68d28f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;12th Page is where the information of softdevice is located, like its size and other firmware info. When you delete that information, then &lt;strong&gt;nRFgo thinks that there is no softdevice&lt;/strong&gt;. Even read and save as hex file need 12th page.
You can for example try to delete 13 or 14th page and at that time nRFgo can still read this critical information about softdevice from 12th Page&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why MBR is erased when I erase or write the SorfDevice with 1kB at address 0x3000?</title><link>https://devzone.nordicsemi.com/thread/26096?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2015 02:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8ea0990-5e18-4fcd-af7f-368575fb6911</guid><dc:creator>tany0699</dc:creator><description>&lt;p&gt;You are right.When I use the commands of nrfjprog.exe like you,I get the some result like you.But if I use &amp;quot;nRFgo Studio&amp;quot;,it can&amp;#39;t read anything at SoftDevice region when I erase the 12th page.You can have a try.thank you for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why MBR is erased when I erase or write the SorfDevice with 1kB at address 0x3000?</title><link>https://devzone.nordicsemi.com/thread/26095?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2015 11:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c5ff5a1-f8a3-41cb-b89a-fc2dba9f0c28</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;i used nrfjprog to erase 12th page and it worked fine. Deleted just 12th page and did not delete anything else. I am attaching snapshot in my answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why MBR is erased when I erase or write the SorfDevice with 1kB at address 0x3000?</title><link>https://devzone.nordicsemi.com/thread/26097?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2015 13:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:748c41ff-8281-479c-896b-d70d5965d241</guid><dc:creator>tany0699</dc:creator><description>&lt;p&gt;I use the tool &amp;quot;nrfjprog.exe&amp;quot; to erase 12th page(start at 0x3000),and I use the MBR API :&lt;/p&gt;
&lt;p&gt;static uint32_t dfu_copy_sd( uint32_t * src, uint32_t * dst, uint32_t len)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_mbr_command_t sd_mbr_cmd;

sd_mbr_cmd.command            = SD_MBR_COMMAND_COPY_SD;
sd_mbr_cmd.params.copy_sd.src = src;
sd_mbr_cmd.params.copy_sd.dst = dst;
sd_mbr_cmd.params.copy_sd.len = len / sizeof(uint32_t);

return sd_mbr_command(&amp;amp;sd_mbr_cmd);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;to write 1kB data into 12th page(start at 0x3000), all this two ways the MBR is erased,why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why MBR is erased when I erase or write the SorfDevice with 1kB at address 0x3000?</title><link>https://devzone.nordicsemi.com/thread/26094?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2015 12:51:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dd21489-377f-4b6e-bf3f-65b89eb09828</guid><dc:creator>tany0699</dc:creator><description>&lt;p&gt;I use the tool &amp;quot;nrfjprog.exe&amp;quot; to erase 12th page(start at 0x3000),and I use the MBR API :
static uint32_t dfu_copy_sd(uint32_t * src, uint32_t * dst, uint32_t len)
{
sd_mbr_command_t sd_mbr_cmd;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_mbr_cmd.command            = SD_MBR_COMMAND_COPY_SD;
sd_mbr_cmd.params.copy_sd.src = src;
sd_mbr_cmd.params.copy_sd.dst = dst;
sd_mbr_cmd.params.copy_sd.len = len / sizeof(uint32_t);

return sd_mbr_command(&amp;amp;sd_mbr_cmd);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}
to write 1kB data into 12th page(start at 0x3000), all this two ways the MBR is erased,why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why MBR is erased when I erase or write the SorfDevice with 1kB at address 0x3000?</title><link>https://devzone.nordicsemi.com/thread/26093?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2015 12:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4e882e7-3046-40ba-8f58-1e89be1cf857</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;how are you erasing or writing to the softdevice?&lt;/p&gt;
&lt;h2&gt;update:&lt;/h2&gt;
&lt;p&gt;nrfjprog works normally&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3681.Capture.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>