<?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>Bootloader returns same address for Bank0 and Bank1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109531/bootloader-returns-same-address-for-bank0-and-bank1</link><description>Hi, 
 I want to update my nrf device via OTA update. I configured it for dual bank update in sdk_config.h of my bootloader project: 
 
 I noticed, that the update with the nrf connect app invalidates the current application in bank 0 if I disconnect the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Mar 2024 06:56:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109531/bootloader-returns-same-address-for-bank0-and-bank1" /><item><title>RE: Bootloader returns same address for Bank0 and Bank1</title><link>https://devzone.nordicsemi.com/thread/475812?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 06:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eed062d-e05c-4b3e-bc94-d166bf2a7720</guid><dc:creator>ilockit_CFR</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;thanks for your hints.&amp;nbsp;I mistakenly created the bootloader settings with&amp;nbsp;the bootloader hex file. Now, as I created it for the application file the size of bank 0&amp;nbsp;is correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader returns same address for Bank0 and Bank1</title><link>https://devzone.nordicsemi.com/thread/475669?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 13:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d3c5532-e33b-486b-9800-c2c92b496f96</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Christian,&lt;/p&gt;
&lt;p&gt;How did you program the application on bank0? Did you transfer it via DFU? Did you program it directly? If so, did you generate and program bootloader settings for your application?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader returns same address for Bank0 and Bank1</title><link>https://devzone.nordicsemi.com/thread/475585?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 09:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:738a6a49-49aa-4037-94e7-b9bbbdb07855</guid><dc:creator>ilockit_CFR</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;there was an application present when I checked the start address of bank 1, but I checked it too early. When I check it right before&amp;nbsp;loop_forever() in nrf_bootloader.c I will get the following results:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;debug&amp;gt; app: nrf_dfu_bank0_start_addr() = 0x27000
&amp;lt;debug&amp;gt; app: nrf_dfu_bank1_start_addr() = 0x30000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now it&amp;#39;s different, but my application in bank 0 is bigger than 0x9000 bytes, which causes an overwriting of the main part of the application. So the question remains, where do I set the size of bank 0, because the actual size is not correct?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Christian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader returns same address for Bank0 and Bank1</title><link>https://devzone.nordicsemi.com/thread/475391?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 12:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:724644ac-c3f3-4733-8e94-ae0d2d3aecf5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]bank1 is&amp;nbsp;bank0_addr + s_dfu_settings.bank_0.image_size.[/quote]
&lt;p&gt;That is correct. If this image size is 0, then they will have the same address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there an application (in addition to the bootloader) present when you checked and got the same address for bank0 and 1? I guess there was not. If there is an application present, it would set the start of bank 1 directly after the end of bank0, since these are dynamic. So when no image is present in bank0, it doesn&amp;#39;t really make sense to talk about the location and size of bank1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When an application image is present in bank0, then the bootloader will use the address and size of bank1 to determine whether it can store the new application image in bank1 (so that it can fall back to bank0 in case the transfer fails in some way), or if it needs to delete the application in bank0 before starting the transfer of the new application image, and store it directly to bank0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>