<?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>Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67422/cannot-update-zip-file-after-enabling-dfu</link><description>Hi, 
 I am using sdk_17 and nrf52810. I have build a bootloader from the examples folder(examples/dfu/secure_bootloader/pca10040e_S112_ble) for my device. After flashing, the device enters into dfu mode. When I select the required zip package from my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Oct 2020 13:15:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67422/cannot-update-zip-file-after-enabling-dfu" /><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/277605?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 13:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f0ba97f-4ac6-4fdd-a772-e22c391e6fbf</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks. I have tested your projects and see the same as you. Upgrade fails with an INSUFFICIENT RESOURCES&amp;nbsp;error. This is unexpected, as the app clearly fits. I verified on a different project with a debug&amp;nbsp;bootloader that putting data in the last available page before the app data reserved&amp;nbsp;can work with the SDK 17 bootloader, and I do not see what is different in your case.&lt;/p&gt;
&lt;p&gt;Debugging it is a bit difficult as it is a tight fit and the bootloader is built with size optimization, so I have not made progress in understanding what causes this issue yet.&lt;/p&gt;
&lt;p&gt;Regarding reducing the reserved app data to 4 kB, this will not work if the application use FDS. FDS needs at least two pages - 8 kB (1 swap page and 1 data page).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/277572?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 10:42:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dd2a81a-22e5-4201-ab87-8d267eadcb63</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;go to-&amp;gt;E:~\nRF5_SDK_17.0.2_\examples\dfu\secure_bootloader\pca10040e_s112_ble\ses for bootloader project.&lt;/p&gt;
&lt;p&gt;And go to-&amp;gt;~\nRF5_SDK_17.0.2_\examples\ble_peripheral\ble_app_buttonless_dfu\pca10040e\s112\ses for application project file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/277571?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 10:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e276d2-6b7a-42e8-99ee-5e1731b9e969</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;oops.. my mistake. Complete project-&amp;gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF5_5F00_SDK_5F00_17.0.2_5F00_.zip"&gt;devzone.nordicsemi.com/.../nRF5_5F00_SDK_5F00_17.0.2_5F00_.zip&lt;/a&gt;.And can you tell me the use of Application data area present above the application layer. By default it takes 8kB from the flash. I tried to reduce it to 4kB. Then I was able to update the application zip file, but after the update the device is not responding. From the nrf document I came to know that the application data size should be a multiple of the flash page size, which is 4kB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/277530?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 08:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6f58954-efdd-433b-86a3-4d6bd6cff64d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you include everything used in the bootloader project, not just the project files itself? I am&amp;nbsp;particularly interested in the bootloader&amp;#39;s sdk_config.h, but other parts may also be relevant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/277439?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 15:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0be0fa14-ffc7-4593-96e1-043f229ef666</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;This is my project file-&amp;gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ses.rar"&gt;devzone.nordicsemi.com/.../ses.rar&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/277431?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 14:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70de53bb-7b7f-4cd8-b58e-c26525901c2b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. This app should fit based on what you write. Can you share your bootloader project so that I can double check the configuration? If there is a problem with the&amp;nbsp;NRF_DFU_APP_DATA_AREA_SIZE for instance, so that this is larger than you intend, then that could explain this. If not, this should be OK (this is handled by the nrf_dfu_cache_prepare() function in the bootloader).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/277280?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 06:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b2d0ab9-b4d5-4331-b306-5807b8daa816</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;Yes, you are right, 60kB is enough. My application size is 55kB and it should fit perfectly. I am updating only the application and it does not include any SoftDevice. I&amp;#39;ll include my application hex file for your reference here.(&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5417.ble_5F00_app_5F00_buttonless_5F00_dfu_5F00_pca10040e_5F00_s112.hex"&gt;devzone.nordicsemi.com/.../5417.ble_5F00_app_5F00_buttonless_5F00_dfu_5F00_pca10040e_5F00_s112.hex&lt;/a&gt;&amp;nbsp;this is not the exact example code of buttonless dfu application. I have added an ADC feature along with it.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/277164?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 14:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:348c3be1-6481-4720-a881-e56114967d9c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. Your bootloader starts at&amp;nbsp;0x2A000 and you have two pages reserved for user data before that, starting at 0x28000? And the size of S112 7.2.0 is 1000 kB, so the application start ddress is 0x19000. In sum this means that the maximum size of your application is 0xF000 – 60 kB, as you write. That should fit.&lt;/p&gt;
&lt;p&gt;Can you confirm that you are only trying to update the application, or does the upgrade image also include a SoftDevice and/or bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/277032?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 08:08:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fe0864e-fa09-42e8-b58a-dfb0c6e311bf</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;From the nordic infocenter(&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf52%2Fstruct%2Fnrf52.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf52%2Fstruct%2Fnrf52.html&lt;/a&gt;) I came to know about the 0x00028000 address.&amp;nbsp;NRF_DFU_APP_DATA_AREA_SIZE is 8192. I&amp;#39;ll share you my hex files for your clarification.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_buttonless_5F00_dfu_5F00_pca10040e_5F00_s112.hex"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_buttonless_5F00_dfu_5F00_pca10040e_5F00_s112.hex&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/secure_5F00_bootloader_5F00_ble_5F00_s112_5F00_pca10040e.hex"&gt;devzone.nordicsemi.com/.../secure_5F00_bootloader_5F00_ble_5F00_s112_5F00_pca10040e.hex&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/276624?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 12:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06d0b2bb-ca8f-45a3-83c1-9d24b11172eb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Where does the limit of 0x00028000 come from? What is the bootloader start address, and how many pages below the&amp;nbsp;bootloader&amp;nbsp;are reserved for application data (configured by NRF_DFU_APP_DATA_AREA_SIZE in the&amp;nbsp;bootloader&amp;#39;s sdk_config.h file)? Perhaps you can share details of your flash memory layout?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/276567?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 08:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc8381ff-1637-42ff-bd83-a376659f3a45</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;No I haven&amp;#39;t configured the&amp;nbsp;&lt;span&gt;NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES&amp;nbsp;macro. Its zero.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From nrf connect programmer tool I can see the memory address maps to verify whether my application size is larger or not. The application starting address is 0x00019000 to 0x000266EF(Limit is 0x00028000), that means my application size is under 60KB and it should fit perfectly.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/276493?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 15:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086c51f1-07d6-4329-a05f-0e953d43ef6e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. Then 0x0103 is the correct ID as you write. My mistake.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;INSUFFICIENT RESOURCES error typically means that there is not enough flash available, so the new firmware cannot fit. If you are updating the application only this means that either the new application is in fact too large to fit, or it is too large to fit with dual bank update, and you have configured the&amp;nbsp;bootloader&amp;nbsp;to force dual bank&amp;nbsp;updates by setting NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES to 1 in the bootloader&amp;#39;s sdk_config.h file.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/276394?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 09:47:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fe2cc69-cce3-4a37-b957-95d50bbabe0c</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/s112_5F00_nrf52_5F00_7.2.0_5F00_softdevice.hex"&gt;devzone.nordicsemi.com/.../s112_5F00_nrf52_5F00_7.2.0_5F00_softdevice.hex&lt;/a&gt;&amp;nbsp;This is the SD version I am using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/276365?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 08:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:391e8823-d181-4f48-92d9-0558c27f9b5a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;0x103 is not a valid ID (too large). Which exact SoftDevice version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/276227?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 13:34:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9156dc16-23d6-469d-9815-0a942483a163</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;Yes, what you have said is right. I have verifies the SD ID using &amp;quot;nrfjprog --memrd 0x300c&amp;quot; command and it returned &amp;quot;0x0000300C: FFFF0103&amp;quot;, which means the ID is &amp;quot;0x103&amp;quot;. I generated the DFU package using this ID. Now the nRF Connect is throwing &amp;quot;INSUFFICIENT RESOURCES&amp;quot; as error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/276200?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 12:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b95683e2-02ce-4f8f-a62b-216070698895</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This means that the SoftDevice ID you require (0xC4) is not the ID of the SoftDevice that is currently flashed to the board. You either use/add the ID of the currently used SoftDevice id to the --sd-req option (if compatible), or include the SoftDevice in the ugpradei mage as well. (Note that if you need to update to a new SoftDevice you also need to update the bootloader, as it has dependencies on the SoftDevice.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/276191?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 12:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd67f0eb-171a-4eb5-91c9-825decc557e9</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;The logs from my mobile app indicates-&amp;gt;&lt;/p&gt;
&lt;p&gt;[DFU]Remote DFU error:&lt;/p&gt;
&lt;p&gt;EXTENDED ERROR&lt;/p&gt;
&lt;p&gt;[DFU]Details: SD version failure&lt;/p&gt;
&lt;p&gt;(code =7)&lt;/p&gt;
&lt;p&gt;I have also checked the version of the softdevice(S112) its 0xc4.&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfutil pkg generate --hw-version 52 --application-version 1 --application ble_app_template_pca10040e_s112.hex --sd-req 0xc4 --key-file private.key app_dfu_package.zip&amp;quot;&lt;/p&gt;
&lt;p&gt;This is the command that I have used to generate the zip file.&lt;/p&gt;
&lt;p&gt;And I have also tried this nrf52832 EVK board as well, but the result remains the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot update zip file after enabling dfu</title><link>https://devzone.nordicsemi.com/thread/276178?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 12:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aff95c0f-8dcd-4836-9aa2-aade780e7510</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you share the log from nRF Connect on mobile (or other), which could indicate the issue? It is sometimes also very useful to see the RTT log from the bootloader, but to get that you need to flash a debug bootloader project (example bootloader project with the suffix &amp;quot;_debug&amp;quot;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>