<?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>Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113220/unable-to-compile-mcuboot-without-specifying-flash-slot0_partition-and-slot1_partition-using-sysbuild</link><description>Hi, 
 I am currently migrating from NCS 2.5.0 to 2.7.0 and running into an issue where the CMakeLists of mcuboot ( https://github.com/nrfconnect/sdk-mcuboot/blob/4c7942e58c5458ce3c4e50d3169e0f865910fe87/boot/zephyr/CMakeLists.txt#L381 ) complains when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Dec 2024 12:01:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113220/unable-to-compile-mcuboot-without-specifying-flash-slot0_partition-and-slot1_partition-using-sysbuild" /><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/513402?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 12:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:616a47f3-a5a7-4f46-b406-8263faa27e74</guid><dc:creator>pcspets</dc:creator><description>&lt;p&gt;I see that that dependency to &amp;#39;slot0_partition&amp;#39; and &amp;#39;slot1_partition&amp;#39; comes from &lt;a href="https://github.com/mcu-tools/mcuboot/pull/1849/files"&gt;this MCUBoot change&lt;/a&gt;. CMake fails if they are not defined. Seems like they are used only for build time flash size check. Not absolutely sure though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/513369?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 09:25:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d6eb6dc-f140-411b-b1d2-2719043c5460</guid><dc:creator>pcspets</dc:creator><description>&lt;p&gt;Do these Devicetree definitins have to match exactly the ones in Partition Manager or are they ignored and needed only to compile successfully?&lt;/p&gt;
&lt;p&gt;For example, if slot1 is actually on the external flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/495813?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 12:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07c9fd01-1a98-4a28-83ac-a300eddb7cdc</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;You probably need to add this just for the compilation to pass.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/495701?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 19:43:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:400eb7ce-dcbb-47b9-af93-748e3bb73697</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;Thanks for the heads up! Yes, I have fixed partitions in the custom board dts. However, I don&amp;#39;t have the&amp;nbsp;slot0_partition&amp;nbsp;and&amp;nbsp;slot1_partition labels (only boot_partition). I am guessing these are probably needed in this case then since the definition you give me uses it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/495691?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 18:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eecf083-f09d-478b-b762-fe963056be7f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The team said&lt;span&gt;&lt;span dir="ltr"&gt;&amp;nbsp;the Audio Application hasn&amp;#39;t been ported to sysbuild yet. Sorry for the mislead.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Since you are mentioning a custom board, I guess you forgot to add fixed-partitions to your custom boards:&lt;/p&gt;
&lt;p&gt;Ref: &lt;a title="https://github.com/nrfconnect/sdk-nrf/blob/63b0986ccbfd6d3c44b48b2c6139764cb384d1c7/boards/nordic/nrf52kbd/nrf52kbd_nrf52832.dts#l65" href="https://github.com/nrfconnect/sdk-nrf/blob/63b0986ccbfd6d3c44b48b2c6139764cb384d1c7/boards/nordic/nrf52kbd/nrf52kbd_nrf52832.dts#L65" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/blob/63b0986ccbfd6d3c44b48b2c6139764cb384d1c7/boards/nordic/nrf52kbd/nrf52kbd_nrf52832.dts#L65&lt;/a&gt; we do have these for all the boards in Zephyr.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/495518?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 23:01:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ed4295-ab8b-4549-8bca-6af0f6396d54</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;No worries! I am currently trying to build the Audio Application that you mentioned. However, I can&amp;#39;t seem to get it build with mcuboot when I build using the NRF Connect extension using&amp;nbsp;prj_fota.conf and with sysbuild enabled. Is there a guide perhaps to build the audio application with mcuboot? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/495507?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 19:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10510a54-f851-4ec6-8cb1-639df905c12c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&amp;nbsp;We are currently understaffed due to the summer vacation period, so delayed replies must be expected. I am sorry about any inconvenience this might cause.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/494912?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 23:24:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23b031ad-9c43-4207-8565-5c6badbfbfcb</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;Hi, unfortunately this is a custom board so I can&amp;#39;t really build it using the nRF52DK board file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/494907?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 21:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c8d42f4-b997-4a7a-bd09-0b26e53c4a5f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Do you build for nRF52DK board or custom board? Is it possible to reproduce with the nRF52DK board file? If so, please share the project to help reproduce the issue. Thanks.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/494888?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 19:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96445e31-6950-4b65-a0d2-68902398af1c</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;I understand and MCUBoot is enabled, but I don&amp;#39;t know why the partition manager is not enabled for MCUBoot. Here is the building output for my main application showing that it is building with partition manager AFTER adding the partition dummy label to the dts file&lt;/p&gt;
&lt;p&gt;&lt;span&gt;slot0_partition:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;partition&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span&gt;8000&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;image-0&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;reg&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;0x00008000&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x1&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; };&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;slot1_partition:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;partition&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span&gt;8001&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;label&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;image-1&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;reg&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;0x00008001&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x1&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; };&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Configuring done
-- Generating done
-- Build files have been written to: /Users/....../build/....
-- Found partition manager static configuration : /Users/......./pm_static.yml
Partition &amp;#39;mcuboot&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_pad&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary_app&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_secondary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;settings_storage&amp;#39; is not included in the dynamic resolving since it is statically defined.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/......./build
-- west build: building application&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The issue I am facing right now is this step happens AFTER the mcuboot CMake, so mcuboot is only reading the dts file. If I remove the dummy label, I get the following error when rebuilding.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/f8037e9b83/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Using ccache: /opt/nordic/ncs/toolchains/f8037e9b83/bin/ccache
MCUBoot bootloader key file: /Users/......./bootloader/mcuboot/root-rsa-2048.pem
ERRORUnable to get parent of node: 
ERRORUnable to get parent of node: 
ERRORUnable to get parent of node: 
ERRORUnable to get parent of node: 
CMake Error at /Users/......./zephyr/cmake/modules/extensions.cmake:3805 (message):
  dt_prop(erase_size ...) missing required argument: PATH&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/494887?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 19:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89d4540d-7c83-4e10-b57f-831ffc939471</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You can enable mcuboot by SB_CONFIG_BOOTLOADER_MCUBOOT=y for sysbuild. See &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/config_and_build/bootloaders/bootloader_adding_sysbuild.html#adding_mcuboot_as_an_immutable_bootloader"&gt;Adding MCUboot as an immutable bootloader&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/494862?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 15:44:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9c8c39e-e49f-4f93-8caf-c6c28ea80083</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;Hi, changing the content of the pm_static.yml does not impact the build error message and I still get the same complain of missing dts label. I know partition manager is enabled for child image, but how can I tell it is enabled for&amp;nbsp;mcuboot&amp;nbsp;using sysbuild?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Update: when building the audio application, it seems that sysbuild actually builds the main application first before mcuboot, whereas in my case mcuboot is always builded first. Does that mean the partition manager needs to be activated first in building the main application to generate the necessary dts file that mcuboot can utilize? If so, how can i make sure that my main app will always get build before mcuboot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile MCUBoot without specifying flash slot0_partition and slot1_partition using sysbuild</title><link>https://devzone.nordicsemi.com/thread/494821?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 13:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7abeae1d-ec3d-4322-939a-7b5f4e7c1a52</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you share your&amp;nbsp;&lt;span&gt;pm_static.yml?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The usage of&amp;nbsp;pm_static.yml is the same. The&amp;nbsp;sysbuild will source&amp;nbsp;pm_static.yml to build. The &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.7.0/applications/nrf5340_audio"&gt;Audio application&lt;/a&gt; also uses&amp;nbsp;pm_static.yml to build.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>