<?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>LittleFS and settings subsystem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126117/littlefs-and-settings-subsystem</link><description>Hello, 
 I am building an application that need to have BLE with bonding enabled. It also need to save a moderate amount of data to a file system connected to a external flash (mx25r6435f). The application also need to save some small amount of data to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Jan 2026 09:18:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126117/littlefs-and-settings-subsystem" /><item><title>RE: LittleFS and settings subsystem</title><link>https://devzone.nordicsemi.com/thread/558114?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2026 09:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9cd4822-6dd1-4742-b1f8-1edf361054a1</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Great! Glad to hear it Jan, and thanks for sharing the solution&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Let us know if there is anything else!&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: LittleFS and settings subsystem</title><link>https://devzone.nordicsemi.com/thread/557938?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2026 14:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bb785c9-7320-4cb3-b905-2cca1d42962a</guid><dc:creator>janR</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;No worries regarding to time to answer. I have been on vacation since before Christmas.&lt;/p&gt;
&lt;p&gt;I managed to find the cause myself. In case someone have similar problem, here are the changes I had to do:&lt;/p&gt;
&lt;p&gt;In the pm_static file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;settings_storage:
  address: 0x003fe000
  end_address: 0x00400000
  size: 0x00002000
  region: external_flash
  device: mx25r6435f
littlefs_storage:
  address: 0x00000000
  end_address: 0x003fe000
  region: external_flash
  device: mx25r6435f
  size: 0x003fe000
  affiliation: disk
  extra_params: {
      disk_name: &amp;quot;littlefs&amp;quot;,
      disk_cache_size: 4096,
      disk_sector_size: 512,
      disk_read_only: 0
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In the Littlefs setup (.h file):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;fs_mount_t m_littlefs_mnt = {
        .type = FS_LITTLEFS,
        .mnt_point = &amp;quot;/lfs&amp;quot;,
        .fs_data = &amp;amp;m_littlefs_data,
        .storage_dev = (void*)FIXED_PARTITION_ID(littlefs_storage),
    };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In the cpp file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int res = fs_mount(&amp;amp;m_littlefs_mnt);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;.storage_dev was set wrong (to this)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;.storage_dev = (void*)FIXED_PARTITION_ID(storage_partition)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In addition I have this in an overlay file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    chosen {
        nordic,pm-ext-flash = &amp;amp;mx25r64;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With these changes Settings and Littlefs uses the mx25 with its own partitions.&lt;br /&gt;And everything works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LittleFS and settings subsystem</title><link>https://devzone.nordicsemi.com/thread/557441?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 14:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3be21b6a-4123-4e48-9f76-31a55e55f10f</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi again Jan,&lt;/p&gt;
&lt;p&gt;Sorry but I haven&amp;#39;t had too much time to look into this, though there seem to be &lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.0.1/page/nrf/scripts/partition_manager/partition_manager.html#external_flash_memory_partitions"&gt;some documentation here on how to set up external partitions&lt;/a&gt;. Could you have a look at that, and try using &lt;span&gt;nordic&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;pm&lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;ext&lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;flash&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;mx25r64&lt;/span&gt;? I didn&amp;#39;t get the impression that this is how you are currently handling it. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90401/enabling-bluetooth-to-the-littlefs-sample-app-will-make-the-littlefs-not-use-external-flash/380885"&gt;It did end up helping in a previous DZ case&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Could you also show me the configurations you have enabled, and how resulting dts ends up looking in the two scenarios? I am eg. wondering if&amp;nbsp;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL has been set either explicitly or implicitly.&lt;/p&gt;
[quote user=""]settings_storage&amp;quot; partition in the pm file[/quote]
&lt;p&gt;Just to confirm, this is a pm_static file, correct?&lt;/p&gt;
&lt;p&gt;For more than this though, I have to get back to you after new years, I hope that is fine.&lt;/p&gt;
&lt;p&gt;Regards and happy holidays,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LittleFS and settings subsystem</title><link>https://devzone.nordicsemi.com/thread/556995?ContentTypeID=1</link><pubDate>Mon, 15 Dec 2025 14:41:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:827d3b5f-f28a-41c6-8c8a-db767a80e161</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hei Jan,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll have to get back to you on this later this week. Hope thats fine.&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></channel></rss>