<?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>NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42201/nrf52-dfu-zip-generation</link><description>Hi, 
 I want to be able to update the bootloader along with the application via OTA DFU. I know I can&amp;#39;t generate both the application and bootloader in one image/zip so I have to make two different zip packages. 
 I can&amp;#39;t find any guide on how to do that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Mar 2019 13:22:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42201/nrf52-dfu-zip-generation" /><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/177347?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 13:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eb28a4e-2d28-4011-8fbb-293409712e25</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You find the non-debug BLE DFU bootloader project for the nRF52832 DK at &amp;lt;sdk 14.2 folder&amp;gt;\examples\dfu\bootloader_dfu_ble\pca10040&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/176599?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 06:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:511dfbd5-6527-4b03-863e-ed9d54db1c06</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;Yes i have now disabled this. stuck at the same issue. could you provide me the project so i an build on that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/176177?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 12:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98c89d8e-8e3b-4cfc-9d0f-45fff6455692</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The bootloader projects ending in _debug are larger than the non-debug versions. Are you using the non-debug version of the bootloader in both instances, and made sure not to enable any logging?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/175605?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 11:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c81af16-33de-4414-8f6d-8fb61fa1973c</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;I am using Segger Embedded Studio (SES). the optimzation has been set for size so i believe setting it to level 3 or 2 won&amp;#39;t make a difference.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t figure out how the size would change since I actually haven&amp;#39;t changed anything apart from the advertising name just to know the difference. That is it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Seems to me that I am at fault with the zip generation of the bootloader i guess.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/175426?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 15:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c941c52-335c-404c-8d01-e3be6bd26be8</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What toolchain do you use?&lt;/p&gt;
&lt;p&gt;In SES you find the &amp;quot;Optimization Level&amp;quot; setting under Code -&amp;gt; &amp;quot;Code Generation&amp;quot; in the project options. For other toolchains it is typically also in an option tab.&lt;/p&gt;
&lt;p&gt;For adjusting flash settings, see &lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;Adjustment of RAM and Flash memory&lt;/a&gt;. Please note that you need the flash settings for the bootloader not to change when upgrading using DFU. (I.e. old and new bootloader must have the same start address and size in flash.)&lt;/p&gt;
&lt;p&gt;For more on flash placement, see the &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v14-2-0/lib_bootloader?272#lib_bootloader_memory"&gt;Memory layout&lt;/a&gt; section of the bootloader library documentation.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/175229?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 06:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9436455e-399c-4a0f-bdda-374121e2d78f</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;could you kindly suggest how to increase the optimization level and also increase the size of the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/175100?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 15:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5b440d2-8b72-4b74-a3d3-7dbdcf78b01c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/ahmedm"&gt;ahmdm&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;The number of flash pages set aside for the bootloader cannot increase during DFU, so the new bootloader must be within the settings used for the old one. For the bootloader example the limitat is at 24 kB, which is 24576 bytes (0x6000 in hexadecimal.) I see from the zip packet that the size of your new bootloader is 24896 bytes (0x6140 in hexadecimal), so you are overshooting by 320 bytes.&lt;/p&gt;
&lt;p&gt;You might be able to get under 24 kB in size by increasing the optimization level (or set it to optimize for size.) If that is not enough, or you are already getting the smallest possible build, then you have to either remove something from the project or to set aside more space for the bootloader in the first place.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/174932?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 06:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3904018b-fc0d-4375-bb4e-4fe8cfe2b650</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFBP_5F00_dfu_5F00_BL_5F00_package.zip"&gt;devzone.nordicsemi.com/.../DFBP_5F00_dfu_5F00_BL_5F00_package.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am sorry for the extreme delay. Here&amp;#39;s the bootloader image i made. Please give it a view if possible and let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/167735?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 16:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b613b6a5-aac2-4c64-af76-d78853330796</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;SDK 11 used an older version of DFU, so this is not the same question.&lt;/p&gt;
&lt;p&gt;For legacy DFU you should use an older version of nrfutil, see the README.md for &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil"&gt;nrfutil on github&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/167696?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 15:10:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed25ce2d-a6ed-4b35-a9f9-dbba502f5a4e</guid><dc:creator>zhn</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6560.s132_5F00_pca10040.zip"&gt;devzone.nordicsemi.com/.../6560.s132_5F00_pca10040.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;this ia my zip;please check it;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/167694?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 15:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73d3aad8-3a26-4721-b8a7-ddd505e9e5ea</guid><dc:creator>zhn</dc:creator><description>&lt;p&gt;SDK 11 nrfutil 4.0.0;i have the same question;please help;3q&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/167623?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 11:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b302ca-6e37-4efc-8512-ab03d12c7a1a</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am very sorry for the long delay.&lt;/p&gt;
&lt;p&gt;That should be the correct location.&lt;/p&gt;
&lt;p&gt;Can you attach the hex file and the zip file, so that I can have a look at them to see if anything is wrong?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/165340?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 05:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d31edf5f-174c-47d7-875b-451c8bac86cd</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;my sdk version is 14.2 (nRF5_SDK_14.2.0_17b948a). I modified the public/private key and the advertising name only. Rest assured is unchanged. I am using bootloader_secure_ble and not the debug version .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the path:&lt;/p&gt;
&lt;p&gt;nRF5_SDK_14.2.0_17b948a\examples\dfu\bootloader_secure_ble\pca10040\ses\Output\Release\Exe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/165241?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 16:31:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:969126cc-d7dc-43e8-9169-94d74cbe833d</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nrfutil 4.0.0 is the latest release, so that is good. What version of the nRF5 SDK are you using?&lt;/p&gt;
&lt;p&gt;As I asked previously, have you modified the bootloader in any way? &lt;/p&gt;
&lt;p&gt;What bootloader (debug version or not) are you using and from what SDK? (If you provide full path to project file it is easy for me to see what exact version it is.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/165061?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 07:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ea7eb1-1cf3-4dc3-9e1a-c9b4c4db0eca</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;Hi, Thanks for the detailed answer.&lt;/p&gt;
&lt;p&gt;I am using nrfutil 4.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/165005?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 16:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5ddae5a-7c25-4b59-8686-85a1008de507</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The init file is generated when you generate the zip package, yes.&lt;/p&gt;
&lt;p&gt;For an update with just one part (either application, softdevice or bootloader) you should get three files in the zip. There should be a .bin file, which is the binary for the firmware update. There should be a .dat file, which is the init packet. There should be a manifest.json, which states what kind of update it is, and list the bin file and dat file.&lt;/p&gt;
&lt;p&gt;For an update with several parts, there will be a .bin and .dat file pair for each part of the update. Then the manifest.json will tell what files belong to what part.&lt;/p&gt;
&lt;p&gt;So in short, if you generate the zip package using nrfutil then you should be good. What version of nrfutil are you using?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/164823?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 08:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46e73ed7-c82e-49a8-b277-b33e833008a0</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;I don&amp;#39;t know how to generate the init packet. i have found a couple of guide but it isn&amp;#39;t clear to me. could you please help. I though the init file is the manifest one when generating the zip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/164665?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 10:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:383b9a3e-26dd-49c0-991d-50f436c5ceed</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First, yes, you must perform two separate DFU updates.&lt;/p&gt;
&lt;p&gt;INSUFFICIENT_RESOURCES on the bootloader most likely means that the new bootloader is larger than the previous one, so there is not enough space within the flash area designated for the bootloader. Have you modified the bootloader, or are you built the debug version? See the thread&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/26094/bootloader-update-fails-insufficient_resources"&gt;Bootloader Update fails (INSUFFICIENT_RESOURCES)&lt;/a&gt; for more details.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/164255?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 13:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce10952c-739e-402c-b073-00bf1a557bb1</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;i get this error:&lt;/p&gt;
&lt;div&gt;
&lt;div class="core-log-viewer"&gt;
&lt;div class="core-infinite-log"&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;&lt;em&gt;DFU failed with error: When writing &amp;#39;EXECUTE&amp;#39; command to Control Point Characteristic of DFU Target: Operation code 4 (EXECUTE) failed on DFU Target. Result code 4 (INSUFFICIENT_RESOURCES).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I made the zip for the bootloader using this command:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfutil pkg generate --hw-version 52 --bootloader-version 2 --bootloader secure_dfu_ble_s132_pca10040.hex --sd-req 0x9D --key-file private.key app_dfu_bootloader.zip&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;
&lt;div style="padding-left:30px;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core-side-panel"&gt;
&lt;div id="discoveredDevicesContainer"&gt;
&lt;div&gt;
&lt;h4&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class="device"&gt;
&lt;div class="top-bar"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/164248?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 12:47:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2e97ff8-886a-4041-ac84-0dab37dad188</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;Do I have to perform two separate DFU updates then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DFU ZIP Generation</title><link>https://devzone.nordicsemi.com/thread/164246?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 12:44:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cfba0bb-1cd9-4f1e-8f41-9f1245dfb1ee</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Then you must make two different zip packages, one for the bootloader and one for the application. Then do the updates after each other, first bootloader then application.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>