<?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 Alignment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122199/partition-alignment</link><description>Hi, 
 I am using the nrf54l15 on a custom board in our current project and want to use it with DFU over BLE FOTA as well as TF-M. 
 I can compile the project just fine before adding DFU as described in your tutorial ( tutorial ) The only diffrence being</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jun 2025 12:03:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122199/partition-alignment" /><item><title>RE: Partition Alignment</title><link>https://devzone.nordicsemi.com/thread/539374?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2025 12:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48495763-cced-46ce-a57c-48b2a429074f</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="H.Marske"]i read the documentation-page for TF-M and in the limitations-chapter it states:&lt;br /&gt;&amp;quot;Firmware Update service is not supported&amp;quot;[/quote]
&lt;p&gt;The reason is that we don&amp;#39;t use or rely this service&amp;nbsp;to support&amp;nbsp;DFU. Instead we use the same implementation as we would without TF-M enabled.&lt;/p&gt;
[quote user="H.Marske"]it has a size as well as start and end address. can i omit one of them?[/quote]
&lt;p&gt;Technically you can chose to omit&amp;nbsp;either&amp;nbsp;&amp;quot;end_address&amp;quot;&amp;nbsp; or &amp;quot;size&amp;quot;. Start address must always be specified.&lt;/p&gt;
&lt;p&gt;I generally think it&amp;#39;s best to let the build system generate the partitions file, and then adjust it as needed as this is usually less error prone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Alignment</title><link>https://devzone.nordicsemi.com/thread/539165?ContentTypeID=1</link><pubDate>Fri, 13 Jun 2025 09:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ea5b69-5ea2-4917-aab7-59e4baf31c6b</guid><dc:creator>H.Marske</dc:creator><description>&lt;p&gt;i read the documentation-page for TF-M and in the limitations-chapter it states:&lt;br /&gt;&amp;quot;Firmware Update service is not supported&amp;quot;&lt;/p&gt;
&lt;p&gt;Can you please confirm that this indeed disables the availability of DFU over BLE?&lt;br /&gt;If this is the case i cannot use it at all and we need to resort to the unsecure variant.&lt;/p&gt;
&lt;p&gt;This also makes all my previous questions irrelevant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Alignment</title><link>https://devzone.nordicsemi.com/thread/539053?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 13:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d65a650-1e35-4747-91d6-ac7220f687b5</guid><dc:creator>H.Marske</dc:creator><description>&lt;p&gt;Dou you have any resources on what the diffrent partitions are used for and how i define them?&lt;/p&gt;
&lt;p&gt;I have the feeling that some informations in there is duplicated wich is normal for a generated build but maybe i can omit them to make it easier to change the sizes if needed.&lt;/p&gt;
&lt;p&gt;For example the partiton:&lt;br /&gt;mcuboot_primary_app:&lt;br /&gt;&amp;nbsp; address: 0x14800&lt;br /&gt;&amp;nbsp; end_address: 0xbc000&lt;br /&gt;&amp;nbsp; orig_span: &amp;amp;id002&lt;br /&gt;&amp;nbsp; - app&lt;br /&gt;&amp;nbsp; - tfm&lt;br /&gt;&amp;nbsp; region: flash_primary&lt;br /&gt;&amp;nbsp; size: 0xa7800&lt;br /&gt;&amp;nbsp; span: *id002&lt;br /&gt;&lt;br /&gt;it has a size as well as start and end address. can i omit one of them?&lt;br /&gt;looking &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/security/tfm/tfm_building.html#tf-m_partition_alignment_requirements"&gt;here&lt;/a&gt; im seeing a wildly different kind of partition.yml. What is the correct way of defining this?&lt;/p&gt;
&lt;p&gt;I dont really care for optimal sizing as the 1.5MB is more than enough.&lt;/p&gt;
&lt;p&gt;Also:&lt;br /&gt;If we update the software in the future is it possible to change the partition sizes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Alignment</title><link>https://devzone.nordicsemi.com/thread/539048?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 12:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb6901be-6dd7-4c89-b52e-00feba974905</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That&amp;#39;s not good. In most cases, you should be able to let the build system generate the partition for you. Then, when you&amp;#39;re ready to lock down the memory layout before release, you can turn it into a static partitioning file by renaming it to pm_static.yml.&lt;/p&gt;
&lt;p&gt;To work around this for now, you can adjust the current partitions.yml to ensure it meets the alignment requirements. Then, rename it to pm_static.yml, place it in the project root, and perform a clean build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Alignment</title><link>https://devzone.nordicsemi.com/thread/539046?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 12:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2266cb33-b90a-41a0-bf31-624d50a6435f</guid><dc:creator>H.Marske</dc:creator><description>&lt;p&gt;That is what i would expect too.&lt;/p&gt;
&lt;p&gt;In my case this is the generated partition.yml&lt;/p&gt;
&lt;p&gt;Shame on me it warned me to create one on my own as &amp;quot;having the bootloader without a static_pm.yml can casue problems&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Partition Alignment</title><link>https://devzone.nordicsemi.com/thread/539036?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 12:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:564b79db-7724-4497-9c19-73bb0fc4e188</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The problem is that the app start address is not aligned to a 0x1000 byte boundary like you mentioned&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;The non-secure start address in pm_static.yml or generated partition.yml is: 0x64600&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It would have worked if the start address was 0x64000 or 0x65000 here.&lt;/p&gt;
&lt;p&gt;But is the partitions.yml file created dynamically by the build, or did you create static partitions yourself? I would expect the build system to adhere to the alignment requirements.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>