<?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>Using internal flash with custom partitions and BT OTA DFU and MCUboot enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110022/using-internal-flash-with-custom-partitions-and-bt-ota-dfu-and-mcuboot-enabled</link><description>Hello 
 I&amp;#39;m using nRF Connect SDK v2.5.0 and have defined a pm_static and the corresponding partitions in the dts with the same address ranges (BTW: is there a way to sync them?). DFU over Bluetooth is working as expected. 
 pm_static and dts partitions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Apr 2024 13:07:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110022/using-internal-flash-with-custom-partitions-and-bt-ota-dfu-and-mcuboot-enabled" /><item><title>RE: Using internal flash with custom partitions and BT OTA DFU and MCUboot enabled</title><link>https://devzone.nordicsemi.com/thread/477585?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 13:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:888eddcd-27a3-404a-953e-aee2b379bbb5</guid><dc:creator>Revilo</dc:creator><description>&lt;p&gt;Thank you! This did it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using internal flash with custom partitions and BT OTA DFU and MCUboot enabled</title><link>https://devzone.nordicsemi.com/thread/477557?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 12:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:677cfb74-4d36-42ce-807c-29f23c0bb790</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The PM generated symbols can be found in build/zephyr/generated/pm_config.h. Here is a modified version of the soc_flash_nrf sample where I added the &amp;#39;myadt_partition&amp;#39; partition:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/soc_5F00_flash_5F00_nrf.zip"&gt;devzone.nordicsemi.com/.../soc_5F00_flash_5F00_nrf.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using internal flash with custom partitions and BT OTA DFU and MCUboot enabled</title><link>https://devzone.nordicsemi.com/thread/477521?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 11:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91254335-5f2f-4ac8-9b25-03da11f4eb9f</guid><dc:creator>Revilo</dc:creator><description>&lt;p&gt;Thanks for that hint. I think I still have to define it in the dts with the same address ranges as in pm_static, because the child image build somehow still needs it, but this might be another thing to solve, so I think I&amp;#39;m good for now with keeping dts and pm_static in sync.&lt;/p&gt;
&lt;p&gt;As you can see in my initial post, I allready defined my data partition in the pm_static. So how can the device structure be obtained? &lt;code&gt;const struct device* const flash_dev = FIXED_PARTITION_DEVICE(DATAPART_DT_LABEL);&lt;/code&gt; obviously does not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using internal flash with custom partitions and BT OTA DFU and MCUboot enabled</title><link>https://devzone.nordicsemi.com/thread/477505?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 09:59:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b3955b-b11d-46fa-8df1-f83cf8c3c609</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;When you perform a multi-image build (that is, enabling the bootloader), the partition manager takes over and controls the memory partition layout. As a result, the partitions defined in the Device Tree will be ignored.&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/pastedimage1712570248144v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/nrf/scripts/partition_manager/partition_manager.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/nrf/scripts/partition_manager/partition_manager.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Therefore, you will need to define your custom partition in your pm_static file.&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>