<?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>Unstable ZMS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118449/unstable-zms</link><description>I am facing an issue with unsuccessful zms initialization. For my case, it always seems like each of my boards can only work with zms in one project; I can update the code within the original project all I want, but switching to another program with zms</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jan 2025 15:40:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118449/unstable-zms" /><item><title>RE: Unstable ZMS</title><link>https://devzone.nordicsemi.com/thread/520761?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 15:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f564d17-a227-48cd-8d8f-827e142a40e7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to declare a zms_settings partition?&lt;/p&gt;
[quote user="Allan-led"]Here&amp;#39;s the yml file from the project that does not work:&amp;nbsp;[/quote]
&lt;p&gt;This yaml file does not seem to have a zms_storage partition:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x0
  end_address: 0xf8000
  region: flash_primary
  size: 0xf8000
nvs_storage:
  address: 0xf8000
  end_address: 0xfe000
  placement:
    before:
    - end
  region: flash_primary
  size: 0x6000
settings_storage:
  address: 0xfe000
  end_address: 0x100000
  placement:
    align:
      start: 0x1000
    before:
    - end
  region: flash_primary
  size: 0x2000
sram_primary:
  address: 0x20000000
  end_address: 0x20040000
  region: sram_primary
  size: 0x40000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If you create a pm_static.yml file in your application/ folder containing this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;zms_storage:
  address: 0xfa000
  end_address: 0x100000
  placement:
    before:
    - end
  region: flash_primary
  size: 0x6000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And nothing else; it should adjust other partitions as needed in the new_build-folder/partitions.yml.&lt;/p&gt;
&lt;p&gt;PS: You need to do a new build (not pristine) for such static partition layout to be included.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ZMS</title><link>https://devzone.nordicsemi.com/thread/520611?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2025 18:03:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a4d4405-6581-4e10-b86a-165b99f0d838</guid><dc:creator>Allan-led</dc:creator><description>&lt;p&gt;An update:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I copied the successful yml file to the unsuccessful project, and it still gave the same error of invalid address: 0x00100fe0:16 while trying to mount ZMS, even though I believe the address has made it clear that this is an invalid address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ZMS</title><link>https://devzone.nordicsemi.com/thread/520608?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2025 17:22:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ce89100-6cc0-42fa-bec8-18e9110975f7</guid><dc:creator>Allan-led</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I have based my work off of the Thread CLI sample, and I have been building off of that for quite a while now. The ZMS project that works was built as a new project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the yml file from the project that does not work:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x0
  end_address: 0xf8000
  region: flash_primary
  size: 0xf8000
nvs_storage:
  address: 0xf8000
  end_address: 0xfe000
  placement:
    before:
    - end
  region: flash_primary
  size: 0x6000
settings_storage:
  address: 0xfe000
  end_address: 0x100000
  placement:
    align:
      start: 0x1000
    before:
    - end
  region: flash_primary
  size: 0x2000
sram_primary:
  address: 0x20000000
  end_address: 0x20040000
  region: sram_primary
  size: 0x40000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and the yml file from the project that does work:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x0
  end_address: 0xfa000
  region: flash_primary
  size: 0xfa000
sram_primary:
  address: 0x20000000
  end_address: 0x20040000
  region: sram_primary
  size: 0x40000
zms_storage:
  address: 0xfa000
  end_address: 0x100000
  placement:
    before:
    - end
  region: flash_primary
  size: 0x6000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, I am indeed working on an nRF52840 board!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would appreciate any further help! Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ZMS</title><link>https://devzone.nordicsemi.com/thread/520574?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2025 14:52:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6465cd58-e50f-42fe-ac5a-67f80172ae72</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1: Which sample are you using to recreate this scenario? I would like to recreate this on my end as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q2: are you performing a full erase of the device when moving from one project with zms to another?&lt;/p&gt;
&lt;p&gt;The reason I ask is because they can overlap in address area between applications.&lt;/p&gt;
&lt;p&gt;Check your build-folder/partitions.yml and see if the &amp;quot;zms_storage&amp;quot; is changed between the two samples.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Preferably share both .yml files.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q3: I suspect these are logs from a nRF52840 device?&lt;/p&gt;
[quote user=""]&lt;p&gt;Below are the error messages:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;- flash_nrf: invalid address: 0x00100fe0:16&lt;/div&gt;
&lt;div&gt;- fs_zms: zms not initialized.&amp;nbsp;&lt;/div&gt;[/quote]
&lt;p&gt;If yes, then the 0x100fe0 is out-of-bounds of the flash itself, indicating that there&amp;#39;s something with the originating fs structure (addr + size variables).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unstable ZMS</title><link>https://devzone.nordicsemi.com/thread/520485?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2025 00:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfaccda5-21d6-44f0-93f7-9d817557a57e</guid><dc:creator>Allan-led</dc:creator><description>&lt;p&gt;Edit: Now restarting the PC entirely won&amp;#39;t even fix the issue.&amp;nbsp;I built another project that uses zms, and everything works out there. Thus, I replaced everything within my old directory with the content of the new project, and it still fails. How come the directory affects the success of zms initialization?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>