<?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>something about MBR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87677/something-about-mbr</link><description>env: 
 SDK: nRF5_SDK_17.0.2_d674dde 
 KEIL- ARM 
 SoftDevice： s140_nrf52_7.2.0_softdevice 
 
 i can&amp;#39;t understand how MBR jump to bootloader, and how MBR konw the start address about bootloader. 
 or it&amp;#39;s a fixed value at MBR. UICR.NRFFW[0] ,default value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 May 2022 09:18:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87677/something-about-mbr" /><item><title>RE: something about MBR</title><link>https://devzone.nordicsemi.com/thread/366871?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 09:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfa25da7-7e08-4870-a243-405d18a00987</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Grandpa,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The compiler can automatically detect the start address of the bootloader from your configuration using this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#define CODE_START ((uint32_t)&amp;amp;Load$$LR$$LR_IROM1$$Base)&lt;/p&gt;
&lt;p&gt;This CODE_START is assigned to&amp;nbsp;BOOTLOADER_START_ADDR in nrf_bootloader_info.h&lt;/p&gt;
&lt;p&gt;Then the&amp;nbsp;BOOTLOADER_START_ADDR is written to 2 places in flash:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. To UICR (UICR_BOOTLOADER_ADDR address&amp;nbsp;0x10001014)&amp;nbsp; using&amp;nbsp;__attribute__ syntax , see &lt;strong&gt;nrf_bootloader_info.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2. To MBR&amp;nbsp;internal setting page at&amp;nbsp;0xFF8, using a flash write inside&amp;nbsp;nrf_bootloader_mbr_addrs_populate() function in the same file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The MBR internal setting has higher priority compare to the UICR.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Every time you change the start address of the bootloader, make sure you do a chip erase so that these information can be written with a new value.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>