<?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>Unable to access mx25r64 partition using partition manager on sdk 2.9.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120958/unable-to-access-mx25r64-partition-using-partition-manager-on-sdk-2-9-0</link><description>I am trying to create a partition on mx25r64 using partition manager on my nrf52840dk. Below is my overlay file 
 Below is my prj.conf file 
 Below is my pm_static.yml file 
 
 below is my main.c file. when i run it i keep getting the error storage device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 May 2025 04:35:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120958/unable-to-access-mx25r64-partition-using-partition-manager-on-sdk-2-9-0" /><item><title>RE: Unable to access mx25r64 partition using partition manager on sdk 2.9.0</title><link>https://devzone.nordicsemi.com/thread/537477?ContentTypeID=1</link><pubDate>Fri, 30 May 2025 04:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60ae89da-ad74-474f-aa18-a7ed7dbe1904</guid><dc:creator>HuuNghia</dc:creator><description>&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;I have the same problem when build and run littlefs sample code on nrf52840dk.&lt;br /&gt;================= prj.conf =================&lt;br /&gt;CONFIG_FLASH&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FLASH_MAP&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FILE_SYSTEM&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FILE_SYSTEM_LITTLEFS&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span&gt;==================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;================ app,overlay ====================&lt;br /&gt;chosen&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;nordic,pm-ext-flash&lt;/span&gt;&lt;span&gt; = &amp;amp;&lt;/span&gt;&lt;span&gt;mx25r64&lt;/span&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;p&gt;==============================================&lt;/p&gt;
&lt;p&gt;============== partition report ===================&lt;br /&gt;external_flash (0x800000 - 8192kB):&lt;br /&gt;+-------------------------------------------+&lt;br /&gt;| 0x0: littlefs_storage (0x7f0000 - 8128kB) |&lt;br /&gt;| 0x7f0000: external_flash (0x10000 - 64kB) |&lt;br /&gt;+-------------------------------------------+&lt;/p&gt;
&lt;p&gt;flash_primary (0x100000 - 1024kB):&lt;br /&gt;+------------------------------+&lt;br /&gt;| 0x0: app (0x100000 - 1024kB) |&lt;br /&gt;+------------------------------+&lt;/p&gt;
&lt;p&gt;sram_primary (0x40000 - 256kB):&lt;br /&gt;+--------------------------------------------+&lt;br /&gt;| 0x20000000: sram_primary (0x40000 - 256kB) |&lt;br /&gt;+--------------------------------------------+&lt;br /&gt;==========================================&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color:#999999;color:#000000;"&gt;&lt;strong&gt;*** Booting nRF Connect SDK v3.0.0-3bfc46578e42 ***&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#999999;color:#000000;"&gt;&lt;strong&gt;*** Using Zephyr OS v4.0.99-3e0ce7636fa6 ***&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#999999;color:#000000;"&gt;&lt;strong&gt;Sample program to r/w files on littlefs&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#999999;color:#000000;"&gt;&lt;strong&gt;E: FAIL: unable to find flash area 1: -2&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to access mx25r64 partition using partition manager on sdk 2.9.0</title><link>https://devzone.nordicsemi.com/thread/534113?ContentTypeID=1</link><pubDate>Tue, 06 May 2025 12:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d38936ac-bc71-46c7-beb0-92ee4ea3bc79</guid><dc:creator>Mutheu</dc:creator><description>&lt;p&gt;In my case I had not created partitions in the overlay file that is why it was not working. I have followed the overlay example on 3583.littlfs_qspi_ext.zip and I managed to read the partitions in main.c file.&lt;br /&gt;I had assumed that I only need partitions in pm_static.yml file but my assumptions were wrong.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to access mx25r64 partition using partition manager on sdk 2.9.0</title><link>https://devzone.nordicsemi.com/thread/533397?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 12:32:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f6f131e-f538-453b-893c-98d4d73842ac</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There were one more thing missing:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html&lt;/a&gt;&amp;nbsp;says that to use&amp;nbsp;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL you &lt;span&gt;&amp;nbsp;must add a&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;chosen&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;entry for&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;nordic,pm-ext-flash&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;in your devicetree.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a sample that showcases you this can be done as well as how I&amp;#39;ve configured the pm_static.yml. Alternatively to the pm_static.yml in the zip, you can also do the following if you wish to have the application and external flash statically configured:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x0
  end_address: 0x100000
  region: flash_primary
  size: 0x100000
external_flash:
  address: 0x20000
  end_address: 0x800000
  region: external_flash
  size: 0x7e0000
littlefs_storage:
  address: 0x0
  device: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0x20000
  placement:
    before:
    - tfm_storage
    - end
  region: external_flash
  size: 0x20000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can try this sample with your own pm_static.yml as well to compare.&lt;/p&gt;
&lt;p&gt;Resulting partition map:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6646.pastedimage1745929907379v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3583.littlefs_5F00_qspi_5F00_ext.zip"&gt;devzone.nordicsemi.com/.../3583.littlefs_5F00_qspi_5F00_ext.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Let me know if this works for you or if you&amp;#39;re able to apply the changes I&amp;#39;ve made to the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/samples/subsys/fs/littlefs/README.html"&gt;LittleFS&lt;/a&gt;&amp;nbsp;sample to your own application&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to access mx25r64 partition using partition manager on sdk 2.9.0</title><link>https://devzone.nordicsemi.com/thread/533046?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 14:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a11a2352-56fb-489c-90e0-d6f631b5dc84</guid><dc:creator>Mutheu</dc:creator><description>&lt;p&gt;I removed the external flash partition in the pm_static.yml file and retained only the littlefs_storage partition but I still get&amp;nbsp;Storage device is NULL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to access mx25r64 partition using partition manager on sdk 2.9.0</title><link>https://devzone.nordicsemi.com/thread/533014?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 12:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc1d908-7dc8-4c32-ba4a-2fd6f97828b1</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As far as I can see you don&amp;#39;t need the following in your static partitioning to set up the external flash&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;external_flash:
  address: 0x00000000
  end_address: 0x007F0000
  region: external_flash
  size: 0x007F0000

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Your overlay file where you set the chosen external flash and in the board files handles this. CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL sets up the littlefs partition on the external partition and you specify that it should be a static size by setting it up in your pm_static.yml&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
littlefs_storage:
  address: 0x00000000
  device: mx25r64
  region: external_flash
  size: 0x007F0000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Let me know if this works out for you,&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>