<?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>Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97478/partition-manager-and-device-tree-partitions</link><description>I needed to add my own partition to the primary flash, and was able to do so successfully by adding a section to the device tree partitions. 
 However, when adding MCUBoot, the build would fail. I found that this was due to the build invoking a multi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jun 2024 18:44:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97478/partition-manager-and-device-tree-partitions" /><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/488740?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 18:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f9bf18f-62c9-4526-8ef2-431f934c07e3</guid><dc:creator>liteyear</dc:creator><description>&lt;p&gt;Okay. So people can find&amp;nbsp;the answer if they come across this one, the new ticket is &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/112101/partition-manager-and-device-tree-partitions"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/488703?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 13:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20952c66-b3b6-43e9-98ce-cf9d0124d625</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is an old ticket. Please create a new ticket for your question. Thank you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/488592?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 05:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc619d5b-ce5b-4054-adf6-dce82cd82029</guid><dc:creator>liteyear</dc:creator><description>&lt;p&gt;I&amp;#39;m confused by this too, but I think it&amp;#39;s maybe no longer a concern? In Nov 2022, shortly before the OP, there were a couple of changes addressing Partition Manager support:&lt;br /&gt;&lt;br /&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-mcuboot/commit/f7de93fe96daf9776a7331d2157d33f54e9f526f"&gt;https://github.com/nrfconnect/sdk-mcuboot/commit/f7de93fe96daf9776a7331d2157d33f54e9f526f&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-mcuboot/commit/82ee5d0bb9ac68c14033b102705904ee9991ee3d"&gt;https://github.com/nrfconnect/sdk-mcuboot/commit/82ee5d0bb9ac68c14033b102705904ee9991ee3d&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As far as I can tell now (at least since ncs v2.5.2), if MCUBoot is enabled with&amp;nbsp;CONFIG_BOOTLOADER_MCUBOOT, the build becomes a &amp;quot;Multi-image build&amp;quot;. That &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#partition-manager"&gt;enables&lt;/a&gt;&amp;nbsp;Partition Manager, which makes fixed-partitions in the DTS &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97256/mcuboot-zephyr-and-static-partition-manager/413520"&gt;irrelevant&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;At least when I try it, removing all trace of fixed-partitions results in the same output, and no&amp;nbsp;mention of&amp;nbsp;boot_partition.&lt;br /&gt;&lt;br /&gt;But then that makes comments like this one:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/5c862041c865a7e8c6046b98608078cac852f0d0/boards/nordic/nrf7002dk/nrf5340_cpuapp_partition_conf.dts#L14"&gt;https://github.com/nrfconnect/sdk-nrf/blob/5c862041c865a7e8c6046b98608078cac852f0d0/boards/nordic/nrf7002dk/nrf5340_cpuapp_partition_conf.dts#L14&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;incorrect. So which is it? Does MCUBoot make fixed-partitions necessary, or unnecessary?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/478789?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 13:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfa4cb5d-cfeb-45c9-bed0-538b6af554e1</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is an old ticket. Please create a new ticket for your question. Thank you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/477878?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 16:36:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860d4b01-07b8-4fa2-a099-34cff044d097</guid><dc:creator>sachrmed</dc:creator><description>&lt;p&gt;Manually matching the device tree partitions with the pm_static.yml files is exactly what I do.&lt;/p&gt;
&lt;p&gt;It is rather tedious, so perhaps there&amp;#39;s a way to manage this that I&amp;#39;m not aware of?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/477727?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 08:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cd14db6-d207-4ea5-9c2e-b983927ffea3</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;if MCUboot is compiled before the partition manager runs, then how does it know the locations of the application partitions / slots? Do I have to match the devicetree partition definitions with pm_static.yml?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/416617?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 15:26:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecac415a-da23-4537-be1c-7cb31d38e5e8</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;That is great to hear &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/416609?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 15:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:100b335e-4df2-40b6-8a71-5f25303bbe44</guid><dc:creator>sachrmed</dc:creator><description>&lt;p&gt;Thanks for the reply Marte, and no problem with the delay &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Indeed I have tested it and it seems to be working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/416441?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 08:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82686a6a-b95c-49c3-b3fb-21af0578804e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, that is correct. &lt;br /&gt;I have been out of the office, so I apologize for the delay. Have you been able to test this while I was away?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/415017?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 20:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e57faf4f-a1e7-4301-b532-1155aa5a485a</guid><dc:creator>sachrmed</dc:creator><description>&lt;p&gt;Thank you for the reply Marte!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I suppose all I need in the dts is a simple config like so, and leave the rest to Partition Manager?&lt;br /&gt;&lt;br /&gt;&amp;amp;flash0 {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; partitions {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = &amp;quot;fixed-partitions&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boot_partition: partition@0 {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label = &amp;quot;mcuboot&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg = &amp;lt;0x000000000 0x0000C000&amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;};&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Manager and device tree partitions</title><link>https://devzone.nordicsemi.com/thread/414434?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 15:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df7abad-2d27-428f-ac47-d8e5a66a1846</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When you build a multi-image application, the partitions in devicetree should be ignored.&lt;br /&gt;However, in the case of MCUboot, the MCUboot child image is built before Partition Manager runs, and MCUboot is using boot_partition in the file &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/v1.9.99-ncs3/boot/zephyr/dts.overlay"&gt;bootloader/mcuboot/boot/zephyr/dts.overlay&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If interested, you can add printing to the Partition Manager script, &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.3.0/scripts/partition_manager.py"&gt;nrf/scripts/partition_manager.py&lt;/a&gt;, to see when it runs during the build process (for testing/debugging purposes). As an example, I added the following right before PartitionError:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;print(&amp;quot;------------------&amp;quot;)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;print(&amp;quot;Partition Manager&amp;quot;)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;print(&amp;quot;------------------&amp;quot;)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;After adding this and building, I can see that the Partition Manager script only runs after the MCUboot child image is done building (which you can see from === child image mcuboot - end ===).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>