<?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>QSPI and NRF52840 Communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114436/qspi-and-nrf52840-communication</link><description>I am using visual code studio, zephyr RTOS, v2.5.2 on NRF52840 
 I am trying to find a QSPI example 
 I noticed someone mentioned the sample :spi_flash is using QSPI ? But it does not have an overlay file, is there any other sample code available, for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Sep 2024 05:08:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114436/qspi-and-nrf52840-communication" /><item><title>RE: QSPI and NRF52840 Communication</title><link>https://devzone.nordicsemi.com/thread/502670?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 05:08:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32df6982-78d2-4f0f-87bc-40920252b921</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;I continue with SPI development first&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI and NRF52840 Communication</title><link>https://devzone.nordicsemi.com/thread/501069?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 05:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67a91be5-f163-47a9-ba96-ebc61970f7e7</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;or is there any example named qspi_read/write?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I saw someone mentioned this&amp;nbsp;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-2.3.0/page/zephyr/samples/drivers/jesd216/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.3.0/page/zephyr/samples/drivers/jesd216/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but not sure how to find the code of this sample?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI and NRF52840 Communication</title><link>https://devzone.nordicsemi.com/thread/501065?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 05:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfb33dc3-e3b3-432c-b385-3350f725f54a</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;I am testing on a w25m02g ,which is a NAND memory, so I think the littlefs is not really helpful.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can I get clarifications :&amp;nbsp; flash_read/write/erase are QSPI functions , support 4 IO lines while spi_read/write only support SPI communications but not QSPI?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI and NRF52840 Communication</title><link>https://devzone.nordicsemi.com/thread/500995?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 13:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97386f54-bac2-4088-82a2-b3d3e9a6a9d9</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You have to add an overlay if you want to add external flash. There is a previous case where it showed how to do this with JEDEC sample&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99162/add-a-new-jedec-flash-memory-device-on-qspi?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending"&gt;(+) Add a new JEDEC flash memory device on QSPI - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is the default QSPI in devicetree of nrf52840dk.&amp;nbsp;&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;In littlefs sample&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/49cb90cb0932808759fbbd5c3bf7834d5a0d4ff6/samples/subsys/fs/littlefs/boards/nrf52840dk_nrf52840.overlay"&gt;sdk-zephyr/samples/subsys/fs/littlefs/boards/nrf52840dk_nrf52840.overlay at 49cb90cb0932808759fbbd5c3bf7834d5a0d4ff6 · nrfconnect/sdk-zephyr · GitHub&lt;/a&gt;&amp;nbsp;the built-in external flash is used. When you need to use different flash, you can disable the MX25R64 on the overlay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI and NRF52840 Communication</title><link>https://devzone.nordicsemi.com/thread/500872?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 05:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a8dbe65-4d7a-41f9-ab03-38bd9e1696f9</guid><dc:creator>xuezhi_zed</dc:creator><description>&lt;p&gt;And can I use&amp;nbsp;spi_transceive/read/write for QSPI communication?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>