<?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>dual bank DFU is redundancy?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33317/dual-bank-dfu-is-redundancy</link><description>I try dual bank DFU on nrf52832+SDK15.0.0. 
 After extract new image to dst_addr(run image_copy), 
 DFU run nrf_dfu_settings_write(). 
 nrf_dfu_settings_write() is run, nrf_dfu_flash_erase() and nrf_dfu_flash_store(). 
 When happen &amp;#39;RESET&amp;#39; between nrf_dfu_flash_erase</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Apr 2018 15:18:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33317/dual-bank-dfu-is-redundancy" /><item><title>RE: dual bank DFU is redundancy?</title><link>https://devzone.nordicsemi.com/thread/130005?ContentTypeID=1</link><pubDate>Thu, 26 Apr 2018 15:18:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea0bd94d-15f4-49aa-b70e-0b99d5bc8be7</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;OK.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dual bank DFU is redundancy?</title><link>https://devzone.nordicsemi.com/thread/129964?ContentTypeID=1</link><pubDate>Thu, 26 Apr 2018 12:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3dd6259-22a2-4f96-add2-a535fd2c6ba5</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;The bootloader does not have a recovery feature in that sense. If the bootloader setting is blank or the crc fails (crc for bootloader setting to verify the write is correct) the bootloader will stay in dfu mode and wait for a new update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dual bank DFU is redundancy?</title><link>https://devzone.nordicsemi.com/thread/129062?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 23:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a6f0997-6cf1-4632-814a-b02ac9366076</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;If, betweeen nrf_dfu_flash_erase() and before nrf_dfu_flash_store(). reset happen.&lt;br /&gt;&lt;br /&gt;Can bootloader run the new application ?&lt;br /&gt;or&lt;br /&gt;bootloader run the DFU operation ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dual bank DFU is redundancy?</title><link>https://devzone.nordicsemi.com/thread/128958?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 11:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd7e15ef-3f75-4df4-917b-a9388278b542</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;The nrf_dfu_settings_write() function writes the bootloader DFU settings to flash. The bootloader settings contains information about the current DFU process, in addition to application &amp;amp; firmware version numbers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) The old bootloader settings application version information is located in&amp;nbsp;the&amp;nbsp;m_dfu_settings_buffer. This buffer gets updated with the new bootloader settings&amp;nbsp;in the&amp;nbsp;nrf_dfu_settings_write() function.&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;nrf_dfu_flash_erase() is executed before&amp;nbsp;nrf_dfu_flash_store().&lt;/p&gt;
&lt;p&gt;3) The bootloader settings (including application version information) are erased&amp;nbsp;during the nrf_dfu_flash_erase() function.&lt;/p&gt;
&lt;p&gt;If you want to know what happens with the application itself, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_bootloader_dfu_banks.html?cp=4_0_0_3_5_1_2_0#lib_bootloader_dfu_dual_bank"&gt;take a look at this link&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dual bank DFU is redundancy?</title><link>https://devzone.nordicsemi.com/thread/128369?ContentTypeID=1</link><pubDate>Sun, 15 Apr 2018 23:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b2fd796-ff39-46e8-ba97-fd12e0f3f647</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;I look at secure_bootloader(pca10040_ble).&lt;br /&gt;&lt;br /&gt;Another words question,&lt;br /&gt;When running nrf_dfu_settings_write().&lt;br /&gt;1. old application information is in m_dfu_settings_buffer only?&lt;br /&gt;2. nrf_dfu_flash_erase() and nrf_dfu_flash_store() run in order?&lt;br /&gt;3. After nrf_dfu_flash_erase() run, where old application information remain?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dual bank DFU is redundancy?</title><link>https://devzone.nordicsemi.com/thread/128186?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 08:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8507162-e869-499c-9582-9de92875d00e</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Are you building your own custom bootloader? Have you taken a look at the code in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/ble_sdk_app_dfu_bootloader.html?cp=4_0_0_4_3_0" target="_blank" rel="noopener noreferrer"&gt;secure_bootloader example&lt;/a&gt; in the latest sdk? If you want to do a dual bank dfu, I would take a look at how the example code does the dfu &amp;amp; base your bootloader on that code. The documentation at &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_bootloader_modules.html?cp=4_0_0_3_5" target="_blank" rel="noopener noreferrer"&gt;this link&lt;/a&gt; might also be helpful. Dual Bank DFU is mainly used as a fail safe so that if the firmware update fails, you can still boot your old application. If you do a single bank dfu, your old application will be erased. So if the DFU fails in a single bank dfu, you do not have a working application anymore. See the documentation I posted for more info regarding this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>