<?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>The partition of nrf5340 audio application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113383/the-partition-of-nrf5340-audio-application</link><description>During my test of the nrf5340 audio application which in the V2.6.0 SDK , Because of i need to store at least 13K data to the flash. 
 But when i build the project, i found the &amp;quot;\build\partitions.yml&amp;quot; file shows that. 
 
 EMPTY_0 : 
 address : 0xfe000</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jul 2024 11:17:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113383/the-partition-of-nrf5340-audio-application" /><item><title>RE: The partition of nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/495800?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 11:17:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e1de18-5641-407a-992c-6dca120072a5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;You always want to use DFU in your app&lt;/p&gt;
&lt;p&gt;=&amp;gt; You must use MCUboot&lt;/p&gt;
&lt;p&gt;=&amp;gt; Partition manager will be enabled&lt;/p&gt;
&lt;p&gt;=&amp;gt; You can use pm_static.yml&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The partition of nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/495730?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 06:10:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d2c197-992a-4129-9d3a-6f2d8e56e18a</guid><dc:creator>huma</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Sigurd&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If i want use the&amp;nbsp;&amp;quot;partitions.yml&amp;quot; file to make a &amp;quot;pm_static.yml&amp;quot; to&amp;nbsp;statically set partitions, should i have to let the&amp;nbsp;&amp;quot;USE_PARTITION_MANAGER&amp;quot; not enabled? I need to find which configuration makes the&amp;nbsp; &amp;quot;USE_PARTITION_MANAGER&amp;quot; enabled, then disable it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much and looking forward to your reply!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The partition of nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/495596?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 10:33:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8e57402-b044-45f1-9fe5-66eddf97c62f</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="huma"]So does this mean that as long as I enable &amp;quot;USE_PARTITION_MANAGER&amp;quot;[/quote]
&lt;p&gt;USE_PARTITION_MANAGER is not user-configurable, but set indirectly by other configurations, such as CONFIG_BOOTLOADER_MCUBOOT.&lt;/p&gt;
[quote user="huma"]So does this mean that as long as I enable &amp;quot;USE_PARTITION_MANAGER&amp;quot; and do not use &amp;quot;pm_datic. yml&amp;quot; to statically set partitions, there may be a situation where the partition position and size will change according to the relevant configuration of my project after each build?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote user="huma"]So may be i can use the &amp;quot;&lt;span&gt;partitions.yml&amp;quot; file to make a &amp;quot;pm_static.yml&amp;quot; to&amp;nbsp;statically set partitions? And if there are no issue of the size, i can modify something in this file too?&lt;/span&gt;[/quote]
&lt;p&gt;Yes. But in my experience it is hard to change parititons manually, cause you must make sure all other partitions change accordingly.&lt;br /&gt; If you for example make a partition bigger, something else have to become smaller. And the math must check out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The partition of nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/495561?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 08:08:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb326a4-3eec-48e5-b1db-c5bc36ab0264</guid><dc:creator>huma</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Sigurd&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;After reading your reply, I think I understand a bit now.&lt;/p&gt;
&lt;p&gt;So does this mean that as long as I enable &amp;quot;USE_PARTITION_MANAGER&amp;quot; and do not use &amp;quot;pm_datic. yml&amp;quot; to statically set partitions, there may be a situation where the partition position and size will change according to the relevant configuration of my project after each build?&lt;/p&gt;
&lt;p&gt;So may be i can use the &amp;quot;&lt;span&gt;partitions.yml&amp;quot; file to make a &amp;quot;pm_static.yml&amp;quot; to&amp;nbsp;statically set partitions? And if there are no issue of the size, i can modify something in this file too?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much and looking forward to your reply!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The partition of nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/495556?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 07:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec6fe18e-9c85-46be-9467-616647d9cc00</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Right, I read wrong for the file-name.&lt;/p&gt;
&lt;p&gt;pm_static.yml will statically freeze your partitioning. When you are done with your project, you can copy build/partitions.yml to pm_static.yml, to make sure partitioning never changes (cause that could break DFU).&lt;/p&gt;
&lt;p&gt;For a custom partition, make pm_static.yml, but only define the one partition you need.&lt;/p&gt;
&lt;p&gt;For other partitions, use Kconfig options, as explained &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html#partition-manager"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To learn more, see our corse over at &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The partition of nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/495522?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 00:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:770c9ff1-7bd4-4ba2-9495-93aaa6fb8e7f</guid><dc:creator>huma</dc:creator><description>&lt;p&gt;Hello Sigurd&lt;/p&gt;
&lt;p&gt;Thank you very much. Your reply is very helpful to me.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You can change the pm_static.yml file though.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I also want to find the yml file, but in the project i can not find any yml files, and i have not enable the DFU, so i think the yml file in dfu folder is not enabled. I am still searching in the SDK folder, but I am still unable to determine which yml file it is, it seems that none of the yml files have been called by this project because the partitions cannot correspond one-to-one with the &amp;quot;partitions. yml&amp;quot; generated in the build folder.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much and looking forward to your reply!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The partition of nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/495440?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 13:40:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b787cf9-4a2e-4f26-a5b5-715ed00c0c29</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user=""]And i found that seems like the project enable the &amp;quot;USE_PARTITION_MANAGER&amp;quot;,&amp;nbsp;which i guess that makes the partition&amp;nbsp;for flash0 in the device tree files invalid.[/quote]
&lt;p&gt;Yep&lt;/p&gt;
[quote user=""]And I can&amp;#39;t find where to adjust the size of these partitions. If i can, I think maybe I can reduce the sizd of app partitions appropriately.[/quote]
&lt;p&gt;If you use static partitioning, it will be exactly like that. You can change the pm_static.yml file though.&lt;/p&gt;
[quote user=""]So if i do not want to use the external flash, what should i do now?[/quote]
&lt;p&gt;You need to get the space from somewhere.&lt;/p&gt;
&lt;p&gt;If you cannot take it from the app, try to use parts of the EMPTY_0 (this is not used for anyhing else), NVS or the setting partition.&lt;/p&gt;
&lt;p&gt;For the last two, you should be a bit careful, but maybe you can do some tests to see how much of them are used in an example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>