<?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>nRF52840, flash partitions: MCUboot vs. nRF5 MBR+Bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120936/nrf52840-flash-partitions-mcuboot-vs-nrf5-mbr-bootloader</link><description>Hello, 
 I use SDK v2.9.0 with nRF52840 and my application is based on peripheral_uart example. 
 Have I understood correctly that nRF52840dongle has preloaded (by Nordic) nRF5_MBR (@0x00000000) and nRF5_bootloader (@0x000fffff) and if I just add MCUboot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 May 2025 08:46:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120936/nrf52840-flash-partitions-mcuboot-vs-nrf5-mbr-bootloader" /><item><title>RE: nRF52840, flash partitions: MCUboot vs. nRF5 MBR+Bootloader</title><link>https://devzone.nordicsemi.com/thread/534230?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 08:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8391696-169c-4ee9-bbd4-93ee1713a2d5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Sami,&lt;/p&gt;
&lt;p&gt;I see. So you have specifically addded&amp;nbsp;nrf5_bootloader to your project by this partition file. If you are going to use the dongle without the bootloader (which means removing it via SWD), then this seves no purpose and should be removed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, flash partitions: MCUboot vs. nRF5 MBR+Bootloader</title><link>https://devzone.nordicsemi.com/thread/533788?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 19:44:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b126136f-c726-4d76-abef-c9366531afce</guid><dc:creator>SamiKu</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I tried the BLE peripheral_uart example but the partition layout seems to be reasonable with example. So there must be something wrong in my application.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my application flash partitions (when&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_HAS_NRF5_BOOTLOADER&lt;/span&gt;&lt;span&gt;=n)&lt;/span&gt;&lt;/div&gt;
&lt;/div&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/pastedimage1746214252875v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And here&amp;#39;s the normal(?) partition table (based on BLE peripheral_uart example).&lt;br /&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/pastedimage1746214335352v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;My project has following at sysbuild.cmake&lt;/p&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt;(SB_CONFIG_BOARD_NRF52840DONGLE)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; set&lt;/span&gt;&lt;span&gt;(PM_STATIC_YML_FILE &lt;/span&gt;&lt;span&gt;${CMAKE_CURRENT_LIST_DIR}&lt;/span&gt;&lt;span&gt;/boards/nrf52840dongle_nrf52840_pm_static.yml &lt;/span&gt;&lt;span&gt;CACHE&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;INTERNAL&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;endif&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;The BLE peripheral_uart does not have such file at all.&lt;br /&gt;&lt;br /&gt;My project has boards/nrf52840dongle_nrf52840_pm_static.yml&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;span&gt;nrf5_bootloader&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;address&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0xE0000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;end_address&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0x100000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;placement&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;align&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;start&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0x1000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;before&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; - &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;region&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;flash_primary&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;size&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0x20000&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;&lt;span&gt;The BLE peripheral_uart does not have such file at all.&lt;br /&gt;&lt;br /&gt;So is it so that above &amp;quot;boards/nrf52840dongle_nrf52840_pm_static.yml&amp;quot; is reason for this flash partition entry that does not disappear when settings&amp;nbsp;CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n?&lt;br /&gt;I think above files are added when migrating to SDK v2.9.0 (see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/118594/nrf52840-dongle-ble-peripheral_uart-example-sdk-migration-from-2-6-0-to-2-9-0"&gt;nRF52840 dongle, BLE peripheral_uart example, SDK migration from 2.6.0 to 2.9.0&lt;/a&gt;&amp;nbsp;).&lt;br /&gt;&lt;br /&gt;So when using MCUboot (@0x0), then above pm_static.yml can be cleared/removed and flash partitioning would be correct for non-nrf5-bootloader/mbr?&lt;br /&gt;&lt;br /&gt;BR,&lt;br /&gt;Sami&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, flash partitions: MCUboot vs. nRF5 MBR+Bootloader</title><link>https://devzone.nordicsemi.com/thread/533437?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 14:07:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dff09669-0598-4c8e-833f-f0baa296aa57</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That is odd, I do not see that. Can you reproduce with a sample and share the partition report? Or where do you see the&amp;nbsp;nrf5_bootloader partition?&lt;/p&gt;
&lt;p&gt;(That said, as long as you don&amp;#39;t need all the flash it is not a problem)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, flash partitions: MCUboot vs. nRF5 MBR+Bootloader</title><link>https://devzone.nordicsemi.com/thread/533420?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 13:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cbbd2f2-459d-4032-8b93-c701ecd274cd</guid><dc:creator>SamiKu</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for the info!&lt;br /&gt;&lt;br /&gt;I can change MCUboot address / MBR existence with&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_HAS_NRF5_BOOTLOADER&lt;/span&gt;&lt;span&gt;=n/y.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;But if I look the flash partitions, I see always nrf5_bootloader @ 0x000e0000. This is not problem in my current application, but is there some CONFIG option which can be used to remove that partition?&lt;br /&gt;Or is it only way to use Partition Manager and/or pm_static.yml?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, flash partitions: MCUboot vs. nRF5 MBR+Bootloader</title><link>https://devzone.nordicsemi.com/thread/533024?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 13:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e4d55b5-dc08-445c-a018-e09443f9a50b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You do not need to edit board files. You can add overlay files for both devicetree and Kconfig. The simplest if you don&amp;#39;t use multiple boards, is to add a file named &amp;quot;app.ovelay&amp;quot; next to the prj.conf, and add any devicetree overlays you need there. And add any other in prj.conf. You can also use board specific overlays if you like.&lt;/p&gt;
&lt;p&gt;The dongle documentation comes from the Zephyr project, but I assume you will be using the nRF Connect SDK (which is what we support and that include Zephyr), and that use the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/scripts/partition_manager/partition_manager.html"&gt;Partition manager&lt;/a&gt;&amp;nbsp;for partitioning instead of the devicetree, so&amp;nbsp;fstab-debugger /&amp;nbsp;fstab-stock should not be relevant. If you want to modify the flash layout ou then use pm_static.yml instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, flash partitions: MCUboot vs. nRF5 MBR+Bootloader</title><link>https://devzone.nordicsemi.com/thread/532948?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 05:30:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:124c55b1-b1e2-4e55-99b7-1003be69df3d</guid><dc:creator>SamiKu</dc:creator><description>&lt;p&gt;Hello!&lt;br /&gt;&lt;br /&gt;Thanks for very quick reply!&lt;br /&gt;&lt;br /&gt;Just wondering that is it the only way to edit those boards files etc. which seems a little inconvenient due that it affect other projects too (if such exists/is in use) and when SDK is updated, then these changes needs to be redone.&lt;br /&gt;&lt;br /&gt;So is it possible to do such changes only using project dependent files (like prj.conf, sysbuild.conf, mcuboot.conf or some overlay file etc.)? If yes, what files should be changed/created and how to change them?&lt;br /&gt;&lt;br /&gt;If I understood correctly above links, when J-Link is used and&amp;nbsp;fstab-stock.dtsi is changed to&amp;nbsp;fstab-debugger.dtsi then MCUboot will be located to 0x0 and no nrf5 MBR or nrf5 bootloader exists.&lt;br /&gt;Is it possible to change/affect this flash0 layout using just project files/layout files?&lt;br /&gt;&lt;br /&gt;Not tested yet, but above .dtsi files says &amp;quot;compatible = &amp;quot;fixed-partitions&amp;quot;;&amp;quot; and if I recall correctly, peripheral_uart project says something else than &amp;quot;fixed partitions&amp;quot;. Is there some&amp;nbsp;conflict that prevents above .dtsi file change to work at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840, flash partitions: MCUboot vs. nRF5 MBR+Bootloader</title><link>https://devzone.nordicsemi.com/thread/532814?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 11:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d936c377-1a7e-4dc5-aba3-529bc649095c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are right that the Dongle use the MBR and nRF5 SDK serial bootloder, and thiis cannot be removed without SWD. You can still use MCUboot if you like though, as expalined &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/boards/nordic/nrf52840dongle/doc/index.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you connect a debugger you can do a full erase, to remove the MBR and nRF5 SDK bootloader. The only thing you need to keep in mind is that the default VDD our of the high voltage regulator after an erase all opeation on the nRF52840 (when the hardweare is configured for high voltage mode, which it is in the dongle), is 1.8 V. And depending on the debugger, this may cause problems. You can refer to the last part of the old &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 dongle programming tutorial&lt;/a&gt; for more on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>