<?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>Upgrade SDK11 to SDK15 - MBR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53030/upgrade-sdk11-to-sdk15---mbr</link><description>Hi, I&amp;#39;m using this post to upgrade from SDK 11.0 to SDK 15.3. 
 All goes well, until I uploaded an application: then I get a hardfault somewhere at fds_init(). 
 
 I found that I can &amp;quot;fix&amp;quot; this by copying the SDK 15.3 MBR to the updated device. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Oct 2019 08:07:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53030/upgrade-sdk11-to-sdk15---mbr" /><item><title>RE: Upgrade SDK11 to SDK15 - MBR</title><link>https://devzone.nordicsemi.com/thread/214288?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 08:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77c799d0-85f3-442d-b76b-4cda0f601bae</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;For archiving reasons: it went wrong because we used to run:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;objcopy -Iihex -Obinary s132_nrf52_2.0.0_softdevice.hex softdevice_mainpart.bin&lt;/p&gt;
&lt;p&gt;which fills gaps with 00. It should&amp;#39;ve been:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;objcopy --gap-fill 0xFF -Iihex -Obinary s132_nrf52_2.0.0_softdevice.hex softdevice_mainpart.bin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade SDK11 to SDK15 - MBR</title><link>https://devzone.nordicsemi.com/thread/214273?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 07:20:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8db8cdab-1201-463a-abc4-81dd7c8dbb5f</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;I think something went wrong when i uploaded the SDK11 softdevice, if I use nrfjprog, the end of the page are all FF instead of 00, so then my whole problem is gone.&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade SDK11 to SDK15 - MBR</title><link>https://devzone.nordicsemi.com/thread/214212?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 15:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aecb22cf-19da-4bc0-86e3-3262474ed6d7</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Seems you&amp;#39;re at the right track: m_fs.end_addr = 0, so m_fs.start_addr becomes a very large number.&lt;/p&gt;
&lt;p&gt;The reason end_addr is 0, is because BOOTLOADER_ADDRESS = 0&lt;/p&gt;
&lt;p&gt;Which is 0, because the old MBR ends with all 00s instead of FFs, so MBR_BOOTLOADER_ADDR = 0&lt;/p&gt;
&lt;p&gt;Is that correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade SDK11 to SDK15 - MBR</title><link>https://devzone.nordicsemi.com/thread/214152?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 12:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a86d27b4-6e66-44b6-a3ba-119f43343be6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bart,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume the hardfault inside fds_init() is with the application, not related to the bootloader code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think the MBR would affect the fds, however it could be the issue with where the fds/fstorage flash area should be located. The fstorage flash area usually located right under the bootloader as calculated with&amp;nbsp;flash_end_addr().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may want to step into the code and check what&amp;nbsp;flash_end_addr() return.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also if the area that the fstorage located has some data from the previous application that doesn&amp;#39;t fit with fds it will throw some error, most likely&amp;nbsp;FDS_ERR_NO_PAGES, you may want to double check.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>