<?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>nRF9151-DK Partition Table Differs from nRF9151 Custom Board Template</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123333/nrf9151-dk-partition-table-differs-from-nrf9151-custom-board-template</link><description>The partition table for the nRF9151-DK is different than the partition table generated when the Create a new board option is used in the nRF Connect SDK and the nRF9151-LACA is selected as the SoC . 
 
 Here is the partition table used when building for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Jul 2025 13:30:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123333/nrf9151-dk-partition-table-differs-from-nrf9151-custom-board-template" /><item><title>RE: nRF9151-DK Partition Table Differs from nRF9151 Custom Board Template</title><link>https://devzone.nordicsemi.com/thread/544100?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 13:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce6d7c75-2538-440d-82aa-1d24d5dccb63</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote userid="118839" url="~/f/nordic-q-a/123333/nrf9151-dk-partition-table-differs-from-nrf9151-custom-board-template/544097"]If you don&amp;#39;t mind me asking: when you say that &lt;em&gt;&amp;quot;the nRF91 series devices are always multi-build targets&amp;quot;&lt;/em&gt;, why is this? Are other parts not always multi-build targets? Which parts are and which are not?[/quote]
&lt;p&gt;I do not mind at all!&lt;/p&gt;
&lt;p&gt;We made a hardware design-wise choice for&amp;nbsp;the nRF9160, where the modem can only communicate with the application core in a non-secure state.&lt;/p&gt;
&lt;p&gt;The Cortex M33 CPU application core inside the nRF9160 boots up in a secure state, so you have to run some sort of firmware to transition from secure-&amp;gt;nonsecure state, which is the reason why you have a hard requirement on a secure / non-secure split with the nRF91-series devices.&lt;/p&gt;
&lt;p&gt;The typical image to use in the secure side is TF-M, with various supported features (minimal, medium, and full) in terms of crypto and non-secure callable functions.&lt;/p&gt;
[quote userid="118839" url="~/f/nordic-q-a/123333/nrf9151-dk-partition-table-differs-from-nrf9151-custom-board-template/544097"]Is this true even if I build without the &lt;strong&gt;&lt;code&gt;/ns&lt;/code&gt;&lt;/strong&gt; build option? In that case, TF-M won&amp;#39;t be included, and only the app will be built. Is it still a multi-image build, just with a single image?[/quote]
&lt;p&gt;A colleague pointed out that my former comment is not entirely true, as i stated this:&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/123333/nrf9151-dk-partition-table-differs-from-nrf9151-custom-board-template/544095"]The rule of thumb is that&amp;nbsp;device tree partition table is active for single image build, and and partition manager is used for multi-image builds.[/quote]
&lt;p&gt;From the introduction of sysbuild in NCS v2.7.0, we force partition manager to be used&amp;nbsp;when sysbuild is active for both&amp;nbsp;single- or multi-image build.&lt;/p&gt;
&lt;p&gt;If you do not use sysbuild (west --no-sysbuild ...), then the former comment is true.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that if you omit the &amp;quot;/ns&amp;quot;, and build for nrf9160dk/nrf9160, you will not be able to communicate with the modem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9151-DK Partition Table Differs from nRF9151 Custom Board Template</title><link>https://devzone.nordicsemi.com/thread/544097?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 13:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c10c319-c697-4fbd-be4e-617e6f23fd8b</guid><dc:creator>gfrung</dc:creator><description>&lt;p&gt;Thanks for the clarification, and the historical context! It helps to understand why things are the way they are, and the direction they&amp;#39;re potentially going in the future.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t mind me asking: when you say that &lt;em&gt;&amp;quot;the nRF91 series devices are always multi-build targets&amp;quot;&lt;/em&gt;, why is this? Are other parts not always multi-build targets? Which parts are and which are not?&lt;/p&gt;
&lt;p&gt;Is this true even if I build without the &lt;strong&gt;&lt;code&gt;/ns&lt;/code&gt;&lt;/strong&gt; build option? In that case, TF-M won&amp;#39;t be included, and only the app will be built. Is it still a multi-image build, just with a single image?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9151-DK Partition Table Differs from nRF9151 Custom Board Template</title><link>https://devzone.nordicsemi.com/thread/544095?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 13:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a2bb94b-04ac-4d10-bf7b-34bf4dd87346</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The rule of thumb is that&amp;nbsp;device tree partition table is active for single image build, and and partition manager is used for multi-image builds.&lt;/p&gt;
[quote user="gfrung"]Why is it even there?&amp;nbsp; Is there a case where it&amp;nbsp;&lt;em&gt;would&lt;/em&gt; be used?&amp;nbsp; If not, it&amp;#39;s confusing to have it there, because I could have gone in there to adjust the partitions and been very surprised when they weren&amp;#39;t changing.&amp;nbsp; If it&amp;#39;s never used, could it just be deleted from the board template for the &lt;strong&gt;nRF9151&lt;/strong&gt; to avoid the confusion?[/quote]
&lt;p&gt;I know this is a bad reason from our side, but I&amp;#39;ll try to be as transparent as possible: The reason is historical.&lt;/p&gt;
&lt;p&gt;Since upstream zephyr did not have any means of performing multi-image builds (until recently), we added partition manager to NCS.&lt;/p&gt;
&lt;p&gt;The intention is that a unified solution&amp;nbsp;shall be used in the future, as system build (sysbuild) slowly gets more mature:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/build/sysbuild/index.html"&gt;https://docs.zephyrproject.org/latest/build/sysbuild/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But, these things also take time, so at this time (NCS v3.0.x) we are using sysbuild for multi image handling, but still on Partition Manager for the physical layout.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9151-DK Partition Table Differs from nRF9151 Custom Board Template</title><link>https://devzone.nordicsemi.com/thread/544093?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 12:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7df4c1ae-fea4-4033-a9d8-6d6c442e74ca</guid><dc:creator>gfrung</dc:creator><description>&lt;p&gt;I see.&amp;nbsp; I actually removed the entire partition table from the device tree, built, and the output&amp;nbsp;&lt;strong&gt;merged.hex&lt;/strong&gt; file, that is programmed to the device, was identical.&amp;nbsp; So, it is clear the partition table is completely unused.&lt;br /&gt;&lt;br /&gt;Why is it even there?&amp;nbsp; Is there a case where it&amp;nbsp;&lt;em&gt;would&lt;/em&gt; be used?&amp;nbsp; If not, it&amp;#39;s confusing to have it there, because I could have gone in there to adjust the partitions and been very surprised when they weren&amp;#39;t changing.&amp;nbsp; If it&amp;#39;s never used, could it just be deleted from the board template for the &lt;strong&gt;nRF9151&lt;/strong&gt; to avoid the confusion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9151-DK Partition Table Differs from nRF9151 Custom Board Template</title><link>https://devzone.nordicsemi.com/thread/544091?ContentTypeID=1</link><pubDate>Wed, 30 Jul 2025 12:50:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afd7107e-8515-4c03-8747-1306418bcf92</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When creating a nRF91 board, the partition layout in the device tree files is not used, as the nRF91 series devices are always multi-build targets.&lt;/p&gt;
&lt;p&gt;It is the Partition Manager that handles multi-image build and its partitioning, based on what is enabled in your build:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrf/scripts/partition_manager/partition_manager.html"&gt;https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrf/scripts/partition_manager/partition_manager.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>