<?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>How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96852/how-to-use-fatfs-with-partition-manager</link><description>Hi, 
 I&amp;#39;m using NCS 2.2.0, based on nRF5340 custom board. 
 My board has a spi nor flash, and i want to use Fatfs to save some sensor data. 
 I add FATFS to my project without partition manager, it is running, and i can see the file can be opened and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jul 2023 10:41:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96852/how-to-use-fatfs-with-partition-manager" /><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/434429?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2023 10:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:121d305a-f9e8-4f6d-b69c-69dd443abf28</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;No fix yet, but this workaround here might work:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/98797/mass-example-with-external-flash-not-working-with-config_bootloader_mcuboot-y/421677"&gt;RE: Mass Example with External Flash not working with CONFIG_BOOTLOADER_MCUBOOT=y&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/433460?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 12:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff89d3e6-48e9-4952-ab5c-caa52c7c7218</guid><dc:creator>paulb@figfi</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is there a fix for this issue yet?&lt;/p&gt;
&lt;p&gt;Thanks, Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/421681?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2023 09:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:184fce13-a3a7-4e4c-8216-0d394ed350f6</guid><dc:creator>JulianWilmot</dc:creator><description>&lt;p&gt;Hi Yang,&lt;/p&gt;
&lt;p&gt;If you are still struggling with this, take a look at this devzone thread right at the end:&lt;/p&gt;
&lt;p&gt;&lt;a id="i1" href="https://devzone.nordicsemi.com/f/nordic-q-a/98797/mass-example-with-external-flash-not-working-with-config_bootloader_mcuboot-y"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/98797/mass-example-with-external-flash-not-working-with-config_bootloader_mcuboot-y&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I had the same issue but on NOR flash in my case. Hope this helps.&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;Julian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/416913?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 19:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f03225a2-5c57-4916-b156-00336545de06</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Unfortunately, the team hasn&amp;#39;t had a solution.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/416419?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 03:48:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4345e30-8704-4b6f-99fb-b761eec469df</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is anything update?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/412571?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 15:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24380ca6-42a3-4df0-bd30-1be6df0fb7b0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The team found the issue and is discussing how to handle it. I will be back if the team comes up with a solution.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/412399?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 06:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68f1b531-dde7-469f-a164-2c90321452df</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any update?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/411693?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 14:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec1191e9-0c69-4792-97b3-c081fd5404a0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the dealy. I am checking with the internal and waiting for the reply. I will update you if I have anything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/411508?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 02:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a05e041a-c6f8-4e1d-aea9-73640daca6c9</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi, Amanda Hsieh&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you identify the problem and the corresponding solution?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/411024?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 08:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38185336-3da6-470e-a48a-06208ba2c0e0</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;Hi, Amanda Hsieh&lt;/p&gt;
&lt;p&gt;About &amp;#39;FATFS chose the wrong device while using Partition Manager&amp;#39;, i think it is a multiple file system compatibility probleam.&lt;/p&gt;
&lt;p&gt;As i said,&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/7927"&gt;this&lt;/a&gt;&amp;nbsp;PR only add that using Partition Manager which is LittleFS, NVS and Setting.&lt;/p&gt;
&lt;p&gt;Therefore, FATFS is ignored.&lt;/p&gt;
&lt;p&gt;Where should it get area_id from&amp;nbsp;&lt;span&gt;Partition Manager&lt;/span&gt; instead of DTS.&lt;/p&gt;
&lt;p&gt;There are two steps to solving this problem:&lt;/p&gt;
&lt;p&gt;1. Adding pm.yml file to generate FATFS partitions.&lt;/p&gt;
&lt;p&gt;2. Change the interface&amp;nbsp;it&amp;nbsp;used to get&amp;nbsp;&lt;span&gt;flash_disks&lt;/span&gt;.area_id.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hu Yang&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/410998?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 05:48:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be5fd177-bb9b-457b-aa15-b35c617d7e8e</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I removed that configs, and added `&lt;span&gt;CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK&lt;/span&gt;&lt;span&gt;=y` in prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But i still have this problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;`disk_access_write()` gets soc flash not spi ext flash.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1676958471375v1.png" alt=" " /&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;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/410991?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 03:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f14c423b-4a81-4956-9550-d90cf2629330</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="hu-yang"]I was added `&lt;span&gt;CONFIG_PM_PARTITION_REGION_NVS_STORAGE_EXTERNAL&lt;/span&gt;&lt;span&gt;=y` to my prj.conf, also `&lt;/span&gt;&lt;span&gt;CONFIG_NVS&lt;/span&gt;&lt;span&gt;=y` and `&lt;/span&gt;&lt;span&gt;CONFIG_NVS_LOOKUP_CACHE&lt;/span&gt;&lt;span&gt;=y` has benn select.&lt;/span&gt;[/quote]
&lt;p&gt;Remove those configs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I correct my answer:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You need to set the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y&amp;nbsp;&lt;/strong&gt;&lt;span&gt;in your project config file.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Check out&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;External flash memory partitions&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If the external flash device is not using the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="(in Zephyr Project v3.2.99)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/api/bindings/mtd/nordic%2Cqspi-nor.html#dtbinding-nordic-qspi-nor"&gt;&lt;span&gt;QSPI NOR&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;driver, you must enable&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK"&gt;&lt;code&gt;&lt;span&gt;CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to override the Partition Manager’s external flash driver check, and the required driver must also be enabled for all applications that need it.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/410985?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 01:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e985fea-fad8-4306-8f08-b948eb786d34</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;span&gt;Amanda H&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I was added `&lt;span&gt;CONFIG_PM_PARTITION_REGION_NVS_STORAGE_EXTERNAL&lt;/span&gt;&lt;span&gt;=y` to my prj.conf, also `&lt;/span&gt;&lt;span&gt;CONFIG_NVS&lt;/span&gt;&lt;span&gt;=y` and `&lt;/span&gt;&lt;span&gt;CONFIG_NVS_LOOKUP_CACHE&lt;/span&gt;&lt;span&gt;=y` has benn select.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But it also select the wrong device, see debug details as follow:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1676942370805v1.png" alt=" " /&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;I want to add FATFS to my project, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;are you sure i should add&amp;nbsp;`CONFIG_PM_PARTITION_REGION_NVS_STORAGE_EXTERNAL=y` to my prj.conf?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In define device step, i thing it get a wrong device, see here:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1676943738793v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There are pm_config file:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1676943699324v2.png" alt=" " /&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;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yang&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/410968?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 18:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:827e3ae0-136d-4c2a-ac98-692225a8b99f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You could enable &lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK"&gt;&lt;code&gt;&lt;span&gt;CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&amp;nbsp;in the prj.conf.&amp;nbsp;Check out&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#id25"&gt;External flash memory partitions&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use FATFS with partition manager?</title><link>https://devzone.nordicsemi.com/thread/410848?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 10:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33cdbf53-06e0-4802-86c3-11765a157a5a</guid><dc:creator>yang.hu</dc:creator><description>&lt;p&gt;By the way, in this PR&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/7927"&gt;partition_manager: add option to place partition in ext flash&lt;/a&gt;&amp;nbsp;,it adds the way to which partition region should be located in external flash memory but FATFS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>