<?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 for nRF9160 with max possible image size</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119716/dfu-for-nrf9160-with-max-possible-image-size</link><description>Hello, I develop the dfu for my application. I started testing the dfu process with maximum image size that I can build and I need some help here. 
 Here is my pm_static.yml: 
 
 I had to limit the imgtool max slot size to 4kB less than mcuboot secondary</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Mar 2025 10:16:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119716/dfu-for-nrf9160-with-max-possible-image-size" /><item><title>RE: DFU for nRF9160 with max possible image size</title><link>https://devzone.nordicsemi.com/thread/527116?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 10:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2143693-2c18-46e1-a4c5-90e2177eba4c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p style="margin:0;padding:0;text-align:left;"&gt;In my experience, static partitioning is very often the source of the error. And it is often not required.&lt;/p&gt;
&lt;p style="margin:0;padding:0;text-align:left;"&gt;I always recommend using dynamic partitioning, with the two exceptions:&lt;/p&gt;
&lt;ol style="list-style-type:decimal;margin:0;text-align:left;"&gt;
&lt;li&gt;Static partitioning is&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader_partitioning.html#static_partition_requirement_for_dfu" rel="noopener noreferrer" target="_blank"&gt;required for DFU&lt;/a&gt;. So for your release, copy build/partitions.yml to pm_static.yml. Then you do not have to calculate sizes manually, but instead just freeze the already dynamically partitioned partitioning.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;To add a custom partition. For this, do not statically partition all the device memory if it can be avoided. Instead, add only the custom partition to pm_static.yml. The dynamic partitioning will then add other partitions &amp;quot;around&amp;quot; (technically just before or after) the custom partition.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Try to not use static partitioning, and see if your project works then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU for nRF9160 with max possible image size</title><link>https://devzone.nordicsemi.com/thread/527083?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 06:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a9b819b-bf76-4553-9fb0-bb74889f75ad</guid><dc:creator>tdfilip</dc:creator><description>&lt;p&gt;1. NCS 2.9.0&lt;br /&gt;2.&amp;nbsp;Custom project&lt;br /&gt;3. Custom hardware - using&amp;nbsp;w25q01jv as external flash&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Filip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU for nRF9160 with max possible image size</title><link>https://devzone.nordicsemi.com/thread/526986?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 14:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f977daf5-cda5-46f2-be44-42f1fb844e51</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p style="margin:0;padding:0;text-align:left;"&gt;For us to help you with this in the best possible way, please list the following information:&lt;/p&gt;
&lt;ul style="list-style-type:disc;margin:0;text-align:left;"&gt;
&lt;li&gt;SDK Version&lt;/li&gt;
&lt;li&gt;Which sample do you use, if any?&lt;/li&gt;
&lt;li&gt;Do you use custom hardware or the DK?&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0;padding:0;text-align:left;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;padding:0;text-align:left;"&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>