<?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>DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101891/dfu-sdk14-1-0-to-17-1-0</link><description>Hello, 
 I am trying to make a DFU over BLE: 
 - old SDK 14.1.0, SD v5.0.0, s132 
 - new SDK 17.1.0, SD v7.2.0, s132 
 - update of all 3 parts: BL, SD and app 
 I created a DFU package using the nrfutil tool, BL + SD in the first step. When starting the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Aug 2023 08:11:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101891/dfu-sdk14-1-0-to-17-1-0" /><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/441303?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 08:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b321a643-09ac-4f92-88a0-7a18fe7dfabd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;br /&gt;No BL setting should not be included in the .zip file.&amp;nbsp;&lt;br /&gt;The BL setting is only used when you want to flash (via a programmer) your application at the same time as the bootloader and the softdevice/MBR.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/441263?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 22:00:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b74021ed-6b34-489a-b6c0-17b9d8efe66b</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;Hung Bui,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the difference in your approach and mine is that in the first step I generate settings and then merge them with the BL hex file, This is why I used settings page in the BL size calculation and also why the bl_size is as it is.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now I am confused how to use settings. It looks you dont use them at all?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;peter&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/441195?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 14:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0f57ce6-f7b4-477e-a6d8-c7b1f11940e8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The new bootloader also have the length of 0xC000 ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH (rx) : ORIGIN = 0x72000, LENGTH = 0xc000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I did a quick test here with both version of the bootloader (SDK v17.1), the non-debug and the debug one.&amp;nbsp;&lt;br /&gt;On the non-debug&lt;/p&gt;
&lt;p&gt;Here is the setting:&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692022072862v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So the bootloader is located from 0x78000 until 0x7E000 with the size of 24576 bytes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I generated the .zip file (test2) the manifest show 23624 bytes so it well within the range.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the debug bootloader :&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692022211420v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The size is 0xd000 = 53248 and the result when generate .zip file (test.zip) is 48088 &amp;lt;53248.&amp;nbsp;&lt;br /&gt;Here is the command I used to generate the .zip file&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil nrf5sdk-tools pkg generate --key-file private.key --softdevice s132_nrf52_7.2.0_softdevice.hex --bootloader secure_bootloader_ble_s132_pca10040.hex test2.zip --hw-version 52 --sd-req 0x0101 --bootloader-version 2

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So the question is why in your case the size of the bootloader in the .zip increased over the actual size of it ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Did you modify the bootloader binary ? Did you change anything with the MBR Param page ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/14082023.zip"&gt;devzone.nordicsemi.com/.../14082023.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/441157?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 12:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec09281d-6990-46f6-b4e6-33e815145e6e</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Please look at&lt;/p&gt;
&lt;p&gt;&amp;nbsp;(Missing Ticket)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/441155?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 12:34:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:173cad41-af48-42ec-b2fb-68eb43a1b557</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Hung Bui,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;both old and new BL start at 0x72000.&lt;/p&gt;
&lt;p&gt;You can see size and location of the new BL:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692015789178v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Th DFU zip json is as follows:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="json"&gt;{
    &amp;quot;manifest&amp;quot;: {
        &amp;quot;softdevice_bootloader&amp;quot;: {
            &amp;quot;bin_file&amp;quot;: &amp;quot;sd_bl.bin&amp;quot;,
            &amp;quot;dat_file&amp;quot;: &amp;quot;sd_bl.dat&amp;quot;,
            &amp;quot;info_read_only_metadata&amp;quot;: {
                &amp;quot;bl_size&amp;quot;: 53340,
                &amp;quot;sd_size&amp;quot;: 149868
            }
        }
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The bl_size = 0x7F000 - 0x72000 + 0x5C = 0xD05C = 53340&lt;/p&gt;
&lt;p&gt;The sd_size is correct SD size.&lt;/p&gt;
&lt;p&gt;I can upload the zip file to a separate private thread (already used for Vidar).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/440998?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 15:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3156b0a8-cbe1-4d52-8672-3dd37bf12cc5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;br /&gt;I&amp;#39;m a little bit confused.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Please let me know:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- The start address of your original bootloader (0x72000 ?)&lt;/p&gt;
&lt;p&gt;- The actual size of your original bootloader (the size of bootloader&amp;#39;s flash when you compile it)&lt;/p&gt;
&lt;p&gt;- The start address of your new bootloader&amp;nbsp; (before your modification) (0x70000 ? )&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- The actual size of your&amp;nbsp;new bootloader (the size of bootloader&amp;#39;s flash when you compile it)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As far as I know BL setting and MBR page is not send via DFU. They are not included in the .zip file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can move the new BL address to upper address but if the size of the BL is not reduced, it will exceed the maximum amount of flash (the celling) and you will have problem when sending it to the old bootloader.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Please also look into the .zip file and find the binary, it tells exactly the size of the bootloader image.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Why can&amp;#39;t you re-build the new bootloader to address 0x72000 ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/440933?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 10:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006faab9-d871-4c2c-aae8-877eca8d7557</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Hung Bui,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I returned back to the former DFU problem I face -&amp;nbsp;NRF_DFU_RES_CODE_INSUFFICIENT_RESOURCES indication at start of the DFU. I identified it fails in the file dfu_req_handling.c, line:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; if (p_init-&amp;gt;bl_size &amp;gt; NRF_MBR_PARAMS_PAGE_ADDRESS - BOOTLOADER_START_ADDR)&lt;br /&gt;{&lt;br /&gt;NRF_LOG_ERROR(&amp;quot;BL too large (SD+BL)&amp;quot;);&lt;br /&gt; return NRF_DFU_RES_CODE_INSUFFICIENT_RESOURCES;&lt;br /&gt; }&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Result of the expression in the if condition is 0x7E000 - 0x72000 = 0xC000. The dfu zip file shows&amp;nbsp;&amp;quot;bl_size&amp;quot;: 53340 that is 0xD05C. This is not the real BL size (around 28kB) but the size from the start address of the BL up to the end of 92 bytes of BL setting page. This I understand that the DFU zip package contains the BL image + MBR page + BL settings page + empty space in between.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In reality there might not be a space problem in this address setting, it is only what BL size is passed and how it is interpreted.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I moved the BL start address to upper addresses, it fixed the DFU error but the BL was placed at the original address 0x72000 but the BL was built for different addresses location (and thus probably it fails).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please, can you advise me how to fix this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanx.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;peter&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/440781?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 14:06:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d7e3d81-7e78-4d81-b2e3-6f3812dfa654</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;br /&gt;It&amp;#39;s normal to have some segmented memory like it showed. It&amp;#39;s because the new image is received on the swap bank and it may cause nRFConnect Programmer to interpret the flash memory like that. You may want to a flash read out and compare with what you have when you flash the SD+BL+APP with a programmer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not so sure why the SD address changed like it showed in the screenshot.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a long discussion so I may not have the overview of what is going on here. But my suggestion is to try testing only with SD+BL and try to update from one SD+BL in old SDK to new SD +BL in new SDK and verify that it work.&amp;nbsp;&lt;br /&gt;After that you can try doing SD+BL then do APP separately , so 2 .zip files and 2 DFU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Only after you can verify that you can do that with no problem, then you can start the process again with SD+BL+APP in one shot.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/440775?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 13:56:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ee7d422-acfd-464e-a4cb-e6a2092d21b3</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;thanx for your feedback. I dont need necessarily to use a different BL address. The reason for that is that the DFU complained&amp;nbsp;&lt;span&gt;NRF_DFU_RES_CODE_INSUFFICIENT_RESOURCES. That I identified it is due to I used lower BL address. When I used a higher BL address, the problem disappeared. This is not my primary problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What I need to resolve is that after a successful&amp;nbsp;BL + SD (process) update I can see the flash memory like you can see on the pictures above and the device is not answering, due to corrupted flash memory and wrong SD size I believe. My question is what can be the reason for flash memory segmented like above although&amp;nbsp;the DFU process passes ok.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;peter&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/440710?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 11:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc82da14-a9e6-4dba-85bb-9eb2453d3244</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;br /&gt;Vidar is away and I will take over his case in the mean time. Sorry for the late response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if you aware but it&amp;#39;s not straight forward to change the BL start address.&amp;nbsp;&lt;br /&gt;It&amp;#39;s stored either in the UICR or in the MBR info page in flash.&amp;nbsp;&lt;br /&gt;It&amp;#39;s written to flash/UICR when you flash the bootloader for the first time and will stay the same after DFU update.&amp;nbsp;&lt;br /&gt;So in your case, you are trying to change the bootloader start address from address 0x72000 (in the&amp;nbsp;old bootloader) to address 0x76000 in new bootloader ?&amp;nbsp;&lt;br /&gt;Can you confirm that ?&amp;nbsp;&lt;br /&gt;If it&amp;#39;s the case you may want to build your new bootloader using the same start address of 0x72000.&amp;nbsp;&lt;br /&gt;If it&amp;#39;s the opposite then it can be more challenging on how we can erase the MBR info page and then write a new start address during the DFU process. This may require an intermittent bootloader&amp;nbsp; and risk of bricking the device. We will try to avoid doing it if possible.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/439986?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 21:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:144612c0-f025-4ddf-be23-7773b9cd188a</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I managed to debug the DFU of BL+SD+app. It showed that it passed ok, resulting in positive result and initiating reset.&lt;/p&gt;
&lt;p&gt;I tried to read back flash memory after the DFU. The image shows how it should look like (left side) and how the flash looks like after DFU (right side).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1691181032113v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;So the flash was mixed up. I can find there BL settings (correct location and size) and BL (wrong location, correct length). SD is correctly located but wrong size. Application is wrongly located and also wrong size.&lt;/p&gt;
&lt;p&gt;I tried to make BL+SD only DFU. The memory image after DFU is as below:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1691353435848v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can see that it is the same as in the BL+SD+app case. The only difference is that the end of the DFU process is correct, no error message.&lt;/p&gt;
&lt;p&gt;In both cases I can see that the BL is placed at 0x72000 address and the size is correct. The project file of the new BL specifies address 0x76000. My understanding was that the nrfutil reads the BL start address from its hex file and uses that one.&lt;/p&gt;
&lt;p&gt;Now I am confused how can I change / specify the new BL start address? But, of course, this is probably only one problem. The other one is why the flash look like it is and SD has a wrong size?&lt;/p&gt;
&lt;p&gt;Thanx.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/439542?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 14:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efa5660c-059c-4216-af49-f5e014b793d7</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;using LED &amp;quot;debugging&amp;quot; of Release version I came to the result. This is the condition that triggers the&amp;nbsp;NRF_DFU_RES_CODE_INSUFFICIENT_RESOURCES, for the DFU_FW_TYPE_SOFTDEVICE_BOOTLOADER case:&lt;/p&gt;
&lt;p&gt;if (p_init-&amp;gt;bl_size &amp;gt; NRF_MBR_PARAMS_PAGE_ADDRESS - BOOTLOADER_START_ADDR)&lt;/p&gt;
&lt;p&gt;Looking into the manifest file I can see that the BL size is really bigger than the old BL size. So I changed the BL start address the opposite way to 0x75000, size to 0x9000 and the DFU started to work.&lt;/p&gt;
&lt;p&gt;Now I am trying to make DFU BL + SD + app in one shot. The transfer works ok but at the end (100%) I am getting an error: DFU failed with error: Connect timed out&lt;/p&gt;
&lt;p&gt;Any idea what to check?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/439519?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 13:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc4ad113-345d-461a-8b3c-59c7633eb718</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I managed to get the bootloader 14.1.0 working in both Release and Debug versions, in SES environment.&lt;/p&gt;
&lt;p&gt;The Release version shows INSUFFICIENT_RESOURCES as the original build.&lt;/p&gt;
&lt;p&gt;The Debug version, I had to change flash memory settings to start at 0x6D000 and size 0x11000 (vs &lt;span&gt;0x72000 and size 0xc000 for Release&lt;/span&gt;) to get it build. Unfortunately, the DFU passes ok, so no break point was triggered. Probably this flash memory change helped to the problem not appear.&lt;/p&gt;
&lt;p&gt;Do you have an idea what to try now?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/439464?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 10:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b35b3f1-5e86-40c4-bb9b-fc204bf8f019</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Sorry, it looks I found the way.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/439462?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 10:21:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15b2f537-3ed0-4548-8e16-a0e64aa1c20d</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;after a break I came back to finalize this problem. I want to debug the BL 14.1.0 as you suggested. As the original project was done in a different environment that I dont have available now, I created a SES project for the bootloader. I used the project file from examples, secured BLE bootloader, debug.&lt;/p&gt;
&lt;p&gt;I can compile successfully the project for Release version. But I am not getting the Debug option in the SES Options. On contrary, I can switch to Debug in the SDK 17.1.0 version of the project.&lt;/p&gt;
&lt;p&gt;I compared both the SES project files but I cant see any difference that could make the Debug option visible.&lt;/p&gt;
&lt;p&gt;Please, can you advise me how to enable the SES project for the Debug option?&lt;/p&gt;
&lt;p&gt;Thanx.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/437240?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 12:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d3f3284-f041-4c9c-9a50-1ef7a4e932f2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi peter,&lt;/p&gt;
&lt;p&gt;Thanks. I looked over the &amp;quot;init&amp;quot; command and the binaries, and I don&amp;#39;t see anything indicating the update should be too big. Next thing I would suggest&amp;nbsp;you try is&amp;nbsp;to debug the bootloader (SDK 14) and place breakpoints at the lines where &amp;#39;NRF_DFU_RES_CODE_INSUFFICIENT_RESOURCES&amp;#39; is returned.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/437230?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 11:47:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64c41043-56b9-4aba-9a07-d54d114b33f6</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;created.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/437226?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 11:41:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de1aea5b-2a28-4a70-a97f-dd90157c8617</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi peter,&lt;/p&gt;
&lt;p&gt;Strange, it should not be a problem to fit the Softdevice in bank 0 (it overwrites the existing application). Can you upload your DFU .zip file here or in a private ticket?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/437223?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 11:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5368e8cc-5aba-455e-a9b3-53dbbdd9bd02</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I changed the start to 0x72000 and size to 0xc000. Rebuild works, also I checked map file, saying 0x72000 __reserved_flash_start__. I created a new package and it gives the same result,&amp;nbsp;&lt;span&gt;INSUFFICIENT_RESOURCES.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can it be SD size related? Or what else to check?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;peter&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/437212?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 11:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c163f27a-ff23-42b0-b74a-d102b9d71f7a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;Yes, this explains the&amp;nbsp;&lt;span&gt;INSUFFICIENT_RESOURCES. It is not possible to safely change the bootloader start address through DFU. Therefore, the solution should be to build the new bootloader with the same start address (i.e. 0x72000) as the old one.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does the project build if you change&amp;nbsp;FLASH_START from 0x70000 to 0x72000?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/437208?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 10:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d205f26-352a-47b2-b7e3-ad3eba85f8d9</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;thanx for your feedback. The old BL has the following settings (.ld file):&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;MEMORY&lt;br /&gt;{&lt;br /&gt; FLASH (rx) : ORIGIN = 0x72000, LENGTH = 0xc000&lt;br /&gt; RAM (rwx) : ORIGIN = 0x20002830, LENGTH = 0xd7d0&lt;br /&gt; &lt;br /&gt; bootloader_settings_page (r) : ORIGIN = 0x0007F000, LENGTH = 0x1000&lt;br /&gt; uicr_bootloader_start_address (r) : ORIGIN = 0x10001014, LENGTH = 0x4&lt;br /&gt; mbr_params_page (r) : ORIGIN = 0x0007E000, LENGTH = 0x1000&lt;br /&gt; uicr_mbr_params_page (r) : ORIGIN = 0x10001018, LENGTH = 0x4&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;The new BL has the following settings (SES project):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;      linker_section_placement_macros=&amp;quot;FLASH_PH_START=0x0;FLASH_PH_SIZE=0x80000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x10000;FLASH_START=0x70000;FLASH_SIZE=0xe000;RAM_START=0x20005968;RAM_SIZE=0xa698&amp;quot;
      linker_section_placements_segments=&amp;quot;FLASH1 RX 0x0 0x80000;RAM1 RWX 0x20000000 0x10000;mbr_params_page RX 0x0007E000 0x1000;bootloader_settings_page RX 0x0007F000 0x1000;uicr_bootloader_start_address RX 0x10001014 0x4;uicr_mbr_params_page RX 0x10001018 0x4&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If I read it correctly then the old BL starts on 0x72000 while the new one on 0x70000 so this could explain not enough space.&lt;/p&gt;
&lt;p&gt;I checked nrfutil settings generate options how to specify BL start address but I dont see it there (only settings address).&lt;/p&gt;
&lt;p&gt;Can you please help me if my understanding is correct and how to fix it.&lt;/p&gt;
&lt;p&gt;Thanx.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;peter&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/437156?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 07:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6458892a-bcc3-4e38-9cad-eeb7d1d2c500</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Peter,&lt;/p&gt;
&lt;p&gt;In this case, since you didn&amp;#39;t get to the second round where the app is updated, the INSUFFICIENT_RESOURCES error indicates that the bootloader is too big for your allocated bootloader region. Please check if the bootloader start address in flash is the same for both the existing and the new bootloader.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/436719?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 11:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27c0cb42-8a8f-4d81-942d-34ef056dc4e8</guid><dc:creator>Peter.J</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Abhijith,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I am sorry, I totally forgot to mention that I am using nRF52832 MCU.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I checked the mentioned tickets and also several others but they dont help. Also, they refer to quite old target SDKs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;peter&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU: SDK14.1.0 to 17.1.0</title><link>https://devzone.nordicsemi.com/thread/436705?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 10:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:984cf510-3d2c-4b6e-97b4-ed9ea78d0462</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you share which Nordic chip or Dk you are trying with?&lt;/p&gt;
&lt;p&gt;Have you checked this below old threads based on the same error you are getting? Please let me know if you have already gone through this and still struggling.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/support-private/support/229834"&gt;https://devzone.nordicsemi.com/support-private/support/229834&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/support-private/support/118198"&gt;https://devzone.nordicsemi.com/support-private/support/118198&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We are very thinly staffed due to summer vacation here in Norway So please expect some delay from my side. Sorry for any inconvenience caused (if any) because of this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>