<?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>MCUBOOT + settings storage + user storage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96237/mcuboot-settings-storage-user-storage</link><description>I want to reserve some flash area to store application specific configuration data. This data will not change for the life of the product. I originally had an area set aside in the dts file, like so. 
 
 That caused a problem when I added MCUBOOT as the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Feb 2023 09:30:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96237/mcuboot-settings-storage-user-storage" /><item><title>RE: MCUBOOT + settings storage + user storage</title><link>https://devzone.nordicsemi.com/thread/407936?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 09:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29940e21-8653-4992-85d1-7a72c00991be</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;In NCS when you enabled bootloader the partition manager is enabled, and it will override whatever is defined in DTS and specify it&amp;#39;s own flash partition layout. You can do some tweaking in the options but in our applications we always define a static partition configuration (pm_static.yml). This way we don&amp;#39;t depend on the algorithm to chose the layout for us (plus I have a guarantee the layout won&amp;#39;t change between builds). Take a look here for partition layout for partition manager.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;You can check build-folder/partitions.yml to see how it was sorted out in the end.&lt;/p&gt;
&lt;p&gt;The easiest way to add a static pm file would be to simply &lt;span&gt;&lt;span dir="ltr"&gt;take the partitions.yml in the build folder and copy it, rename it, and place it as a pm_static.yml in the project folder. See if that helps.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Elfving&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + settings storage + user storage</title><link>https://devzone.nordicsemi.com/thread/407811?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2023 14:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea733244-526f-4587-84d9-d232b5399225</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Mary,&lt;/p&gt;
&lt;p&gt;I will have to get back to you on this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + settings storage + user storage</title><link>https://devzone.nordicsemi.com/thread/407647?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 20:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:354fbdfe-2269-45df-83d4-a5412d9e01ec</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;I added this to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;sdk&amp;gt;/bootloader/mcuboot/boot/zephyr/pm.yml&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Added user storage 
user:
  address: 0xf5000
  end_address: 0xF8000
  placement:
    before:	[settings_storage]
  region: flash_primary
  size: 0x3000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This works, so far, but I&amp;#39;d rather not modify the SDK.&amp;nbsp; Is there a way to add a partition at the application level?&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>