<?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>Get bank1 start address from the application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75035/get-bank1-start-address-from-the-application</link><description>Hello 
 I am doing a project need to implement firmware update from the application 
 and I reference bellow thread, 
 https://devzone.nordicsemi.com/f/nordic-q-a/68368/write-firmware-to-bank-1-from-application/280974#280974 
 I need to write fw to bank1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 May 2021 16:18:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75035/get-bank1-start-address-from-the-application" /><item><title>RE: Get bank1 start address from the application</title><link>https://devzone.nordicsemi.com/thread/309574?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 16:18:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b8b1605-431f-4d37-9fbf-3f4e2292e9d8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you generated the bootloader settings with nrfutil (&lt;span&gt;&lt;a title="Generating and displaying bootloader settings" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=9_7_6"&gt;Generating and displaying bootloader settings&lt;/a&gt;&lt;/span&gt;)?&amp;nbsp; &amp;quot;bank_0.image_size&amp;quot; should contain the size of your current application image in bytes. The function will just return the bank 0 address if this has not been set.&lt;/p&gt;
&lt;p&gt;Function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t nrf_dfu_bank1_start_addr(void)
{
    uint32_t bank0_addr = nrf_dfu_bank0_start_addr();
    return ALIGN_TO_PAGE(bank0_addr + s_dfu_settings.bank_0.image_size);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>