<?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>Problem with flash overflow when adding BLE DFU on nRF52833</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122068/problem-with-flash-overflow-when-adding-ble-dfu-on-nrf52833</link><description>I&amp;#39;m having trouble enabling BLE DFU on my firmware for the nRF52833. I&amp;#39;m following the steps from the Dev Academy course - FOTA over Bluetooth Low Energy . After adding the following to my prj.conf file: 
 
 And in the sysbuild.conf file: 
 
 I get the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Jun 2025 13:17:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122068/problem-with-flash-overflow-when-adding-ble-dfu-on-nrf52833" /><item><title>RE: Problem with flash overflow when adding BLE DFU on nRF52833</title><link>https://devzone.nordicsemi.com/thread/538554?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2025 13:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56b636eb-244e-4a5b-9f92-500aad7bc24d</guid><dc:creator>zciwor</dc:creator><description>&lt;p&gt;This is very helpful. I will experiment with this. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with flash overflow when adding BLE DFU on nRF52833</title><link>https://devzone.nordicsemi.com/thread/538503?ContentTypeID=1</link><pubDate>Sat, 07 Jun 2025 05:54:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08b2367e-7ad8-46b6-8dc5-0d2b65e0bf1f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The size of the application region is significantly reduced when MCUBoot is enabled in the build. To get the size that will be available to the app, you must first subtract the size of the bootloader (48kB by default)) from the 488 kB currently available to your app. Then, divide the remaining space by 2. This gives you the size of the MCUBoot primary and secondary slot. So, the new application region (mcuboot primary)&amp;nbsp;size = (488k - 48k ) / 2 = 220 kB&lt;strong&gt;,&lt;/strong&gt; and your current app size is 241768 bytes = 236.1 kB.&lt;/p&gt;
&lt;p&gt;Example of a typical memory layout on the nRF52833&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/pastedimage1749274260011v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But we can halve the bootloader footprint&amp;nbsp;by overwriting the default&amp;nbsp;MCUBoot build configuration and disable logging and other things we don&amp;#39;t need. To overwrite the default configuration we can create a folder named &amp;#39;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.1.0-preview1/page/zephyr/build/sysbuild/index.html#zephyr_application_configuration_directory"&gt;sysbuild&lt;/a&gt;&amp;#39; in the project root with the following folder structure:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;project directory&amp;gt;/&lt;br /&gt;├── sysbuild/&lt;br /&gt;│ └── mcuboot/&lt;br /&gt;│&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; └── prj.conf&lt;/p&gt;
&lt;p&gt;Below&amp;nbsp;is an example configuration you can try with. The bootloader region is set to 24kB in this configuration. After adding the sysbuild folder to the project, remember to do a &amp;#39;pristine&amp;#39; build to alllow the build system to detect that the new configuration files have been added.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1638.sysbuild.zip"&gt;devzone.nordicsemi.com/.../1638.sysbuild.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>