<?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 + Multi NVS partition</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107509/mcuboot-multi-nvs-partition</link><description>Hi Nordic, 
 We want to store user config data to multi flash sections just like(config1_partition &amp;amp; config2_partition) 
 
 
 When mcuboot enabled the dts config has no effect. according to other ticket we need to add a pm_static.yml but not suit for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2024 14:31:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107509/mcuboot-multi-nvs-partition" /><item><title>RE: MCUBOOT + Multi NVS partition</title><link>https://devzone.nordicsemi.com/thread/465619?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 14:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d9e1f3b-fef6-4403-83c3-48e7808c8bc7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;That looks fine. Let me know if you have any issues regarding the modification.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + Multi NVS partition</title><link>https://devzone.nordicsemi.com/thread/465463?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 00:44:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47c2ba54-506f-4aac-8e77-79f76ad12f3e</guid><dc:creator>kyozc</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;Amanda,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We are using a custom board with no&amp;nbsp;&lt;span&gt;external flash. and we just&amp;nbsp;modify the partition size with&amp;nbsp;pm_static.yml like that &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;EMPTY_0:
  address: 0xfe000
  end_address: 0x100000
  placement:
    after:
    - settings_storage
  region: flash_primary
  size: 0x2000
app:
  address: 0xc200
  end_address: 0x80000
  region: flash_primary
  size: 0x73e00
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x80000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - app
  region: flash_primary
  sharers: 0x1
  size: 0x74000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x80000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x73e00
  span: *id002
mcuboot_secondary:
  address: 0x80000
  end_address: 0xfc000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x4000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x74000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
pcd_sram:
  address: 0x20000000
  end_address: 0x20002000
  placement:
    after:
    - start
  region: sram_primary
  size: 0x2000
rpmsg_nrf53_sram:
  address: 0x20070000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0x10000
settings_storage:
  address: 0xfc000
  end_address: 0xfe000
  placement:
    align:
      start: 0x4000
    before:
    - end
  region: flash_primary
  size: 0x2000
config2_storage:
  address: 0xf8000
  end_address: 0xfc000
  placement:
    before:
    - settings_storage
  region: flash_primary
  size: 0x4000
config1_storage:
  address: 0xf4000
  end_address: 0xf8000
  placement:
    before:
    - config2_storage
  region: flash_primary
  size: 0x4000
sram_primary:
  address: 0x20002000
  end_address: 0x20070000
  region: sram_primary
  size: 0x6e000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;for now it just works (but not suitable for simultaneous DFU ) And Is there any other problem with that modity?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Chen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + Multi NVS partition</title><link>https://devzone.nordicsemi.com/thread/465369?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 14:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9234ebfe-8d4d-417b-8c92-9bf7adbfdc4f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="kyozc"]&lt;p&gt;&lt;span&gt;if i want to place the config partion at&amp;nbsp;config1_partition at 0xe0000 and&amp;nbsp;config2_partition at 0xe8000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;what should i do to moditify the dts file?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Those addressed are overlapped with mcuboot_secondary, so they cannot use that address. The size of&amp;nbsp;&lt;span&gt;mcuboot_secondary must be the same as mcuboot_primary. You could move the&amp;nbsp;mcuboot_secondary&amp;nbsp;to external flash. Are you using nRF53DK or a custom board? If a custom board, is there an external flash on it? Connected via SPI or QSPI? What is the external flash name?&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="kyozc"]And Why we have modify the dts file to make the app slot size 0x40000 but have no sense.[/quote]
&lt;p&gt;Try to modify the app size with&amp;nbsp;pm_static.yml.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + Multi NVS partition</title><link>https://devzone.nordicsemi.com/thread/465205?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 01:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac677c5c-8922-4653-9f3e-325cfe4de0b5</guid><dc:creator>kyozc</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Amanda,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The EMPTY_0 is too small for two config partition(eath config need 2 sector at least)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;if i want to place the config partion at&amp;nbsp;config1_partition at 0xe0000 and&amp;nbsp;config2_partition at 0xe8000&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;what should i do to moditify the dts file?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;flash0 {

    partitions {
        compatible = &amp;quot;fixed-partitions&amp;quot;;
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;1&amp;gt;;

        boot_partition: partition@0 {
            label = &amp;quot;mcuboot&amp;quot;;
            reg = &amp;lt;0x00000000 0x00010000&amp;gt;;
        };
        slot0_partition: partition@10000 {
            label = &amp;quot;image-0&amp;quot;;
        };
        slot1_partition: partition@50000 {
            label = &amp;quot;image-1&amp;quot;;
        };
        slot2_partition: partition@90000 {
            label = &amp;quot;image-2&amp;quot;;
        };
        config1_partition: partition@e0000 {
            label = &amp;quot;config1&amp;quot;;
            reg = &amp;lt;0x000e0000 0x00008000&amp;gt;;
        };
        config2_partition: partition@e8000 {
            label = &amp;quot;config2&amp;quot;;
            reg = &amp;lt;0x000e8000 0x00008000&amp;gt;;
        };
        /* 0xf0000 to 0xf7fff reserved for TF-M partitions */
        storage_partition: partition@f8000 {
            label = &amp;quot;storage&amp;quot;;
            reg = &amp;lt;0x000f8000 0x00008000&amp;gt;;
        };
    };
};

&amp;amp;slot0_partition {
	reg = &amp;lt;0x00010000 0x40000&amp;gt;;
};

&amp;amp;slot1_partition {
	reg = &amp;lt;0x00050000 0x40000&amp;gt;;
};

&amp;amp;slot2_partition {
	reg = &amp;lt;0x00090000 0x40000&amp;gt;;
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And Why we have modify the dts file to make the app slot size 0x40000 but have no sense.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Chen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + Multi NVS partition</title><link>https://devzone.nordicsemi.com/thread/465158?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 22:57:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c86463a6-c805-4f6c-bf5b-94ae6ef77f0c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="kyozc"]config1_partition at 0xe0000 and&amp;nbsp;config2_partition at 0xe8000&amp;nbsp;[/quote]
&lt;p&gt;They are overlapped with the&amp;nbsp;mcuboot_secondary. You could put them at 0xfe000 to replace the EMPTY_0.&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/pastedimage1705704908322v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + Multi NVS partition</title><link>https://devzone.nordicsemi.com/thread/464936?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 01:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aa12825-066a-4e83-a05a-8005294135d5</guid><dc:creator>kyozc</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thanks for the guide, but i got the build error with custom&amp;nbsp;&lt;span&gt;pm_static.yml&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7220.build_5F00_err.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;EMPTY_0:
  address: 0xfe000
  end_address: 0x100000
  placement:
    after:
    - settings_storage
  region: flash_primary
  size: 0x2000
app:
  address: 0xc200
  end_address: 0x84000
  region: flash_primary
  size: 0x77e00
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x84000
  orig_span: &amp;amp;id001
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x78000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x84000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x77e00
  span: *id002
mcuboot_secondary:
  address: 0x84000
  end_address: 0xfc000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x4000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x78000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
rpmsg_nrf53_sram:
  address: 0x20070000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0x10000
settings_storage:
  address: 0xfc000
  end_address: 0xfe000
  placement:
    align:
      start: 0x4000
    before:
    - end
  region: flash_primary
  size: 0x2000
config1_partition:
  address: 0xe0000
  end_address: 0xe8000
  placement:
    align:
      start: 0x20000
    before:
    - end
  region: flash_primary
  size: 0x8000
config2_partition:
  address: 0xe8000
  end_address: 0xf0000
  placement:
    align:
      start: 0x18000
    before:
    - end
  region: flash_primary
  size: 0x8000
sram_primary:
  address: 0x20000000
  end_address: 0x20070000
  region: sram_primary
  size: 0x70000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How could i modify the&amp;nbsp;&lt;span&gt;pm_static.yml if we want to add&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;config1_partition at 0xe0000 and&amp;nbsp;config2_partition at 0xe8000&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Chen&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + Multi NVS partition</title><link>https://devzone.nordicsemi.com/thread/464870?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2024 15:24:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24ad65bd-0d73-45f7-8211-99bd85f17c4e</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use the&amp;nbsp;partitions.yml under the build folder to modify and rename it as&amp;nbsp;&amp;nbsp;&lt;span&gt;pm_static.yml, then place it under the application folder.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>