<?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 app copy dual bank</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25297/bootloader-app-copy-dual-bank</link><description>Hello, 
 I&amp;#39;m running into trouble when doing a DFU of the app only using Secure Bootloader SDK13. 
 When it uses Bank1, it loads the whole image to the empty space after the current valid app.
When it reboots, I can see that it&amp;#39;s copying the image</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Sep 2017 09:20:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25297/bootloader-app-copy-dual-bank" /><item><title>RE: Bootloader app copy dual bank</title><link>https://devzone.nordicsemi.com/thread/99680?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 09:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb9f030c-95b3-4bf6-b90c-347f673029bd</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I tried reproducing this by starting the WDT in the bootloader during the prevalidate procedure. The WDT reset the device after 10s, but after reconnecting the DFU procedure resumed and the update was successfull. i.e. no missing pages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader app copy dual bank</title><link>https://devzone.nordicsemi.com/thread/99679?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 15:30:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24efaab8-5ac8-4217-be3f-9fe15f6ae2f5</guid><dc:creator>Cyril</dc:creator><description>&lt;p&gt;from nrt_dfu_utils.c::nrf_dfu_app_continue(), nothing happens if crc is wrong. Bank 1 is invalidated even when bank 0 is not correct, but I don&amp;#39;t think that the best way to handle this case.
Something weird also is  that nrf_dfu_mbr_compare is called after each page copy from bank 1 to 0, to make sure data is correctly copied and must return an error if data is not the same... but it doesn&amp;#39;t. Again, my memory dump showed several pages erased but not written. I have to double check if source pages are correct before copy also... maybe they are erased too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader app copy dual bank</title><link>https://devzone.nordicsemi.com/thread/99678?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 15:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a80c53-cff1-4f60-a640-3a7868623975</guid><dc:creator>Cyril</dc:creator><description>&lt;p&gt;Yeah, I explicitly enable the watchdog in the bootloader. It uses the bootloader settings correctly but it doesn&amp;#39;t seem to resume the copy correctly after the reset though (pages are not written). Finally, no, the copy doesn&amp;#39;t restart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader app copy dual bank</title><link>https://devzone.nordicsemi.com/thread/99677?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 15:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fa1b118-a55a-4a68-9b65-26bb4e7ff7a3</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Cyril, if you enable the WDT in the application then you must reload it in the bootloader, but after the reset the bootloader should be able to pick up where it left of by examining bootloader settings. Also doesnt the copy procedure start over when the CRC does not match?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>