<?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>Application partly unresponsive after dual-bank DFU update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75695/application-partly-unresponsive-after-dual-bank-dfu-update</link><description>Dear Nordic, 
 When testing the DFU process, I noticed something unexpected. We are using the secure DFU USB bootloader, with forced dual bank updating. I&amp;#39;ll attach both the application and the bootloader sdk_config.h files below. When uploading a new</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 29 May 2021 11:04:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75695/application-partly-unresponsive-after-dual-bank-dfu-update" /><item><title>RE: Application partly unresponsive after dual-bank DFU update</title><link>https://devzone.nordicsemi.com/thread/312495?ContentTypeID=1</link><pubDate>Sat, 29 May 2021 11:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a59c0227-0cd2-4d89-b152-666c2098a939</guid><dc:creator>GPL</dc:creator><description>&lt;p&gt;Hello Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;I had some trouble recreating this issue as I didn&amp;#39;t have access to the binary that caused the issue at first because&amp;nbsp;it was tested on an external location. So I tried it at home with binaries of the same size &amp;amp; even larger. It turns out then everything works okay. And now that I understand the dual bank process better, the insufficient resources error also makes sense.&lt;/p&gt;
&lt;p&gt;I first flashed the SD and BL, then via DFU uploaded the smaller binary. Confirmed it was working and then update with the bigger binary, causing the issues. If I&amp;nbsp;update to&amp;nbsp;the bigger binary&amp;nbsp;right away (so no previous application present) it also does not work fully. I tried compiling the binaries myself (the others were compiled on an external environment) and everything works okay!&lt;/p&gt;
&lt;p&gt;So I guess&amp;nbsp;something else went wrong caused by the other compilation process. Sorry, I should have done more research first.&lt;/p&gt;
&lt;p&gt;Thank you for your time!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application partly unresponsive after dual-bank DFU update</title><link>https://devzone.nordicsemi.com/thread/312153?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 14:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38bb557-7830-488e-be38-f1c4a8d1f727</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gijs,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please correct me if I&amp;#39;m wrong. What you tested was:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- You flashed the nRF52840 with SD+BL+APP A (App A is relatively small in size)&lt;/p&gt;
&lt;p&gt;- You did DFU to update to APP B (App B has larger size 380kB as you mentioned)&lt;/p&gt;
&lt;p&gt;- The application B only work partly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- You tried to update APP B again but got&amp;nbsp;&lt;span&gt;InsufficientResources error.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If that&amp;#39;s the case what we can suggest you to try is:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Try to test SD+ BL (no application) and do DFU for APP B. Check if APP B works as it should. Try to read hex dump from the chip (nrfjprog.exe --readcode)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;- Repeat your initial step, after you update APP B and it works partially, try to read a hex dump and compare it with the hex at step 1. You can use Notepad++ to compare 2 hex files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You are correct about that if you force dual bank DFU update, the swap bank need to have enough space to receive the new image. This mean your application shouldn&amp;#39;t be bigger than 50% of Bank 0+1 if you want to do another DFU update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s quite strange that the application only works partly, I suspect that&amp;nbsp;the error may related to that you have a bootloader and it may change the behavior of the app (it shouldn&amp;#39;t)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>