<?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>dfu_activate_app fail to swap bank 1 to bank 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7414/dfu_activate_app-fail-to-swap-bank-1-to-bank-0</link><description>Hi,
We have being producing ble items with nrf51822 QFAAG , S110 SD 7.0, SDK 6.1, Dual bank DFU.
When updating the application throught Android, the bootloader hangs, because bootloader_app_is_valid returns true, but bank 0 is broken. 
 We did a little</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jun 2015 10:56:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7414/dfu_activate_app-fail-to-swap-bank-1-to-bank-0" /><item><title>RE: dfu_activate_app fail to swap bank 1 to bank 0</title><link>https://devzone.nordicsemi.com/thread/26375?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2015 10:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c160b78-72fc-4fc2-bb65-a87aae2de122</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@knightmare: please correct me if I am wrong, you have modified the dfu_init, so that it set settings.bank_0      = BANK_ERASED; at the begining, regardless if the image is actually tranmistted or not ? Could you explain the purpose for doing that? You won&amp;#39;t be able to fallback to original application if there is smth wrong when updating.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s pretty strange that adding a delay fixed the issue. Please be noted that in our code we will wait (for BOOTLOADER_COMPLETE)  until the pstorage has finished with storing the bootloader setting has finished before it trigger a reset, as in pstorage_callback_handler. And bootloader setting is only stored after we have finished with storing code with  pstorage_raw_store().&lt;/p&gt;
&lt;p&gt;So if you can have a breakpoint at m_update_status = BOOTLOADER_COMPLETE; in pstorage_callback_handler() you can check if bank0 is copied with correct image.&lt;/p&gt;
&lt;p&gt;Could you send us your bootloader, hex file before and after application update ?&lt;/p&gt;
&lt;p&gt;Do you have the same issue with the stock bootloader example  ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu_activate_app fail to swap bank 1 to bank 0</title><link>https://devzone.nordicsemi.com/thread/26374?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2015 04:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70cadbdc-0aa2-47fe-a9ef-185e9b2a4532</guid><dc:creator>knightmare</dc:creator><description>&lt;p&gt;Our device have left no j-link interface to customer, so the failure just sentences the device to death.
We have stopped manufacturing and it will not be restarted until the problem is targeted and solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>