<?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>nRF52833 DFU OTA failing due to flash space (MCUboot dual-slot too large)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124440/nrf52833-dfu-ota-failing-due-to-flash-space-mcuboot-dual-slot-too-large</link><description>Hello, 
 I am working with nRF Connect SDK v3.0.2 on nRF52833 and trying to enable DFU over BLE using MCUboot . 
 
 
 I can see the device in the nRF Connect mobile app , connect to it, and attempt DFU. 
 
 
 However, the upload fails with GATT connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Sep 2025 10:56:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124440/nrf52833-dfu-ota-failing-due-to-flash-space-mcuboot-dual-slot-too-large" /><item><title>RE: nRF52833 DFU OTA failing due to flash space (MCUboot dual-slot too large)</title><link>https://devzone.nordicsemi.com/thread/549292?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 10:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6f56206-e635-4d16-8cd7-0c428cfb322b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;No you should be able to update the same application as long as you can flash it on the chip.&amp;nbsp;&lt;br /&gt;The size is already compensate for dual bank update. For example when you look here:&amp;nbsp;&lt;br /&gt;&lt;span&gt;FLASH: 227600 B / 232960 B (97.7%)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It say that your application flash is 227600 byte and it is 97.7% of the mcuboot_primary size (232960).&amp;nbsp;&lt;br /&gt;This doesn&amp;#39;t count the secondary slot. So if you can&amp;#39;t update the same application, there must be something else wrong.&amp;nbsp;&lt;br /&gt;I would suggest to try testing with very simple application, try doing DFU on that first.&amp;nbsp;&lt;br /&gt;Have you followed our Dev Academy guide ?&amp;nbsp;&lt;br /&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/"&gt;academy.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 DFU OTA failing due to flash space (MCUboot dual-slot too large)</title><link>https://devzone.nordicsemi.com/thread/549268?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 07:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7100c3a3-90bf-4427-be52-605aa3419956</guid><dc:creator>Sangam Prajapati</dc:creator><description>&lt;p data-start="260" data-end="500"&gt;Thank you for your answer. I was able to reduce the used flash space from 97% down to 82%. However, I still need to bring it closer to 50%. From what I understand, OTA via DFU mode is only possible if the used flash size is less than 50%.&lt;/p&gt;
&lt;p data-start="502" data-end="678"&gt;I also checked on the Nordic forum and documentation, and found that image compression and &lt;span&gt;external flash are&lt;/span&gt;&amp;nbsp;not supported on nRF52833 &amp;ndash; I&lt;span&gt;mage compression&lt;/span&gt; is only available on nRF54L15, nRF5340, and nRF52840.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p data-start="680" data-end="806"&gt;Could you please suggest what other methods we can apply to reduce the flash usage further?&lt;br /&gt;&lt;br /&gt;Are there any Nordic-specific recommendations or best practices to shrink the application image size further on nRF52833 so that OTA DFU can work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 DFU OTA failing due to flash space (MCUboot dual-slot too large)</title><link>https://devzone.nordicsemi.com/thread/549188?ContentTypeID=1</link><pubDate>Thu, 18 Sep 2025 13:20:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32326a7a-57e9-4740-992a-ca7a79864ad4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sangam,&amp;nbsp;&lt;br /&gt;So what I can see in the partitions.yml is that you have the slot1 configuration as follows:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;mcuboot_secondary:&lt;br /&gt;address: 0x45000&lt;br /&gt;end_address: 0x7e000&lt;br /&gt;placement:&lt;br /&gt;after:&lt;br /&gt;- mcuboot_primary&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The size of the slot is 0x39000=233472.&amp;nbsp;&lt;br /&gt;You will have few hundred bytes less due to over head. But that&amp;#39;s pretty much the limit with the nRF52833.&amp;nbsp;&lt;br /&gt;Please check if your new image exceed this.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You have some some options:&amp;nbsp;&lt;br /&gt;- Follow what I wrote to reduce the size of the image&lt;/p&gt;
&lt;p&gt;- Use external flash.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Try the image compression&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t think the single bank update on NCS will come for nRF52. But for this future feature, you will have to contact our sale representative.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 DFU OTA failing due to flash space (MCUboot dual-slot too large)</title><link>https://devzone.nordicsemi.com/thread/549145?ContentTypeID=1</link><pubDate>Thu, 18 Sep 2025 09:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb245539-b8d7-4924-a167-de9c29248201</guid><dc:creator>Sangam Prajapati</dc:creator><description>&lt;p&gt;Thank so much for your support and valuable answer. Here is the partition.yml&lt;br /&gt;&lt;br /&gt;app:&lt;br /&gt; address: 0xc200&lt;br /&gt; end_address: 0x45000&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x38e00&lt;br /&gt;mcuboot:&lt;br /&gt; address: 0x0&lt;br /&gt; end_address: 0xc000&lt;br /&gt; placement:&lt;br /&gt; align:&lt;br /&gt; end: 0x1000&lt;br /&gt; before:&lt;br /&gt; - mcuboot_primary&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0xc000&lt;br /&gt;mcuboot_pad:&lt;br /&gt; address: 0xc000&lt;br /&gt; end_address: 0xc200&lt;br /&gt; placement:&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; before:&lt;br /&gt; - mcuboot_primary_app&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x200&lt;br /&gt;mcuboot_primary:&lt;br /&gt; address: 0xc000&lt;br /&gt; end_address: 0x45000&lt;br /&gt; orig_span: &amp;amp;id001&lt;br /&gt; - app&lt;br /&gt; - mcuboot_pad&lt;br /&gt; region: flash_primary&lt;br /&gt; sharers: 0x1&lt;br /&gt; size: 0x39000&lt;br /&gt; span: *id001&lt;br /&gt;mcuboot_primary_app:&lt;br /&gt; address: 0xc200&lt;br /&gt; end_address: 0x45000&lt;br /&gt; orig_span: &amp;amp;id002&lt;br /&gt; - app&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x38e00&lt;br /&gt; span: *id002&lt;br /&gt;mcuboot_secondary:&lt;br /&gt; address: 0x45000&lt;br /&gt; end_address: 0x7e000&lt;br /&gt; placement:&lt;br /&gt; after:&lt;br /&gt; - mcuboot_primary&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; region: flash_primary&lt;br /&gt; share_size:&lt;br /&gt; - mcuboot_primary&lt;br /&gt; size: 0x39000&lt;br /&gt;settings_storage:&lt;br /&gt; address: 0x7e000&lt;br /&gt; end_address: 0x80000&lt;br /&gt; placement:&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; before:&lt;br /&gt; - end&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x2000&lt;br /&gt;sram_primary:&lt;br /&gt; address: 0x20000000&lt;br /&gt; end_address: 0x20020000&lt;br /&gt; region: sram_primary&lt;br /&gt; size: 0x20000&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 DFU OTA failing due to flash space (MCUboot dual-slot too large)</title><link>https://devzone.nordicsemi.com/thread/549140?ContentTypeID=1</link><pubDate>Thu, 18 Sep 2025 09:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1d614d9-578d-411f-a074-8101b072b4b8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sangam,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you send us the partitions.yml file in your build folder ?&amp;nbsp;&lt;br /&gt;What did you change in your new firmware compare to old firmware ? Normally the size of slot 1 (where you receive new image) should be equal to the size of slot 0 (where the current image is). If you don&amp;#39;t have significant change in the firmware you should be able to receive the image.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;1. Single slot DFU update is currently not supported in NCS. It is coming but I don&amp;#39;t know when and nRF52 may not be supported.&amp;nbsp;&lt;br /&gt;2.&amp;nbsp;There are a few things you should try:&amp;nbsp;&lt;br /&gt;- Disable unused features and peripherals&lt;br /&gt;For example&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_I2C=n
CONFIG_SPI=n
CONFIG_SERIAL=n
CONFIG_LOG=n
CONFIG_USE_SEGGER_RTT=n
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_STDOUT_CONSOLE=n
CONFIG_PRINTK=n
CONFIG_EARLY_CONSOLE=n&lt;/pre&gt;&lt;br /&gt;- Optimize Bluetooth Stack and Features&lt;/p&gt;
&lt;p&gt;You should optimize the bluetooth stack to only use what you need, for example only peripheral , no PHY update, no extended advertising etc.&amp;nbsp;&lt;br /&gt;- Compiler Optimization Flags&lt;br /&gt;Use compiler optimization flags for size, such as -Os or -Oz&lt;br /&gt;CONFIG_COMPILER_OPT=&amp;quot;-Os&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;- Remove Debugging and Assert Features&lt;br /&gt;&lt;br /&gt;3. Yes&amp;nbsp;compression support in MCUboot helps. It allows the slot 1 to be 70% of slot 0.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>