<?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>settings storage in external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102182/settings-storage-in-external-flash</link><description>Hi, 
 Is it possible to use the Zephyr settings storage subsystem to store data in external flash? 
 We are dealing with some internal flash space issues and are trying to see if we can offload the &amp;quot;settings_storage&amp;quot; partition we currently have in internal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jul 2023 09:26:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102182/settings-storage-in-external-flash" /><item><title>RE: settings storage in external flash</title><link>https://devzone.nordicsemi.com/thread/437928?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 09:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb6256b7-b555-46b7-b1bb-06e8a87e23c6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Bilal&lt;/p&gt;
&lt;p&gt;Sorry, a misunderstanding on my part and it seems I jumped the gun on that last reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you for example NVS as the settings backend, and you want to use the partition manager, you can set the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;partition manager to external flash&lt;/a&gt;, and set the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PM_PARTITION_REGION_NVS_STORAGE_EXTERNAL"&gt;CONFIG_PM_PARTITION_REGION_NVS_STORAGE_EXTERNAL &lt;/a&gt;to get a partition to the external flash.&lt;/p&gt;
&lt;p&gt;My colleague released a&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/persistent-storage-of-keys-and-data-using-the-nrf-connect-sdk"&gt; blog post&lt;/a&gt; on how to use the subsystems to for example store keys, etc. just last week, so you can give that a read as well to get a better overview of what your options are.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: settings storage in external flash</title><link>https://devzone.nordicsemi.com/thread/437927?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 16:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a9997f6-a40e-4cbb-91ea-c09d1ada4aa7</guid><dc:creator>Bilal</dc:creator><description>&lt;p&gt;Thanks Simon for the reply, but I&amp;nbsp;don&amp;#39;t think this&amp;nbsp;answers my question.&lt;/p&gt;
&lt;p&gt;We have already configured our external flash memory and have been using it to read and write data but I am specifically wondering if there is a way we can move the setting storage subsystem that Zephyr provides to be&amp;nbsp;stored in the external flash rather than&amp;nbsp;internal flash&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: settings storage in external flash</title><link>https://devzone.nordicsemi.com/thread/437926?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 13:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f006992e-939f-4b6b-941b-014684d50665</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Due to the summer vacation period we are currently understaffed, so delayed replies must be expected. I am sorry about any inconvenience this might cause.&lt;/p&gt;
&lt;p&gt;To set up an external flash memory, you should do as we have in our .dts board files for the MX25R6435F that is by default mounted on most of our DKs. The size would have to be halved to match 32MBm and you should double check the JEDEC ID, etc. to see that it is set up correctly, but something like this in your overlay file should be the correct setup of an external flash memory:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;qspi {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;qspi_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;qspi_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	mx25r64: mx25r6435f@0 {
		compatible = &amp;quot;nordic,qspi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		/* MX25R64 supports only pp and pp4io */
		writeoc = &amp;quot;pp4io&amp;quot;;
		/* MX25R64 supports all readoc options */
		readoc = &amp;quot;read4io&amp;quot;;
		sck-frequency = &amp;lt;8000000&amp;gt;;
		jedec-id = [c2 28 17];
		sfdp-bfp = [
			e5 20 f1 ff  ff ff ff 03  44 eb 08 6b  08 3b 04 bb
			ee ff ff ff  ff ff 00 ff  ff ff 00 ff  0c 20 0f 52
			10 d8 00 ff  23 72 f5 00  82 ed 04 cc  44 83 68 44
			30 b0 30 b0  f7 c4 d5 5c  00 be 29 ff  f0 d0 ff ff
		];
		size = &amp;lt;67108864&amp;gt;;
		has-dpd;
		t-enter-dpd = &amp;lt;10000&amp;gt;;
		t-exit-dpd = &amp;lt;35000&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>