<?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>Does the MBR decide not to copy a new bootloader if it&amp;#39;s identical to the old one?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6971/does-the-mbr-decide-not-to-copy-a-new-bootloader-if-it-s-identical-to-the-old-one</link><description>I want to confirm with Nordic staff that the MBR compares the new bootloader with the one it will replace when executing SD_MBR_COMMAND_COPY_BL. It seems that after a comparison, the MBR will only erase and copy if the two are different. Is this correct</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 May 2015 19:20:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6971/does-the-mbr-decide-not-to-copy-a-new-bootloader-if-it-s-identical-to-the-old-one" /><item><title>RE: Does the MBR decide not to copy a new bootloader if it's identical to the old one?</title><link>https://devzone.nordicsemi.com/thread/24591?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 19:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b8ef247-f49c-4382-b74c-e434fb924017</guid><dc:creator>Moloch</dc:creator><description>&lt;p&gt;No worries, thanks for getting me an answer!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the MBR decide not to copy a new bootloader if it's identical to the old one?</title><link>https://devzone.nordicsemi.com/thread/24588?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 07:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecf5ab1b-96bb-44ac-9347-a2ea31e78569</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;you were right, it does compare, I will edit my answer. Sorry about that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the MBR decide not to copy a new bootloader if it's identical to the old one?</title><link>https://devzone.nordicsemi.com/thread/24590?ContentTypeID=1</link><pubDate>Mon, 18 May 2015 20:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7456b72-6011-4ccd-a6b6-25906398ace9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;i was told by one of the experts that it should not compare it because we wanted to keep the operation simple. I will look into the MBR code tomorrow and find out to rule out the uncertainty&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the MBR decide not to copy a new bootloader if it's identical to the old one?</title><link>https://devzone.nordicsemi.com/thread/24589?ContentTypeID=1</link><pubDate>Mon, 18 May 2015 19:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d62a120e-03f2-46b0-83a5-b11d841d218f</guid><dc:creator>Moloch</dc:creator><description>&lt;p&gt;Are you positive? The behavior I&amp;#39;m seeing is the opposite --the Nordic MBR (SD 7.1.0) only copies the new BSL if it differs from the old one.&lt;/p&gt;
&lt;p&gt;The reason I ask is because I use the last 1k flash page of my BSL like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;--------------------------------- &amp;lt;-- End of page
|Settings that should be erased |
|    when the BSL is updated    |
---------------------------------
|     Last part of BSL code     |
|                               |
|                               |
--------------------------------- &amp;lt;- Start of page
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But those settings atop the BSL code don&amp;#39;t seem to change when the &amp;quot;new&amp;quot; BSL is identical to the resident BSL. However, in an experiment, I&amp;#39;ve found that changing a few of the new BSL&amp;#39;s bytes (in a different flash page than the one above) caused the settings to get erased as I would expect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the MBR decide not to copy a new bootloader if it's identical to the old one?</title><link>https://devzone.nordicsemi.com/thread/24587?ContentTypeID=1</link><pubDate>Mon, 11 May 2015 14:20:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b94e54f-8c33-4dee-a59c-4b861b026fe0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;h2&gt;Complete answer EDIT&lt;/h2&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SD_MBR_COMMAND_COPY_BL, does compare the old image with the new image. This is required because of the internals of how this copy is done.&lt;/p&gt;
&lt;p&gt;The SD_MBR_COMMAND_COPY_SD, command does NOT compare the old image with the new image.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>