<?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>Mount LittleFS to both internal &amp;amp; external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104260/mount-littlefs-to-both-internal-external-flash</link><description>Greetings, 
 I have previously added the LittleFS to the internal flash of the nRF52840 with success using the available documentation. Our .dts &amp;amp; and code is shown below. 
 
 
 prj.conf 
 
 After this configuration, we were able to use the internal flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 May 2025 08:41:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104260/mount-littlefs-to-both-internal-external-flash" /><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/537495?ContentTypeID=1</link><pubDate>Fri, 30 May 2025 08:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b803544-9d5e-4d28-8266-2985e7d84088</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/clockis"&gt;clockis&lt;/a&gt;&amp;nbsp;&lt;br /&gt;I&amp;#39;m encountering the same issue &amp;mdash; did you happen to find a solution?&lt;br /&gt;Regards,&lt;br /&gt;Aur&amp;eacute;lien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/454051?ContentTypeID=1</link><pubDate>Sat, 04 Nov 2023 01:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:396825c8-8d7b-469a-b510-6b86e3de0aef</guid><dc:creator>mluo</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;I am very interested in a possible solution.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/454030?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 17:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5b4172b-0bc0-4f4c-b107-ee703521b934</guid><dc:creator>GiorgioG</dc:creator><description>&lt;p&gt;Hi, sorry to get into this conversation; I have the same problem, the same flash and the same micro, and I am very interested in a possible solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/453551?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 15:08:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6599e047-6f1d-4b4c-9ed2-fd475647c5b6</guid><dc:creator>clockis</dc:creator><description>&lt;p&gt;Hello Sigurd,&lt;/p&gt;
&lt;p&gt;I did try all combinations of defining the mount point with the&amp;nbsp;&lt;span&gt;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y enabled but I still get a mounting error for the external flash storage ( the internal flash is mounted successfully).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please provide some feedback on the following questions:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Is it possible to mount one instance of the LittleFS system in the internal flash and in the same application (simultaneously) mount a second instance of the LittleFS system in the external SPI NOR flash?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Could you please send some code or some more specific information on which way the mounting needs to be set-up, using the FSTAB entries or manually?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Also what about the .dts file do I need to just define the flash memory subnode in the spi node as shown below or do I need to add the partition property to it as shown in the second segment below:&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;Just the flash memory node:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi1{
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt; &amp;amp;gpio0 26 GPIO_ACTIVE_LOW &amp;gt;;

	w25q512nw: w25q512nw@0 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		label = &amp;quot;W25Q512NW&amp;quot;;
		wp-gpios = &amp;lt;&amp;amp;gpio0 30 GPIO_ACTIVE_LOW&amp;gt;;
		hold-gpios = &amp;lt;&amp;amp;gpio0 14 GPIO_ACTIVE_LOW&amp;gt;;
		reg = &amp;lt; 0 &amp;gt;;
		spi-max-frequency = &amp;lt; 8000000 &amp;gt;;
		jedec-id = [ ef 60 20 ]; // Manufacturer ID = EFh, Memory Type (ID15-ID8) = 60h and Capacity (ID7-ID0) = 20h 
		size = &amp;lt; 536870912 &amp;gt;;    // Flash capacity in bits = 512M-bit = 1024 * 1024 * 512 * 1bit = 536870912 bit
		has-dpd;
		t-enter-dpd = &amp;lt; 3000 &amp;gt;;  // in nanoseconds - The power-down state will entered within the time duration of tDP: 3us 
		t-exit-dpd = &amp;lt; 30000 &amp;gt;;  // in nanoseconds - The Release from power-down will take the time duration of tRES1: 30us
	};
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The flash memory node with the partition property as shown in the post you &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/101242/unable-to-use-littlefs-on-external-flash-on-nrf9160"&gt;linked&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi1{
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt; &amp;amp;gpio0 26 GPIO_ACTIVE_LOW &amp;gt;;

	w25q512nw: w25q512nw@0 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		label = &amp;quot;W25Q512NW&amp;quot;;
		wp-gpios = &amp;lt;&amp;amp;gpio0 30 GPIO_ACTIVE_LOW&amp;gt;;
		hold-gpios = &amp;lt;&amp;amp;gpio0 14 GPIO_ACTIVE_LOW&amp;gt;;
		reg = &amp;lt; 0 &amp;gt;;
		spi-max-frequency = &amp;lt; 8000000 &amp;gt;;
		jedec-id = [ ef 60 20 ]; // Manufacturer ID = EFh, Memory Type (ID15-ID8) = 60h and Capacity (ID7-ID0) = 20h 
		size = &amp;lt; 536870912 &amp;gt;;    // Flash capacity in bits = 512M-bit = 1024 * 1024 * 512 * 1bit = 536870912 bit
		has-dpd;
		t-enter-dpd = &amp;lt; 3000 &amp;gt;;  // in nanoseconds - The power-down state will entered within the time duration of tDP: 3us 
		t-exit-dpd = &amp;lt; 30000 &amp;gt;;  // in nanoseconds - The Release from power-down will take the time duration of tRES1: 30us
	    partitions {
			compatible = &amp;quot;fixed-partitions&amp;quot;;
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;
			/* 64 MB partition to use for LFS filesystem */
			ext_storage_partition: partition@0000000 {
				label = &amp;quot;external_flash&amp;quot;;
				reg = &amp;lt;0x0000000 0x2000000&amp;gt;;
			};
		};
	};
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also assumed this piece for the .dts is necessary, &lt;strong&gt;please confirm.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;chosen {
		nordic,pm-ext-flash = &amp;amp;w25q512nw;
	};&lt;/pre&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;For the mount point definition(for the external flash) in the code so I need to define using the FSTAB entry or the manual entry? &lt;strong&gt;For the manual entry, what do I need to put in the .storage_dev field?&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(_LfsConfig);
static struct fs_mount_t lfs_storage_mnt = {
	.type = FS_LITTLEFS,
	.fs_data = &amp;amp;_LfsConfig,
	// .storage_dev = (void *)FLASH_AREA_LABEL_STR(external_flash),
	.storage_dev = (void *)FLASH_AREA_ID(external_flash),
	.mnt_point = &amp;quot;/lfs2&amp;quot;,
};

static struct fs_mount_t *mp = &amp;amp;lfs_storage_mnt;&lt;/pre&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The internal flash is set up successfully using the following definition of the mount point. &lt;strong&gt;Could this definition create conflicts with the external flash definition of the mount point?&lt;/strong&gt;:&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(_Lfs1Config);
static struct fs_mount_t lfs_storage_mnt = {
	.type = FS_LITTLEFS,
	.fs_data = &amp;amp;_Lfs1Config,
	.storage_dev = (void *)FLASH_AREA_ID(storage),
	.mnt_point = &amp;quot;/lfs1&amp;quot;,
};

static	struct fs_mount_t *mp =	&amp;amp;lfs_storage_mnt;&lt;/pre&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;For the prj file I have the following, please confirm if any config options are missing or need to be changed?&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Flash File System configuration
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y

# SPI NOR configuration
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

# Partition Manager Setttings
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=n
CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y
CONFIG_PM_PARTITION_SIZE_LITTLEFS=0x2000000&lt;/pre&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you could please provide specific answers in these&amp;nbsp;6 questions numbered above it would be extremely helpful.&lt;/p&gt;
&lt;p&gt;Thank you very much and I look forward to hearing from you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Stavros&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/453030?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 12:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39726e77-6cc9-4e75-ac1c-0a5c9ad3a583</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi Stavros!&lt;/p&gt;
&lt;p&gt;I have taken over the case from Håkon.&lt;/p&gt;
&lt;p&gt;Could you try setting&amp;nbsp;&lt;span&gt;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL=y ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also see this post:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/101242/unable-to-use-littlefs-on-external-flash-on-nrf9160"&gt;Unable to use LittleFS on External Flash on nrf9160&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/451986?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 13:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8396c76b-8bd8-4931-a990-f275c5376a8e</guid><dc:creator>clockis</dc:creator><description>&lt;p&gt;Greetings, &lt;br /&gt;&lt;br /&gt;A kind reminder for any updates on my previous questions, if you require more information to answer these questions I&amp;#39;d be more than willing to provide it so this issue can be resolved.&lt;/p&gt;
&lt;p&gt;I look forward to hearing from you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Stavros F.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/451046?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 11:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a286a87f-01b8-4dfa-b86b-6fca3a40a05d</guid><dc:creator>clockis</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Kind reminder on any update or any info on this! If any other information is needed please inform me and I will provide it!&lt;/p&gt;
&lt;p&gt;Thank you and I look forward to hearing from you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/449509?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 10:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51da129-e6f5-4281-a44e-c19bfdd41dd3</guid><dc:creator>clockis</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Kind reminder for any updates or info on this, I have provided as&amp;nbsp;much code, files, logs, and details as I could but if anything else is needed please feel free to ask and I will provide it&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Stavros&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/449012?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2023 12:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:399d5699-0b08-4d94-97f1-bd2fd90bf986</guid><dc:creator>clockis</dc:creator><description>[quote userid="73166" url="~/f/nordic-q-a/104260/mount-littlefs-to-both-internal-external-flash/448993"]The little FS sample shows how to manually define the mount point. You can include logs and error codes preferably. Give as detailed information as possible.[/quote]
&lt;p&gt;I have already done the manual definition exactly as it is done in the sample (copied the code from the LittleFS sample) as shown in the &lt;strong&gt;1st implementation&lt;/strong&gt; in my original post, &lt;strong&gt;it doesn&amp;#39;t work for two instances of the LittleFS because it mounts them on the same mount point of the internal flash memory.&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I want to mount one instance of the LittleFS in the internal memory (as it currently is) and one other instance of the LittleFS simultaneously on the external flash IC W25Q512NW.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The first instance is mounted correctly and works as intended (by following the LittleFS sample) but when I try to add the second instance of the LittleFS to the external flash memory IC as shown below, and in every other combination as shown in the original post, it always mounts the second instance to the internal memory as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have also included the logs and the error codes, but I will do that again if it helps.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Manual definition of the mount point in the code:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(_LfsConfig);
static struct fs_mount_t lfs_storage_mnt = {
  .type = FS_LITTLEFS,
  .fs_data = &amp;amp;_LfsConfig,
  // .storage_dev = (void *)DT_FLASH_AREA_STORAGE_ID,
  .storage_dev = (void *)FLASH_AREA_ID(littlefs_storage),
  .mnt_point = &amp;quot;/lfs2&amp;quot;
};

struct fs_mount_t *mp = &amp;amp;lfs_storage_mnt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;.DTS file&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
		nordic,pm-ext-flash = &amp;amp;w25q512nw;
	};

&amp;amp;spi1{
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt; &amp;amp;gpio0 26 GPIO_ACTIVE_LOW &amp;gt;;

	w25q512nw: w25q512nw@0 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		label = &amp;quot;W25Q512NW&amp;quot;;
		wp-gpios = &amp;lt;&amp;amp;gpio0 30 GPIO_ACTIVE_LOW&amp;gt;;
		hold-gpios = &amp;lt;&amp;amp;gpio0 14 GPIO_ACTIVE_LOW&amp;gt;;
		reg = &amp;lt; 0 &amp;gt;;
		spi-max-frequency = &amp;lt; 8000000 &amp;gt;;
		jedec-id = [ ef 60 20 ]; // Manufacturer ID = EFh, Memory Type (ID15-ID8) = 60h and Capacity (ID7-ID0) = 20h 
		size = &amp;lt; 536870912 &amp;gt;;    // Flash capacity in bits = 512M-bit = 1024 * 1024 * 512 * 1bit = 536870912 bit
		has-dpd;
		t-enter-dpd = &amp;lt; 3000 &amp;gt;;  // in nanoseconds - The power-down state will entered within the time duration of tDP: 3us 
		t-exit-dpd = &amp;lt; 30000 &amp;gt;;  // in nanoseconds - The Release from power-down will take the time duration of tRES1: 30us
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I also tried with this alternative .DTS file&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {

	chosen {

		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
		nordic,pm-ext-flash = &amp;amp;w25q512nw;
	};
};

&amp;amp;spi1{
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt; &amp;amp;gpio0 26 GPIO_ACTIVE_LOW &amp;gt;;

	w25q512nw: w25q512nw@0 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		label = &amp;quot;W25Q512NW&amp;quot;;
		wp-gpios = &amp;lt;&amp;amp;gpio0 30 GPIO_ACTIVE_LOW&amp;gt;;
		hold-gpios = &amp;lt;&amp;amp;gpio0 14 GPIO_ACTIVE_LOW&amp;gt;;
		reg = &amp;lt; 0 &amp;gt;;
		spi-max-frequency = &amp;lt; 8000000 &amp;gt;;
		jedec-id = [ ef 60 20 ]; // Manufacturer ID = EFh, Memory Type (ID15-ID8) = 60h and Capacity (ID7-ID0) = 20h 
		size = &amp;lt; 536870912 &amp;gt;;    // Flash capacity in bits = 512M-bit = 1024 * 1024 * 512 * 1bit = 536870912 bit
		has-dpd;
		t-enter-dpd = &amp;lt; 3000 &amp;gt;;  // in nanoseconds - The power-down state will entered within the time duration of tDP: 3us 
		t-exit-dpd = &amp;lt; 30000 &amp;gt;;  // in nanoseconds - The Release from power-down will take the time duration of tRES1: 30us
		partitions {
			compatible = &amp;quot;fixed-partitions&amp;quot;;
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;
			/* 64 MB partition to use for LFS filesystem */
			ext_storage_partition: partition@0000000 {
				label = &amp;quot;littlefs_storage&amp;quot;;
				reg = &amp;lt;0x0000000 0x2000000&amp;gt;;
			};
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;also in the prj.conf is the following&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Flash File System configuration
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y

# SPI NOR configuration
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

# Partition Manager Setttings
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Finally, the &lt;strong&gt;error codes/logs&lt;/strong&gt; are the same as in the original post.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.002,502] &amp;lt;inf&amp;gt; littlefs: littlefs partition at /lfs1
[00:00:00.002,532] &amp;lt;inf&amp;gt; littlefs: LittleFS version 2.4, disk version 2.0
[00:00:00.002,777] &amp;lt;inf&amp;gt; littlefs: FS at flash-controller@4001e000:0xf8000 is 6 0x1000-byte blocks with 512 cycle
[00:00:00.002,777] &amp;lt;inf&amp;gt; littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
[00:00:00.002,868] &amp;lt;err&amp;gt; littlefs: WEST_TOPDIR/modules/fs/littlefs/lfs.c:1077: Corrupted dir pair at {0x0, 0x1}
[00:00:00.002,899] &amp;lt;wrn&amp;gt; littlefs: can&amp;#39;t mount (LFS -84); formatting
[00:00:00.175,292] &amp;lt;inf&amp;gt; littlefs: /lfs1 mounted
[00:00:00.175,292] &amp;lt;inf&amp;gt; littlefs: Automount /lfs1 succeeded
[00:00:00.175,323] &amp;lt;inf&amp;gt; littlefs: littlefs partition at /lfs2
[00:00:00.175,323] &amp;lt;inf&amp;gt; littlefs: LittleFS version 2.4, disk version 2.0
[00:00:00.175,567] &amp;lt;inf&amp;gt; littlefs: FS at flash-controller@4001e000:0xf8000 is 6 0x1000-byte blocks with 512 cycle
[00:00:00.175,598] &amp;lt;inf&amp;gt; littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
[00:00:00.175,842] &amp;lt;inf&amp;gt; littlefs: /lfs2 mounted
[00:00:00.175,872] &amp;lt;inf&amp;gt; littlefs: Automount /lfs2 succeeded&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you tell me if anything is wrong in my manual definition of the mount point or in the DTS files? or if something else is causing this behavior? how&amp;nbsp;can I do this so the two instances of the LittleFS can be mounted simultaneously (one for the internal flash) and on for the external flash IC)?&lt;/p&gt;
&lt;p&gt;Are the values passed in the members of the struct in the manual definition of the mount point in the code, correct? Do I need to change something there? the LittleFS sample code does not take into account two simultaneous instances so that is why I am asking for verification on this and it seems that there are only two possible permitted values for the .storage_dev member of the struct, and they both point to the internal flash, so&amp;nbsp;I want to know how to populate these members in my case because&amp;nbsp;I either get build errors or the behavior posted above.&lt;/p&gt;
&lt;p&gt;Thank you for your feedback, please contact me if any more information is needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/448993?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2023 11:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce8d33cc-64df-4b93-b958-fb9d2f29da2d</guid><dc:creator>Hakon</dc:creator><description>[quote user="clockis"]Also, I have scoured every piece of documentation and info on this so I have already seen the samples and have already tried all code from the LittleFS samples[/quote]
&lt;p&gt;Can you give some more information why this is not working for you? The little FS sample shows how to manually define the mount point. You can include logs and error codes preferably. Give as detailed information as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/448652?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 12:42:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b189ae32-fae2-4d63-b88b-222ff44750fe</guid><dc:creator>clockis</dc:creator><description>&lt;p&gt;As clearly shown in my original post I have tried both methods of declaring an FSTAB entry and defining the mount point by hand but the results are the same.&lt;/p&gt;
&lt;p&gt;So is it possible to have two LittleFS instances in the context of nRF Connect SDK?&lt;/p&gt;
&lt;p&gt;It seems that the LittleFS has specific mount point names/predefined partitions that it relates to and does not permit mounting it to a partition with a different label (in the .dts) how can this be done. How can I mount the second instance of LittleFS to a not predefined partition?? Is there a way to define the second partition of my external flash in any other way.&lt;/p&gt;
&lt;p&gt;Also, I have scoured every piece of documentation and info on this so I have already seen the samples and have already tried all code from the LittleFS samples, other tickets on DevZone, third party implementation on the net and everything nd anything that is relevant with this that is out there.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide explicit code on how to define the mount points by hand, in detail, because at this point I have already tried every way and every sub combinations of the way.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/448623?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 11:05:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdd995b4-0075-4b23-afcc-03350403f17b</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;They commented;&lt;/p&gt;
&lt;p&gt;...&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;the user may not be able to use the FS_FSTAB_ENTRY macro to mount the partition as this thing can only mount to the one of predefined &amp;nbsp;partitions known by the partition manager.&lt;/p&gt;
&lt;p&gt;Instead user will have to define the fs_mount_t point by hand, like for example in samples/subsys/fs/littlefs/src/main.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mount LittleFS to both internal &amp; external flash</title><link>https://devzone.nordicsemi.com/thread/448465?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 09:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4eb0e3e-a374-40b6-b140-37a85222f348</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will ask about this internally, and hopefully reply by tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>