<?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>nRF9160 SPI External Flash (mx25r6435f) - FATFS does not mount</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107107/nrf9160-spi-external-flash-mx25r6435f---fatfs-does-not-mount</link><description>Hello 
 I am using the nRF9160-DK and I would like to access the external flash memory (mx25r6435f), as a FAT format file system. To do that I have made a &amp;#39;test project&amp;#39; to access the file system from the SHELL, as a starting point. 
 I can access the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jan 2024 14:55:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107107/nrf9160-spi-external-flash-mx25r6435f---fatfs-does-not-mount" /><item><title>RE: nRF9160 SPI External Flash (mx25r6435f) - FATFS does not mount</title><link>https://devzone.nordicsemi.com/thread/463188?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2024 14:55:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9840d72-34f8-4ddc-80d0-750687e7408b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I&amp;#39;m glad to hear that you got things running with littlefs.&lt;/p&gt;
&lt;p&gt;Let me know if there&amp;#39;s anything else that pops up.&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: nRF9160 SPI External Flash (mx25r6435f) - FATFS does not mount</title><link>https://devzone.nordicsemi.com/thread/463119?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2024 11:51:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19ee2a9d-ccf7-4101-88ba-98d637132d22</guid><dc:creator>Avgerinos89</dc:creator><description>&lt;p&gt;Hello Hakon&lt;/p&gt;
&lt;p&gt;Following your suggestion I managed to make it work using littlefs file system.&lt;/p&gt;
&lt;p&gt;I add the following pm_static.yml file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;external_flash:
  address: 0x00000
  end_address: 0x7F0000
  region: external_flash
  size: 0x7F0000
littlefs_storage:
  address: 0x00000
  device: MX25R64
  region: external_flash
  address: 0x0
  size: 0x7F0000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also I made a few changed to the prj.conf file to use littlefs&lt;br /&gt;prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_FLASH=y

CONFIG_LOG=y
CONFIG_FS_LOG_LEVEL_DBG=y
CONFIG_FLASH_LOG_LEVEL_DBG=y

CONFIG_HEAP_MEM_POOL_SIZE=16384

CONFIG_SHELL=y
CONFIG_SHELL_LOG_LEVEL_INF=y

CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_SHELL=y
CONFIG_FILE_SYSTEM_SHELL_TEST_COMMANDS=y

CONFIG_FAT_FILESYSTEM_ELM=n
CONFIG_FILE_SYSTEM_LITTLEFS=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y

#CONFIG_MPU_ALLOW_FLASH_WRITE=y

CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=n
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y

CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

# Memories
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SHELL_STACK_SIZE=4096&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;At this moment I can use littlefs for my application so I will use littlefs as it is.&lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SPI External Flash (mx25r6435f) - FATFS does not mount</title><link>https://devzone.nordicsemi.com/thread/462934?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 14:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b67d239-fd0c-4280-90de-139ab5aeb99e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Avgerinos89"]As I mention, on the&amp;nbsp;SDK&amp;nbsp;v2.5.1, when I enable&amp;nbsp;CONFIG_DISK_DRIVER_FLASH I get the following compile error:[/quote]
&lt;p&gt;My apologies for not seeing this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The pm_static.yml needs some extra parameters, similar to what is posted here:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/105667/problem-with-flashdisk-and-partition_manager/455775"&gt;RE: Problem with flashdisk and partition_manager&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if it builds/runs properly afterwards? Note that you might need to delete your build folder and regenerate the project.&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: nRF9160 SPI External Flash (mx25r6435f) - FATFS does not mount</title><link>https://devzone.nordicsemi.com/thread/462907?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 13:38:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ce47efe-e898-49d1-b643-d4c5f55e7e1a</guid><dc:creator>Avgerinos89</dc:creator><description>&lt;p&gt;Hello Hakon&lt;/p&gt;
&lt;p&gt;I have made some progress since yesterday. &lt;br /&gt;The shell fs backend was not the problem as I had tried to mount using the&amp;nbsp;fs_mount(&amp;amp;fs_mnt); function, that was returning the same error (-5).&lt;/p&gt;
&lt;p&gt;With some changes I managed to make it work, but only works using the SDK v2.4.2.&lt;/p&gt;
&lt;p&gt;The changes that I have made:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_FLASH=y

CONFIG_LOG=y
CONFIG_FS_LOG_LEVEL_DBG=y
CONFIG_FLASH_LOG_LEVEL_DBG=y

CONFIG_HEAP_MEM_POOL_SIZE=16384

CONFIG_SHELL=y
CONFIG_SHELL_LOG_LEVEL_INF=y

CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_SHELL=y
CONFIG_FILE_SYSTEM_SHELL_TEST_COMMANDS=y

CONFIG_DISK_DRIVERS=y
CONFIG_DISK_DRIVER_FLASH=y
CONFIG_DISK_ACCESS=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_FILE_SYSTEM_LITTLEFS=n
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y

CONFIG_MPU_ALLOW_FLASH_WRITE=y

CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y

CONFIG_FILE_SYSTEM_MKFS=y


CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

# Memories
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SHELL_STACK_SIZE=4096
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;overlay file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;C:\ncs\v2.5.1\zephyr\boards\arm\nrf9160dk_nrf9160\nrf9160dk_nrf9160_common_0_14_0.dtsi&amp;gt;

/delete-node/ &amp;amp;storage_partition;

&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;;

		storage_partition: partition@0 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x00000000 0x0800000&amp;gt;;
		};
	};

	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
};

/ {

	aliases {
		ext-flash = &amp;amp;mx25r64;
	};
	
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
		zephyr,flash = &amp;amp;flash0;
		zephyr,sram = &amp;amp;sram0_ns;
		zephyr,code-partition = &amp;amp;slot0_ns_partition;
	};

	msc_disk0 {
		compatible = &amp;quot;zephyr,flash-disk&amp;quot;;
		partition = &amp;lt;&amp;amp;storage_partition&amp;gt;;
		disk-name = &amp;quot;NAND&amp;quot;;
		cache-size = &amp;lt;4096&amp;gt;;
	};
	
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Using these changes on the SDK&amp;nbsp;v2.4.2, it works. It successfully mounts, read and write the external flash.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I compile this code using the&amp;nbsp;SDK&amp;nbsp;v2.5.1 I get compiling errors. The error appear only when the&amp;nbsp;&lt;br /&gt;&lt;/span&gt;CONFIG_DISK_DRIVER_FLASH is enabled.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;But when&amp;nbsp;&lt;/span&gt;&lt;/span&gt;CONFIG_DISK_DRIVER_FLASH is not enabled (was not included in my original post) the project compiles, but the disk would not mount. So it looks like to mount the disk it needs to enable&amp;nbsp;&lt;span&gt;CONFIG_DISK_DRIVER_FLASH.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;As I mention, on the&amp;nbsp;SDK&amp;nbsp;v2.5.1, when I enable&amp;nbsp;CONFIG_DISK_DRIVER_FLASH I get the following compile error:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;FAILED: zephyr/drivers/disk/CMakeFiles/drivers__disk.dir/flashdisk.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;nrf-config.h\&amp;quot; -DMBEDTLS_USER_CONFIG_FILE=\&amp;quot;nrf-config-user.h\&amp;quot; -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/ncs/v2.5.1/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.1/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/ncs/v2.5.1/zephyr/lib/posix/getopt/. -IC:/ncs/v2.5.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.1/nrf/include -Itfm/install/interface/include -IC:/ncs/v2.5.1/nrf/include/tfm -IC:/ncs/v2.5.1/nrf/tests/include -Itfm/generated/interface/include -IC:/ncs/v2.5.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.1/zephyr/modules/cmsis/. -IC:/ncs/v2.5.1/modules/hal/nordic/nrfx -IC:/ncs/v2.5.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.1/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.1/nrfxlib/nrf_modem/include -Imodules/nrf/subsys/nrf_security/src/include/generated -IC:/ncs/v2.5.1/nrf/subsys/nrf_security/include -IC:/ncs/v2.5.1/nrf/ext/oberon/psa/core/include -IC:/ncs/v2.5.1/nrf/ext/oberon/psa/core/library -IC:/ncs/v2.5.1/modules/crypto/mbedtls/include -IC:/ncs/v2.5.1/modules/crypto/mbedtls/library -IC:/ncs/v2.5.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.5.1/nrfxlib/crypto/nrf_oberon/include -Wshadow -fno-strict-aliasing -Os -imacros C:/Embedded_software/flash_test_new/build/zephyr/include/generated/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Embedded_software/flash_test_new=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.1=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/drivers/disk/CMakeFiles/drivers__disk.dir/flashdisk.c.obj -MF zephyr\drivers\disk\CMakeFiles\drivers__disk.dir\flashdisk.c.obj.d -o zephyr/drivers/disk/CMakeFiles/drivers__disk.dir/flashdisk.c.obj -c C:/ncs/v2.5.1/zephyr/drivers/disk/flashdisk.c
C:/ncs/v2.5.1/zephyr/drivers/disk/flashdisk.c:484:1: error: return type defaults to &amp;#39;int&amp;#39; [-Werror=implicit-int]
  484 | PM_FOREACH_AFFILIATED_TO_disk(DEFINE_FLASHDISKS_CACHE)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.1/zephyr/drivers/disk/flashdisk.c: In function &amp;#39;PM_FOREACH_AFFILIATED_TO_disk&amp;#39;:
C:/ncs/v2.5.1/zephyr/drivers/disk/flashdisk.c:523:30: error: storage class specified for parameter &amp;#39;flash_disks&amp;#39;
  523 | static struct flashdisk_data flash_disks[] = {
      |                              ^~~~~~~~~~~
C:/ncs/v2.5.1/zephyr/drivers/disk/flashdisk.c:523:15: error: parameter &amp;#39;flash_disks&amp;#39; is initialized
  523 | static struct flashdisk_data flash_disks[] = {
      |               ^~~~~~~~~~~~~~
C:/ncs/v2.5.1/zephyr/drivers/disk/flashdisk.c:524:39: error: &amp;#39;DEFINE_FLASHDISKS_DEVICE&amp;#39; undeclared (first use in this function)
  524 |         PM_FOREACH_AFFILIATED_TO_disk(DEFINE_FLASHDISKS_DEVICE)
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.1/zephyr/drivers/disk/flashdisk.c:524:39: note: each undeclared identifier is reported only once for each function it appears in
C:/ncs/v2.5.1/zephyr/drivers/disk/flashdisk.c:533:1: error: expected declaration specifiers before &amp;#39;PM_FOREACH_AFFILIATED_TO_disk&amp;#39;
  533 | PM_FOREACH_AFFILIATED_TO_disk(VERIFY_CACHE_SIZE_IS_NOT_ZERO_IF_NOT_READ_ONLY)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/ncs/v2.5.1/zephyr/include/zephyr/toolchain/gcc.h:92,
                 from C:/ncs/v2.5.1/zephyr/include/zephyr/toolchain.h:50,
                 from C:/ncs/v2.5.1/zephyr/include/zephyr/sys/__assert.h:11,
                 from C:/ncs/v2.5.1/zephyr/drivers/disk/flashdisk.c:10:
C:/ncs/v2.5.1/zephyr/include/zephyr/init.h:125:44: error: storage class specified for parameter &amp;#39;__init_disk_flash_init&amp;#39;
  125 | #define Z_INIT_ENTRY_NAME(init_id) _CONCAT(__init_, init_id)
      |                                            ^~~~~~~&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Is this an error about the partition manager? I am a bit confused about this error and why it would not appear in the&amp;nbsp;SDK&amp;nbsp;v2.4.2 ?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;So, at this point I managed to make it work using&amp;nbsp;SDK&amp;nbsp;v2.4.2, but I would prefer to make it work on the latest&amp;nbsp;SDK&amp;nbsp;v2.5.1.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thank you for your support!&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SPI External Flash (mx25r6435f) - FATFS does not mount</title><link>https://devzone.nordicsemi.com/thread/462890?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 13:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1db12a2d-bb50-4e4f-8c3c-2fd7ba850580</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;The fs shell sample seems to be mainly targeted towards littlefs:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/samples/subsys/shell/fs/README.html"&gt;https://docs.zephyrproject.org/latest/samples/subsys/shell/fs/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am unable to get it to mount properly when running your code on my side, even with other boards (nrf52840 etc), so I suspect there&amp;#39;s something strange with the shell fs backend&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Even if I took the zephyr/samples/subsys/fs/fat_fs sample, and then added SHELL=y / FILE_SYSTEM_SHELL=y, it&amp;nbsp;did work, as the FS was mounted by the firmware running:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.3.99-ncs1-1 ***
[00:00:00.250,335] &amp;lt;inf&amp;gt; flashdisk: Initialize device SD
[00:00:00.250,366] &amp;lt;inf&amp;gt; flashdisk: offset d8000, sector size 512, page size 4096, volume size 163840
[00:00:00.250,457] &amp;lt;inf&amp;gt; main: Block count 320
Sector size 512
Memory Size(MB) 0
[00:00:00.250,579] &amp;lt;inf&amp;gt; flashdisk: Initialize device SD
[00:00:00.250,579] &amp;lt;inf&amp;gt; flashdisk: offset d8000, sector size 512, page size 4096, volume size 163840
Disk mounted.

Listing dir /SD: ...
[FILE] SOME.DAT (size = 0)
[DIR ] SOME


uart:~$ fs read /SD:/SOME.DAT
File size: 0
uart:~$ fs ls /SD:/
SOME.DAT
SOME/
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It looks like the firmware has to manually mount the volume first.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: When using nrf9160dk_nrf9160_ns, you will invoke partition_manager, which uses pm_static.yml for static allocation of your partitions.&lt;/p&gt;
&lt;p&gt;You can then declare it similar to this (change addresses and sizes to your liking):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;storage_partition:
  address: 0x0
  end_address: 0x800000
  region: external_flash
  size: 0x800000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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></channel></rss>