<?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>Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126420/issues-creating-multiple-littlefs-file-systems-in-external-flash</link><description>I&amp;#39;m having some issues creating multiple LittleFS file systems on a project. This is part of a larger project, so I used the Zephyr LittleFS test code to create a demonstration of the problem I&amp;#39;m encountering: 
 https://github.com/repoocaj/littlefs 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Apr 2026 00:19:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126420/issues-creating-multiple-littlefs-file-systems-in-external-flash" /><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/564402?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2026 00:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ffd2e37-cabb-4342-9328-71e3aa4d5836</guid><dc:creator>Monkeytronics</dc:creator><description>&lt;p&gt;You must have the patience of a saint to have figured that out. Well done and thanks for sharing the solution in such a digestible format.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/564266?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2026 16:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb8b0a73-5b44-47e0-b942-70d90b3c4abd</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;I did get a working solution but then got sidetracked onto a higher priority issue and am just getting back to this.&lt;br /&gt;&lt;br /&gt;Dejan&amp;#39;s reply above was almost correct.&amp;nbsp;When he patched the SDK, he named the new partitions &amp;#39;lfs_part_X&amp;#39; where X is a digit starting at 0.&amp;nbsp; The entries in the pm_static.yml need to start at 0(not 1 as given in his example code.&amp;nbsp; After making that change, I could mount two different partitions.&lt;br /&gt;&lt;br /&gt;My final .overlay file has these sections in it:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;    /* External flash definition. */
    ext_flash: w25q128jv@0  {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;100000000&amp;gt;;    // HW max is 133 MHz
		jedec-id = [ef 70 18];
		size = &amp;lt;0x8000000&amp;gt;;                 // Memory&amp;#39;s size in bits (128 Mbits)
        partitions {
            compatible = &amp;quot;fixed-partitions&amp;quot;;
            #address-cells = &amp;lt;1&amp;gt;;
            #size-cells = &amp;lt;1&amp;gt;;
            app_fs: partition@0 {
                status = &amp;quot;okay&amp;quot;;
                // label is only used to document entry in pm_static.yml
                label = &amp;quot;lfs_part_0&amp;quot;;
                reg = &amp;lt;0x0 0x500000&amp;gt;;       // Partition size in bytes (5 MBytes)
            };

            log_fs: partition@500000 {
                status = &amp;quot;okay&amp;quot;;
                // label is only used to document entry in pm_static.yml
                label = &amp;quot;lfs_part_1&amp;quot;;
                reg = &amp;lt;0x500000 0x900000&amp;gt;;  // Partition size in bytes (9 MBytes)
            };
        };
	};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;    /* Configuration for littleFS to be mounted before boot */
    fstab {
        compatible = &amp;quot;zephyr,fstab&amp;quot;;
        fs: fs{
            compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
            mount-point = &amp;quot;/fs&amp;quot;;
            partition = &amp;lt;&amp;amp;app_fs&amp;gt;;
            automount;
            read-size = &amp;lt;16&amp;gt;;
            prog-size = &amp;lt;16&amp;gt;;
            cache-size = &amp;lt;4096&amp;gt;;
            lookahead-size = &amp;lt;32&amp;gt;;
            block-cycles = &amp;lt;512&amp;gt;;
        };

        log: log{
            compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
            mount-point = &amp;quot;/data&amp;quot;;
            partition = &amp;lt;&amp;amp;log_fs&amp;gt;;
            automount;
            read-size = &amp;lt;16&amp;gt;;
            prog-size = &amp;lt;16&amp;gt;;
            cache-size = &amp;lt;4096&amp;gt;;
            lookahead-size = &amp;lt;64&amp;gt;;
            block-cycles = &amp;lt;128&amp;gt;;
        };
    };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My pm_static.yml contains:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# The external partitions need to follow the naming pattern defined in
# zephyr/subsys/fs/littlefs_fs.c of the NCS SDK that is used to build the
# application.  This defaults to &amp;#39;littlefs_storage&amp;#39; in the standard release
# which only allows a single instance of a LittleFS filesystem to be defined.
#
# Our fork of the SDK has been patched to change this to &amp;#39;lfs_part_?&amp;#39; which
# allows multiple partitions to be defined.

lfs_part_0:
  address: 0x0
  end_address: 0x500000
  region: external_flash
  size: 0x500000

lfs_part_1:
  address: 0x500000
  end_address: 0x1000000
  region: external_flash
  size: 0xb00000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I think I also had an issue with the system still wanting to create a &amp;#39;littlefs_storage&amp;#39; partition and ended up setting this in my prj.conf to stop that:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Set the size of the &amp;#39;littlefs_storage&amp;#39; partition to zero, so that it doesn&amp;#39;t get created
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I plan on updating my example code repo&amp;nbsp;to show a working example but haven&amp;#39;t had the time to do that yet.&lt;br /&gt;&lt;br /&gt;Hopefully this will get you started on the right path.&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/564225?ContentTypeID=1</link><pubDate>Sun, 29 Mar 2026 08:42:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:494e4a02-01d2-4432-b3d8-44144362ba9c</guid><dc:creator>Monkeytronics</dc:creator><description>&lt;p&gt;Did you ever solve this or did Jeff give up on the grounds that this is so spectacularly complicated? Here&amp;#39;s the thing. I&amp;#39;d also like to put little fs onto external flash after the secondary app partition. It sounds like you don&amp;#39;t have a working recipe and are cobbling together a process where you create a starting point that generates a partition.yml. Then you hand modify the partition.yml and save it as static_pm.yml. Do I have that right?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/559196?ContentTypeID=1</link><pubDate>Tue, 20 Jan 2026 17:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d0150f-c3cd-48ca-9c24-23b86def6b48</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
[quote user="Jeff Cooper"]Now everything (including block-cycles) has changed to match the device tree fstab values except for the size of the partition.&amp;nbsp;[/quote]
&lt;p&gt;In NCS v3.2.1 all sizes should match fstab values. The partition sizes are expected to be taken from partition manager static configuration.&lt;br /&gt;&lt;br /&gt;You can try out configuration files shown below (2 lfs_part partitions of 64 KB and 1 MB are made in external flash as can be seen from partition manager report)&lt;br /&gt;pm_static.yml&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x0
  end_address: 0x100000
  region: flash_primary
  size: 0x100000
external_flash:
  address: 0x6000
  end_address: 0x800000
  region: external_flash
  size: 0x7fa000
littlefs_storage:
  address: 0x0
  device: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0x6000
  placement:
    before:
    - tfm_storage
    - end
  region: external_flash
  size: 0x6000
lfs_part_1:
  address: 0x6000
  device: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0x16000
  placement:
    before:
    - tfm_storage
    - end
  region: external_flash
  size: 0x10000
lfs_part_2:
  address: 0x16000
  device: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0x116000
  placement:
    before:
    - tfm_storage
    - end
  region: external_flash
  size: 0x100000
sram_primary:
  address: 0x20000000
  end_address: 0x20040000
  region: sram_primary
  size: 0x40000&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;nrf52840dk_nrf52840.overlay&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2019 Peter Bigot Consulting, LLC
 *
 * SPDX-License-Identifier: Apache-2.0
 */


 / {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};


/delete-node/ &amp;amp;storage_partition;

/ {
	fstab {
		compatible = &amp;quot;zephyr,fstab&amp;quot;;
		app_fs: app_fs {
			compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
			mount-point = &amp;quot;/fs&amp;quot;;
			partition = &amp;lt;&amp;amp;app_fs_part&amp;gt;;
			automount;
			read-size = &amp;lt;16&amp;gt;;
			prog-size = &amp;lt;16&amp;gt;;
			cache-size = &amp;lt;64&amp;gt;;
			lookahead-size = &amp;lt;32&amp;gt;;
			block-cycles = &amp;lt;512&amp;gt;;
		};

		log_fs: log_fs{
            compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
            mount-point = &amp;quot;/log&amp;quot;;
            partition = &amp;lt;&amp;amp;log_fs_part&amp;gt;;
            automount;
            read-size = &amp;lt;16&amp;gt;;
            prog-size = &amp;lt;16&amp;gt;;
            cache-size = &amp;lt;4096&amp;gt;;
            lookahead-size = &amp;lt;64&amp;gt;;
            block-cycles = &amp;lt;128&amp;gt;;
        };

		log_fs_2: log_fs_2{
            compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
            mount-point = &amp;quot;/log_2&amp;quot;;
            partition = &amp;lt;&amp;amp;log_fs_part_2&amp;gt;;
            automount;
            read-size = &amp;lt;16&amp;gt;;
            prog-size = &amp;lt;16&amp;gt;;
            cache-size = &amp;lt;4096&amp;gt;;
            lookahead-size = &amp;lt;64&amp;gt;;
            block-cycles = &amp;lt;128&amp;gt;;
        };
	};
};

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

		app_fs_part: partition@0 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x00000000 0x00010000&amp;gt;;
		};

		log_fs_part: partition@10000 {
			label = &amp;quot;logs&amp;quot;;
			reg = &amp;lt;0x00010000 0x00050000&amp;gt;;
		};

		log_fs_part_2: partition@50000 {
			label = &amp;quot;logs_2&amp;quot;;
			reg = &amp;lt;0x00050000 0x00090000&amp;gt;;
		};

	};
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Partition manager report (west build -t partition_manger_report)&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;external_flash (0x800000 - 8192kB): 
+--------------------------------------------+
| 0x0: littlefs_storage (0x6000 - 24kB)      |
| 0x6000: external_flash (0x7fa000 - 8168kB) |
| 0x6000: lfs_part_1 (0x10000 - 64kB)        |
| 0x16000: lfs_part_2 (0x100000 - 1024kB)    |
+--------------------------------------------+

  flash_primary (0x100000 - 1024kB): 
+------------------------------+
| 0x0: app (0x100000 - 1024kB) |
+------------------------------+

  sram_primary (0x40000 - 256kB): 
+--------------------------------------------+
| 0x20000000: sram_primary (0x40000 - 256kB) |
+--------------------------------------------+&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Jeff Cooper"]If I need to&amp;nbsp;create a &amp;#39;pm_static.yml&amp;#39; to define my partitions for the partition manager, how does that relate to the device tree fstab entries?[/quote]
&lt;p&gt;When partition manager is used, entries in the devicetree are not used.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For having multiple littlefs partitions when using partition manager, following SDK changes are also needed:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;diff --git a/subsys/fs/littlefs_fs.c b/subsys/fs/littlefs_fs.c
index 5abbf95f949..0e155437fc5 100644
--- a/subsys/fs/littlefs_fs.c
+++ b/subsys/fs/littlefs_fs.c
@@ -1105,8 +1105,8 @@ struct fs_mount_t FS_FSTAB_ENTRY(DT_DRV_INST(inst)) = { \
        .fs_data = &amp;amp;fs_data_##inst, \
        .storage_dev = (void *) \
                COND_CODE_1(USE_PARTITION_MANAGER, \
-                           (COND_CODE_1(FIXED_PARTITION_EXISTS(littlefs_storage), \
-                                        (FIXED_PARTITION_ID(littlefs_storage)), \
+                           (COND_CODE_1(FIXED_PARTITION_EXISTS(lfs_part##inst), \
+                                        (FIXED_PARTITION_ID(lfs_part##inst)), \
                                         (FIXED_PARTITION_ID(storage)))), \
                            (DT_FIXED_PARTITION_ID(FS_PARTITION(inst)))), \
        .flags = FSTAB_ENTRY_DT_MOUNT_FLAGS(DT_DRV_INST(inst)), \&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558846?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2026 02:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21edbeef-b0de-4382-8784-61eeefdf058f</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;All of the images that I&amp;#39;m running below were built with sysbuild.&lt;/p&gt;
&lt;p&gt;The values I changed were in the fstab entry of the device tree.&amp;nbsp; I made a change to them to see if the&amp;nbsp;image was using those values&amp;nbsp;from the device tree or was getting them from somewhere else.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I boot an image from the&amp;nbsp;nordic_suggestions.3.2.1 branch built with NCS 2.7.0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: LittleFS version 2.8, disk version 2.1
I: FS at mx25r6435f@0:0x0 is 16 0x1000-byte blocks with 512 cycle
I: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
I: Automount /lfs1 succeeded
*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***&lt;/pre&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;16 0x1000-byte: second value of reg entry for the partition (0x00010000)&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;block-cycles: 512 cycle&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;rd (read-size): 16&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;pr (prog-size): 16&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;ca (cache-size): 64&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;la (lookahead-size): 32&lt;/p&gt;
&lt;p&gt;If I modify those values as shown below and rebuild with NCS 2.7.0.:&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/2026_2D00_01_2D00_15_5F00_20_2D00_02.png" /&gt;&lt;/p&gt;
&lt;p&gt;I get the following output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: LittleFS version 2.8, disk version 2.1
I: FS at mx25r6435f@0:0x0 is 32 0x1000-byte blocks with 512 cycle
I: sizes: rd 4 ; pr 8 ; ca 16 ; la 64
I: Automount /lfs1 succeeded
*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So we can see that all of the values were updated in the output except for the block-cycles, that still stayed at 512 even though I tried to set it to 256.&lt;/p&gt;
&lt;p&gt;The size of the file system also changed from 16 0x1000 byte blocks to 32 blocks following the change of the value&amp;nbsp;of the reg entry in the partition table for the &amp;#39;lfs1_part&amp;#39; entry.&lt;/p&gt;
&lt;p&gt;Now, if I build with NCS 2.8.0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: LittleFS version 2.9, disk version 2.1
I: FS at mx25r6435f@0:0x0 is 6 0x1000-byte blocks with 512 cycle
I: sizes: rd 4 ; pr 8 ; ca 16 ; la 64
I: Automount /lfs1 succeeded
*** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The changed values in the fstab entry are still changed in this output (except for the block-cycles) however, the file system size is now 6 0x1000 byte blocks and not the 32 0x1000 byte blocks specified in the &amp;#39;lfs1_part&amp;#39;&amp;nbsp;entry of the device tree.&lt;/p&gt;
&lt;p&gt;If I build with NCS 3.2.1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: LittleFS version 2.11, disk version 2.1
I: FS at mx25r6435f@0:0x0 is 6 0x1000-byte blocks with 256 cycle
I: partition sizes: rd 4 ; pr 8 ; ca 16 ; la 64
I: Automount /lfs1 succeeded
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now everything (including block-cycles) has changed to match the device tree fstab values except for the size of the partition.&amp;nbsp; I assume that the block-cycle not changing was a bug that was fixed at some point.&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m not understanding is how to configure the partitions and fstab entries when using a NCS that is 2.8.0 or newer.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I remove the &amp;#39;partition&amp;#39; entry in fstab, I get the following error when trying to build in NCS 3.2.1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Found devicetree overlay: /home/jeffc/projects/test/littlefs/boards/nrf52840dk_nrf52840.overlay
devicetree error: &amp;#39;partition&amp;#39; is marked as required in &amp;#39;properties:&amp;#39; in /home/jeffc/ncs/v3.2.1/zephyr/dts/bindings/fs/zephyr,fstab,littlefs.yaml, but does not appear in &amp;lt;Node /fstab/lfs1 in /home/jeffc/projects/test/littlefs/boards/nrf52840dk_nrf52840.overlay:17&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So, it appears that I need a partition entry in fstab to point at something in the devicetree, but the information in it isn&amp;#39;t being used.&lt;/p&gt;
&lt;p&gt;If I need to&amp;nbsp;create a &amp;#39;pm_static.yml&amp;#39; to define my partitions for the partition manager, how does that relate to the device tree fstab entries?&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558841?ContentTypeID=1</link><pubDate>Thu, 15 Jan 2026 23:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1b4baa4-61d8-4e0d-b73d-4c91fa4086b4</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;br /&gt;&lt;br /&gt;I used your nordic_suggestions.3.2.1 branch for testing and got this result&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: littlefs partition at /fs
I: LittleFS version 2.11, disk version 2.1
D: FS area 1 at 0x0 for 24576 bytes
I: FS at mx25r6435f@0:0x0 is 6 0x1000-byte blocks with 512 cycle
I: partition sizes: rd 16 ; pr 16 ; ca 64 ; la 32
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:1386: Corrupted dir pair at {0x0, 0x1}
W: can&amp;#39;t mount (LFS -84); formatting
I: /fs mounted
D: fs mounted at /fs
I: Automount /fs succeeded
I: littlefs partition at /log
I: LittleFS version 2.11, disk version 2.1
D: FS area 1 at 0x0 for 24576 bytes
I: FS at mx25r6435f@0:0x0 is 6 0x1000-byte blocks with 128 cycle
I: partition sizes: rd 16 ; pr 16 ; ca 4096 ; la 64
D: fs mounted at /log
I: Automount /log succeeded
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
Sample program to r/w files on littlefs
Area 1 at 0x0 on mx25r6435f@0 for 24576 bytes
/fs was automounted
/fs: bsize = 16 ; frsize = 4096 ; blocks = 6 ; bfree = 4

Listing dir / ...
[DIR ] fs
[DIR ] log

Listing dir /fs ...

Listing dir /log ...

/fs/boot_count read count:0 (bytes: 0)
/fs/boot_count write new boot count 1: [wr:1]
I: /fs unmounted
D: fs unmounted from /fs
/fs unmount: 0&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Here is the output of &amp;quot;west build -t partition_manager_report&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; external_flash (0x800000 - 8192kB):
+--------------------------------------------+
| 0x0: littlefs_storage (0x6000 - 24kB)      |
| 0x6000: external_flash (0x7fa000 - 8168kB) |
+--------------------------------------------+

  flash_primary (0x100000 - 1024kB):
+------------------------------+
| 0x0: app (0x100000 - 1024kB) |
+------------------------------+

  sram_primary (0x40000 - 256kB):
+--------------------------------------------+
| 0x20000000: sram_primary (0x40000 - 256kB) |
+--------------------------------------------+
&lt;/pre&gt;&lt;br /&gt;Do you get the same result?&lt;/p&gt;
[quote user="Jeff Cooper"]&lt;p&gt;This version does appear to use the file system values for read-size, prog-size, etc that are defined in the fstab in the device tree.&amp;nbsp; I can make changes to those values and see the change in the log output when the file system is mounted.&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t appear to use the partition size defined in the device tree.&lt;/p&gt;[/quote]
&lt;p&gt;Can you point to relevant values that you tried to change and how?&lt;br /&gt;Can you elaborate on &amp;quot;&lt;span&gt;&amp;nbsp;I can make changes to those values and see the change in the log output when the file system is mounted.&lt;/span&gt;&amp;quot;?&lt;/p&gt;
[quote user="Jeff Cooper"]It doesn&amp;#39;t appear to use the partition size defined in the device tree.[/quote]
&lt;p&gt;Which partition size do you refer to? What is your expectation regarding partition size?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558723?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2026 15:56:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50c04985-9dff-42d8-af63-e93de4ed4c39</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;No, the littlefs sample does not work as expected.&lt;/p&gt;
&lt;p&gt;I started out with trying the example as-is building with sysbuild and NCS 3.2.1.&amp;nbsp; That&amp;nbsp;built&amp;nbsp;but when flashed to a nRF52840DK&amp;nbsp;it created a 24 kiB LittleFS file system on the internal flash.&lt;/p&gt;
&lt;p&gt;I believe that was due to the name of the overlay file: &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;boards/nrf52840dk_nrf52840_qspi.overlay&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Next, I renamed that overlay file to &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;boards/nrf52840dk_nrf52840.overlay&lt;/span&gt; which was found by the build.&amp;nbsp; When I flashed that version, it&amp;nbsp;still created a&amp;nbsp;&lt;span&gt;24 kiB LittleFS file system&amp;nbsp;&lt;/span&gt;&lt;span&gt;on the internal flash.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: littlefs partition at /lfs1
I: LittleFS version 2.11, disk version 2.1
I: FS at flash-controller@4001e000:0xfa000 is 6 0x1000-byte blocks with 512 cycle
I: partition sizes: rd 16 ; pr 16 ; ca 64 ; la 32
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:1386: Corrupted dir pair at {0x0, 0x1}
W: can&amp;#39;t mount (LFS -84); formatting
I: /lfs1 mounted
I: Automount /lfs1 succeeded
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
Sample program to r/w files on littlefs
Area 1 at 0xfa000 on flash-controller@4001e000 for 24576 bytes
/lfs1 automounted
/lfs1: bsize = 16 ; frsize = 4096 ; blocks = 6 ; bfree = 4&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I believe that was due to me not having your suggested changes implemented:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add&amp;nbsp;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y to prj.conf&lt;/li&gt;
&lt;li&gt;Add a chosen section to the device tree overlay.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Next, I added those&amp;nbsp;changes to their respective files and rebuilt and flashed.&amp;nbsp; That did create a&amp;nbsp;LittleFS file system on the external flash but it was not the size defined in the devicetree.&amp;nbsp; It was still 24 kiB.&amp;nbsp; The partition defined in the device tree is 64 kiB.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: littlefs partition at /lfs1
I: LittleFS version 2.11, disk version 2.1
I: FS at mx25r6435f@0:0x0 is 6 0x1000-byte blocks with 512 cycle
I: partition sizes: rd 16 ; pr 16 ; ca 64 ; la 32
I: Automount /lfs1 succeeded
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
Sample program to r/w files on littlefs
Area 1 at 0x0 on mx25r6435f@0 for 24576 bytes
/lfs1 automounted
/lfs1: bsize = 16 ; frsize = 4096 ; blocks = 6 ; bfree = 3&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This version does appear to use the file system values for read-size, prog-size, etc that are defined in the fstab in the device tree.&amp;nbsp; I can make changes to those values and see the change in the log output when the file system is mounted.&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t appear to use the partition size defined in the device tree.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve added a branch to my repo that has these latest changes in it:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/repoocaj/littlefs/tree/nodic_suggestions.3.2.1"&gt;https://github.com/repoocaj/littlefs/tree/nodic_suggestions.3.2.1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you run that branch on a nRF52840DK do you get the same results?&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558674?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2026 09:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be1a6cd8-012b-4fd2-b42e-168a4f955607</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;br /&gt;&lt;br /&gt;If you start from unmodified littlefs sample linked previously, does having only one littlefs file system on external flash work for you in NCS v3.2.1 (sysbuild enabled)?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558622?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 15:37:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0eb42af-4147-4144-95ba-dac46b0c8512</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;The code in my example repo is based on the Zephyr littlefs example.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve added code to demonstrate the issue I&amp;#39;m having with multiple LittleFS file systems on external flash and to remove some unnecessary board files and the pattern test.&lt;/p&gt;
&lt;p&gt;Can you clone this branch:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/repoocaj/littlefs/tree/mcuboot.3.2.1"&gt;https://github.com/repoocaj/littlefs/tree/mcuboot.3.2.1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And take a look at the example?&amp;nbsp; This branch is meant to be built with NCS 3.2.1.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve had the changes you suggested above in the example&amp;nbsp;since I asked my original question.&lt;/p&gt;
&lt;p&gt;I have a &amp;#39;pm_static.yml&amp;#39; defined for my two LittleFS partitions on the external flash, but I don&amp;#39;t know how to reference them in my device tree fstab entry.&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558619?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 15:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beea7ff1-3b2c-4071-9be3-0397a9546695</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure how to build a multi image without sysbuild.&lt;/p&gt;
&lt;p&gt;I checked out my &amp;#39;mcuboot-3.2.1&amp;#39; branch from my example repo and created two build configurations in VS Code, one with sysbuild and one without.&lt;/p&gt;
&lt;p&gt;That created an applications entry in VS Code that looks like:&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/2026_2D00_01_2D00_13_5F00_09_2D00_23.png" /&gt;&lt;/p&gt;
&lt;p&gt;So it doesn&amp;#39;t look like VS Code created multi images without using sysbuild.&lt;/p&gt;
&lt;p&gt;If I flash the &amp;#39;build-no-sysbuild&amp;#39; image, it works in that it correctly mounts the LittleFS partitions on the external flash, but it didn&amp;#39;t use MCUboot.&lt;/p&gt;
&lt;p&gt;If I flash the &amp;#39;build-sysbuild&amp;#39; images, it uses MCUboot but doesn&amp;#39;t mount the partitions from external flash.&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558614?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 14:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:991929a2-5812-4640-8feb-37363103caa8</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;br /&gt;&lt;br /&gt;For reference, you can look at&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.2.1/page/zephyr/samples/subsys/fs/littlefs/README.html"&gt;Zephyr littlefs&lt;/a&gt;&amp;nbsp;sample.&amp;nbsp;&lt;br /&gt;You need to ensure that you include CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y in your prj.conf and the following app.overlay file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558583?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2026 12:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab0d4cb2-e2d1-4c5d-b402-fa51b5aad6ed</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;br /&gt;&lt;br /&gt;Do you have multi image builds in both cases, with and without sysbuild?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558535?ContentTypeID=1</link><pubDate>Mon, 12 Jan 2026 16:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:185d9b16-da68-4ebb-b0e0-0a61ee4ddfbb</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;Dejan,&lt;/p&gt;
&lt;p&gt;Can you provide any assistance in defining a partition layout that will be accepted by partition manager and sysbuild that would allow a pair of LittleFS file systems to exist in the external flash on a nRF52840DK?&lt;/p&gt;
&lt;p&gt;The link about the partition manager activation that you gave states that:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;When you build a multi-image application using the Partition Manager, the devicetree source flash partitions are ignored.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m taking that to mean that I don&amp;#39;t define my external partitions with an entry in the device tree like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;mx25r64 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		app_fs_part: partition@0 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x00000000 0x00010000&amp;gt;;
		};

		log_fs_part: partition@10000 {
			label = &amp;quot;logs&amp;quot;;
			reg = &amp;lt;0x00010000 0x00050000&amp;gt;;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, my fstab entry in my device tree looks like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	fstab {
		compatible = &amp;quot;zephyr,fstab&amp;quot;;
		app_fs: app_fs {
			compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
			mount-point = &amp;quot;/fs&amp;quot;;
			partition = &amp;lt;&amp;amp;app_fs_part&amp;gt;;
			automount;
			read-size = &amp;lt;16&amp;gt;;
			prog-size = &amp;lt;16&amp;gt;;
			cache-size = &amp;lt;64&amp;gt;;
			lookahead-size = &amp;lt;32&amp;gt;;
			block-cycles = &amp;lt;512&amp;gt;;
		};

		log_fs: log_fs{
            compatible = &amp;quot;zephyr,fstab,littlefs&amp;quot;;
            mount-point = &amp;quot;/log&amp;quot;;
            partition = &amp;lt;&amp;amp;log_fs_part&amp;gt;;
            automount;
            read-size = &amp;lt;16&amp;gt;;
            prog-size = &amp;lt;16&amp;gt;;
            cache-size = &amp;lt;4096&amp;gt;;
            lookahead-size = &amp;lt;64&amp;gt;;
            block-cycles = &amp;lt;128&amp;gt;;
        };
	};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Where the partition entry (e.g. &amp;#39;&lt;span&gt;partition&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;app_fs_part&lt;/span&gt;&lt;span&gt;&amp;gt;;&amp;#39;)&amp;nbsp;&lt;/span&gt;references the entries in the device tree partition table.&lt;/p&gt;
&lt;p&gt;How do I create references to partitions that are defined by the partition manager?&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558489?ContentTypeID=1</link><pubDate>Mon, 12 Jan 2026 10:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a24fab4d-2538-45f5-834d-7c9e6b514778</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Jeff Cooper"]Do you know why using sysbuild would be causing this issue?[/quote]
&lt;p&gt;Support for&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/releases_and_maturity/migration/migration_sysbuild.html#partition_manager"&gt;partition manager&lt;/a&gt;&amp;nbsp;for an image was moved to sysbuild and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html"&gt;partition manager is activated&lt;/a&gt;&amp;nbsp;for all sysbuild builds.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558417?ContentTypeID=1</link><pubDate>Fri, 09 Jan 2026 15:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e9fb3f1-809b-467a-821d-f902e5f1c921</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;If I build the single file system version without sysbuild in both NCS 2.8.0 and 3.2.1, the LittleFS partition is mounted correctly from the external flash.&lt;/p&gt;
&lt;p&gt;I also tried the dual file system branch and that works as well.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;D: fs register 1: 0
I: littlefs partition at /fs
I: LittleFS version 2.9, disk version 2.1
D: FS area 0 at 0x0 for 65536 bytes
I: FS at mx25r6435f@0:0x0 is 16 0x1000-byte blocks with 512 cycle
I: sizes: rd 4 ; pr 8 ; ca 16 ; la 16
D: fs mounted at /fs
I: Automount /fs succeeded
*** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
Sample program to r/w files on littlefs
Area 0 at 0x0 on mx25r6435f@0 for 65536 bytes
/fs was automounted
/fs: bsize = 8 ; frsize = 4096 ; blocks = 16 ; bfree = 14

Listing dir / ...
[DIR ] fs

Listing dir /fs ...
[FILE] boot_count (size = 1)
/fs/boot_count read count:7 (bytes: 1)
/fs/boot_count write new boot count 8: [wr:1]
I: /fs unmounted
D: fs unmounted from /fs
/fs unmount: 0
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you know why using sysbuild would be causing this issue?&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t testing enabling MCUboot and building without sysbuild yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558369?ContentTypeID=1</link><pubDate>Fri, 09 Jan 2026 10:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e430eb1b-5efc-4e64-8ed2-8367926e573f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;br /&gt;&lt;br /&gt;What is the result when you build single file system without sysbuild (in NCS v2.8.0 and v3.2.1)?&lt;br /&gt;You can choose the option &amp;quot;No Sysbuild&amp;quot; for Build Configuration in VS Code or use --no-sysbuild flag when building using west.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558330?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2026 20:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d8c0956-bae9-45cf-b018-2b4ca7977359</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;Dejan,&lt;/p&gt;
&lt;p&gt;I forgot to add that I tried changing more of the values in the fstab (read-size, prog-size, cache-size, lookahead-size and block-cycles).&amp;nbsp; Those are picked up and used when mounting the file system.&lt;/p&gt;
&lt;p&gt;It just seems to be ignoring what the partition value is set to or it&amp;#39;s being overwritten somehow.&lt;/p&gt;
&lt;p&gt;The `partitions.yml` generated by the 3.2.1 build looks like:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x0
  end_address: 0xfa000
  region: flash_primary
  size: 0xfa000
littlefs_storage:
  address: 0xfa000
  end_address: 0x100000
  placement:
    before:
    - end
  region: flash_primary
  size: 0x6000
sram_primary:
  address: 0x20000000
  end_address: 0x20040000
  region: sram_primary
  size: 0x40000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So it&amp;#39;s not doing anything with the external flash.&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558329?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2026 19:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1070fc5a-cf83-4308-9a47-c1a716f54ddc</guid><dc:creator>Jeff</dc:creator><description>&lt;p&gt;He Dejan,&lt;/p&gt;
&lt;p&gt;Thanks for looking into this.&lt;/p&gt;
&lt;p&gt;When I&amp;#39;ve been&amp;nbsp;generating my build configurations in VS Code, I&amp;#39;ve just been selecting &amp;#39;Build System default&amp;#39; as the system build option.&amp;nbsp; Following your suggestion, I selected the &amp;#39;sysbuild&amp;#39; option and removed one of the file systems from use in the code.&lt;/p&gt;
&lt;p&gt;I also removed the previous configuration (from within VS Code) and recreated it for each build to make sure that there wasn&amp;#39;t any leftover stuff influencing the build.&lt;br /&gt;&lt;br /&gt;I built and tested with both 2.8.0 and 3.2.1 and the results are&amp;nbsp;essentially the same other than the changes of the OS version and LittleFS versions.&amp;nbsp; Both versions didn&amp;#39;t mount a LittleFS on the external flash and didn&amp;#39;t use the size defined in fstab and partitions defined in the overlay file.&lt;/p&gt;
&lt;p&gt;I did verify&amp;nbsp;in&amp;nbsp;the build output that the build located my overlay file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Found devicetree overlay: /home/jeffc/projects/test/littlefs/boards/nrf52840dk_nrf52840.overlay&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the output of the 3.2.1 build running on a nRF52840DK:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;D: fs register 1: 0
I: littlefs partition at /fs
I: LittleFS version 2.11, disk version 2.1
D: FS area 1 at 0xfa000 for 24576 bytes
I: FS at flash-controller@4001e000:0xfa000 is 6 0x1000-byte blocks with 512 cycle
I: partition sizes: rd 16 ; pr 16 ; ca 64 ; la 32
D: fs mounted at /fs
I: Automount /fs succeeded
*** Booting nRF Connect SDK v3.2.1-d8887f6f32df ***
*** Using Zephyr OS v4.2.99-ec78104f1569 ***
Sample program to r/w files on littlefs
Area 1 at 0xfa000 on flash-controller@4001e000 for 24576 bytes
/fs was automounted
/fs: bsize = 16 ; frsize = 4096 ; blocks = 6 ; bfree = 4

Listing dir / ...
[DIR ] fs

Listing dir /fs ...
[FILE] boot_count (size = 1)
/fs/boot_count read count:2 (bytes: 1)
/fs/boot_count write new boot count 3: [wr:1]
I: /fs unmounted
D: fs unmounted from /fs
/fs unmount: 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve pushed my changes for the single file system test to a branch, single_fs, in my github repo:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/repoocaj/littlefs/tree/single_fs"&gt;https://github.com/repoocaj/littlefs/tree/single_fs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues creating multiple LittleFS file systems in external flash</title><link>https://devzone.nordicsemi.com/thread/558324?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2026 17:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cafc4dc4-3596-4834-995d-b07d88dd705b</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
[quote user=""] if I build the same project with NCS 2.8.0 and flash it to the same board, it doesn&amp;#39;t work.&amp;nbsp; It&amp;#39;s now using the internal flash and both file systems are using the same area of flash and are of the same size[/quote]
&lt;p&gt;What happens if you use only one file system (instead of two) in NCS v2.8.0 (and NCS v3.2.1)?&lt;br /&gt;&lt;br /&gt;Have you built your project in NCS v2.8.0 and NCS v3.2.1 using sysbuild?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>