<?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>SDK 3.4.0 build/flash issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128875/sdk-3-4-0-build-flash-issue</link><description>I&amp;#39;m having strange behaviour after switching to 3.4.0 on nrf9151. Our existing application was working well on 3.2.0 but showed no life with 3.4.0. 
 
 To demonstrate, I built hello world sample with 3.2.0 and flashed and it worked as expected. 
 I created</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Aug 2026 17:24:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128875/sdk-3-4-0-build-flash-issue" /><item><title>RE: SDK 3.4.0 build/flash issue</title><link>https://devzone.nordicsemi.com/thread/569942?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2026 17:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df2e6aa7-9955-419a-a012-ea6404a13428</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you for the kind feedback. The default memory layout is now defined by the Devicetree include file here: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.4.0/dts/vendor/nordic/nrf91xx_partition.dtsi"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.4.0/dts/vendor/nordic/nrf91xx_partition.dtsi&lt;/a&gt;. However, unlike on the nRF54L Series, this file also&amp;nbsp;includes the boot&amp;nbsp;partition for a bootloader, which I had not noticed until now. This means that you will get an empty partition at address 0 unless you also include MCUboot in your build (-DSB_CONFIG_BOOTLOADER_MCUBOOT=y) or create a Devicetree overlay that removes the boot_partition.&lt;/p&gt;
[quote user="embeddedCoder"]I&amp;#39;ve still not got my head round where to set it in an overlay for DTS for the TF-M. Perhaps it was using slot0_partition rather than boot_partition? I still can&amp;#39;t see where it was picking it up from.[/quote]
&lt;p&gt;Yes, this is exactly the problem. The slot is picked up from the DT include file linked above. This section of the SDK documentation explains how you can change the partitions&amp;nbsp;&lt;a href="https://nrfconnectdocs.nordicsemi.com/ncs/latest/nrf/app_dev/device_guides/nrf91/nrf91_dt_partitions.html#configuring-partitions-on-an-nrf91-series-device"&gt;https://nrfconnectdocs.nordicsemi.com/ncs/latest/nrf/app_dev/device_guides/nrf91/nrf91_dt_partitions.html#configuring-partitions-on-an-nrf91-series-device&lt;/a&gt;. For example, if you want to remove the boot_partition.&lt;/p&gt;
&lt;p&gt;I do think it is a bit unfortunate that basic Zephyr samples, such as &amp;quot;Hello World&amp;quot; do not work out of the box when building for nRF91 series devices&amp;nbsp;with TF-M. I will report this internally. Hopefully, we can come up with a better solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 3.4.0 build/flash issue</title><link>https://devzone.nordicsemi.com/thread/569889?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2026 19:36:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2bca45a-91df-4c5b-b999-94b228f6e182</guid><dc:creator>embeddedCoder</dc:creator><description>&lt;p&gt;Yes, that was the problem, without the CMake flag TF-M origin was 0x00010000.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve still not got my head round where to set it in an overlay for DTS for the TF-M. Perhaps it was using slot0_partition rather than boot_partition? I still can&amp;#39;t see where it was picking it up from.&lt;/p&gt;
&lt;p&gt;Thanks for your help, for being so responsive, and for such clear instructions/screen shots which were very easy to follow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 3.4.0 build/flash issue</title><link>https://devzone.nordicsemi.com/thread/569853?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2026 10:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff600969-e6ab-4a68-a283-07a890ccac1b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It sounds like the issue is that the application is being placed elsewhere in flash, since the old application continues to run after flashing. This could&amp;nbsp;be related to the transition from using Partition Manager to static Devicetree partitions for managing the memory layout (&lt;span&gt;&lt;a href="https://nrfconnectdocs.nordicsemi.com/ncs/latest/nrf/releases_and_maturity/migration/migration_partitions.html#migration-partitions"&gt;Migrating partition configuration from Partition Manager to devicetree (DTS)&lt;/a&gt;)&lt;/span&gt;. As you may have seen, Partition Manager is no longer enabled by default in SDK v3.4.0, and I would say this is the biggest difference between the two releases.&lt;/p&gt;
&lt;p&gt;Are you using the nrf9151dk as your build target, or have you defined your own board. Either way, as a test, please try building with the Partition manager enabled by passing the CMake argument below to your build command.&lt;/p&gt;
&lt;p&gt;-DSB_CONFIG_PARTITION_MANAGER=y&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1785839923806v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You may also verify&amp;nbsp;the start address of the TF-M and application image from the *.map output. TF-M should be starting at 0x0.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1785840183862v2.png" alt=" " /&gt;&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>