<?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>Dualbank to Singlebank via BLE DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12294/dualbank-to-singlebank-via-ble-dfu</link><description>I currently have a dualbank bootloader setup and I&amp;#39;m trying to change it to singlebank. If I burn the singlebank bootloader with the jlink it works fine, but if I use the old dualbank bootloader to update itself to the new singlebank hex, then it doesn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 06 Mar 2016 18:51:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12294/dualbank-to-singlebank-via-ble-dfu" /><item><title>RE: Dualbank to Singlebank via BLE DFU</title><link>https://devzone.nordicsemi.com/thread/46487?ContentTypeID=1</link><pubDate>Sun, 06 Mar 2016 18:51:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56ddbd90-17c0-4743-afab-ef620bbe3e54</guid><dc:creator>UncleGravity</dc:creator><description>&lt;p&gt;Nevermind, I found the problem. I had not looked into the return values of SD_MBR_COMMAND_COMPARE.    It works now!  I changed the code in my question to show the working code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dualbank to Singlebank via BLE DFU</title><link>https://devzone.nordicsemi.com/thread/46486?ContentTypeID=1</link><pubDate>Sun, 06 Mar 2016 18:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93aee701-835f-4d7a-bbf2-7b1bb28a7e8b</guid><dc:creator>UncleGravity</dc:creator><description>&lt;p&gt;Thanks for the quick reply, Vidar.  I edited the original question with my attempt at modifying dfu_bl_image_validate() but it still doesn&amp;#39;t work.  Perhaps I misunderstood your answer.  Am I missing something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dualbank to Singlebank via BLE DFU</title><link>https://devzone.nordicsemi.com/thread/46485?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2016 13:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fd7c309-21d8-4bb7-be6b-4ebcf4daa54e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The problem with updating the bootloader from dual- to single bank through bootloader DFU is that the new bootloader expects swap to be at the start of BANK0, while it&amp;#39;s actually loaded to BANK1 by the old bootloader. What happens then is that the new bootloader updates itself with whatever data located in BANK0 using the MBR.&lt;/p&gt;
&lt;p&gt;The fix is to modify the dfu_bl_image_validate() function in dfu_single_bank.c run verification on both addresses (BANK0 and BANK1). This stops the dfu_bl_image_swap() function from being called twice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>