<?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>Settings subsystem fails initialization on the nrf5340DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105374/settings-subsystem-fails-initialization-on-the-nrf5340dk</link><description>I found an issue with a settings subsystem implementation on an nrf5340DK board I&amp;#39;m working with. I originally implemented the settings subsystem on an nrf52840DK which worked fine there. Later I needed to port that functionality over to the nrf5340DK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Nov 2023 16:05:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105374/settings-subsystem-fails-initialization-on-the-nrf5340dk" /><item><title>RE: Settings subsystem fails initialization on the nrf5340DK</title><link>https://devzone.nordicsemi.com/thread/455162?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 16:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:607a9a67-2c36-4943-91db-ba2ae7d2ea05</guid><dc:creator>kseegmiller</dc:creator><description>&lt;p&gt;I don&amp;#39;t have any further questions so yes go ahead and close it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your help and feedback,&lt;/p&gt;
&lt;p&gt;Kyle&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Settings subsystem fails initialization on the nrf5340DK</title><link>https://devzone.nordicsemi.com/thread/455127?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 13:22:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b808c5e-10e1-4c8f-b566-d06fb4b43952</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;I agree,&lt;/p&gt;
&lt;p&gt;I will write this issue down as a potential bug and investigate it closer when I have time. Do also note that this &lt;em&gt;might&amp;#39;ve&amp;nbsp;&lt;/em&gt;been patched in NCS v2.4.x or v2.5.0. I find it strange that the dynamic partitioning works for me and not for you and your colleague.&lt;br /&gt;&lt;br /&gt;Nonetheless, glad to hear that a static partitioning resolved the issue.&lt;/p&gt;
&lt;p&gt;Do you have any other questions related to this topic, or can I mark this as resolved for now?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Settings subsystem fails initialization on the nrf5340DK</title><link>https://devzone.nordicsemi.com/thread/455032?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 23:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18be4013-6c8a-422e-a581-663083ab85dd</guid><dc:creator>kseegmiller</dc:creator><description>&lt;p&gt;Another developer on the project was having similar flash issues and found he could create a pm_static.yml partition file. He also added the settings subsystem mapping as well. This appears to have resolved the issue although admittedly I still don&amp;#39;t why the auto gen&amp;#39;d partition.yml didn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Kyle&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Settings subsystem fails initialization on the nrf5340DK</title><link>https://devzone.nordicsemi.com/thread/454604?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 08:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5977f10-bdf2-42c3-b6e5-00c3d32445d5</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;You are absolutely correct, the config is already present in the configuration you provided. Wow, that&amp;#39;s interesting. It is however not present in a pristine version of the settings subsystem sample for NCS v2.3.0&lt;/p&gt;
&lt;p&gt;What I did was to take a pristine settings subsystem sample, which has the configuration like this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_STDOUT_CONSOLE=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y

CONFIG_SETTINGS=y
CONFIG_SETTINGS_RUNTIME=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then I added&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;############### Added Configs ################

CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which resulted in&amp;nbsp; the following result for the 52840DK (nrf52840dk_nrf52840) and the 5340DK (nrf5340dk_nrf5340_cpuapp)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5488.pastedimage1699349782110v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;After that I added&amp;nbsp;&lt;span&gt;CONFIG_NVS=y to the bottom of the prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;which added the settings_storage partition to the partitioning as well as successfully initialized the settings subsys (from the device terminal output)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8831.pastedimage1699352013169v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I find it interesting that this does not work on your end&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Have you made any other modifications to the project?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Which build target did you build for?&lt;/li&gt;
&lt;li&gt;What revision is the 5340DK you have available?&lt;/li&gt;
&lt;li&gt;Could you check the partition map for the modified to see if settings_storage is located there?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Here&amp;#39;s the zip of the project I built and ran. Firmware for 5340 with modifications is in build_2 (can be flashed through&amp;nbsp;&lt;em&gt;west flash -d build_2&lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2063.settings_5F00_with_5F00_NVS.zip"&gt;devzone.nordicsemi.com/.../2063.settings_5F00_with_5F00_NVS.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Settings subsystem fails initialization on the nrf5340DK</title><link>https://devzone.nordicsemi.com/thread/454540?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 18:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ee42488-f028-445d-bdfc-29dfac315e68</guid><dc:creator>kseegmiller</dc:creator><description>&lt;p&gt;In the sample prj.config I provided CONFIG_NVS=y is already there. It&amp;nbsp;is set as part of the &amp;#39;settings subsystem&amp;#39; sample. It is also set in my target project, so no, unfortunately this doesn&amp;#39;t resolve my issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where you able to reproduce the issue using the &amp;#39;settings subsystem&amp;#39; sample and the prj.config I provided built for the nrf5340DK?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kyle&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Settings subsystem fails initialization on the nrf5340DK</title><link>https://devzone.nordicsemi.com/thread/454392?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 10:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0383ea81-2f2b-47aa-82f8-823ee5b16d38</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like you will need to enable CONFIG_NVS=y as well.&lt;/p&gt;
&lt;p&gt;This setting is enabled by default for the nRF52840, while it is disabled for the nRF5340. I will look into if this is a bug or intended.&lt;/p&gt;
&lt;p&gt;While you don&amp;#39;t have CONFIG_NVS=y enabled, you can see from the partition report that the settings_storage partition is not created, which results in the initialization error&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/1307.pastedimage1699349782110v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Adding CONFIG_NVS=y the settings storage partition will be added to the partitioning&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/8244.pastedimage1699352013169v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Let me know if that resolves the issue you&amp;#39;re seing&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Settings subsystem fails initialization on the nrf5340DK</title><link>https://devzone.nordicsemi.com/thread/454215?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 13:31:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e96e449-5781-4a22-906a-b734f825ab86</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve picked up your case today and will be looking into the sample and your configuration for the nRF5340DK&lt;/p&gt;
&lt;p&gt;I will get back to you as soon as I have something constructive for you&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>