<?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>nRF52840 Zephyr dual QSPI Cypress S25hS512 flash Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83633/nrf52840-zephyr-dual-qspi-cypress-s25hs512-flash-problem</link><description>Hi, 
 We are using nrf52840 for custom design and we have replaced the mx25r6435f qspi flash with Cypress S25hS512 qspi flash. We configured the flash as below in the dts file. 
 SDK: ncs v1.7.1 
 
 If I configure the writeoc and readoc as pp4io and read4io</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jan 2022 14:55:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83633/nrf52840-zephyr-dual-qspi-cypress-s25hs512-flash-problem" /><item><title>RE: nRF52840 Zephyr dual QSPI Cypress S25hS512 flash Problem</title><link>https://devzone.nordicsemi.com/thread/349319?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 14:55:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b720d02-6ed8-46cd-aad3-f2b5383a4416</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hey Tushar! Sorry about the delay,&lt;/p&gt;
[quote user="Tushar_V"]You tested it on&amp;nbsp;&lt;span&gt;mx25r6435f or on Cypress flash chip?&lt;/span&gt;[/quote]
&lt;p&gt;Neither, I just checked if I got the same error adding your own dts additions on an overlay-file. &lt;/p&gt;
[quote user="Tushar_V"]Can you share your dts configuration? [/quote]
&lt;p&gt;Look here.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/spi_5F00_flash.zip"&gt;devzone.nordicsemi.com/.../spi_5F00_flash.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And add the configurations you mentioned to the overlay file. &lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;qspi {
	status = &amp;quot;okay&amp;quot;;
	sck-pin = &amp;lt;19&amp;gt;;
	io-pins = &amp;lt;20&amp;gt;, &amp;lt;21&amp;gt;;     //, &amp;lt;22&amp;gt;, &amp;lt;23&amp;gt;;
	csn-pins = &amp;lt;17&amp;gt;;
	s25hs512: s25hs512tf@0 {
		compatible = &amp;quot;nordic,qspi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
        quad-enable-requirements = &amp;quot;NONE&amp;quot;;
		writeoc = &amp;quot;pp&amp;quot;;						//&amp;quot;pp4io&amp;quot;;
		readoc = &amp;quot;fastread&amp;quot;;				//&amp;quot;read4io&amp;quot;; 
		sck-frequency = &amp;lt;8000000&amp;gt;;
		label = &amp;quot;S25HS512&amp;quot;;
		jedec-id = [34 2B 1A];
		size = &amp;lt;512000000&amp;gt;;
	};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Let me know if that doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Zephyr dual QSPI Cypress S25hS512 flash Problem</title><link>https://devzone.nordicsemi.com/thread/349235?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 12:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:644a1141-3081-4d3a-bd98-b89205683dbf</guid><dc:creator>Tushar_V</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Any update ?&lt;/p&gt;
&lt;p&gt;Reagrds&lt;/p&gt;
&lt;p&gt;Tushar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Zephyr dual QSPI Cypress S25hS512 flash Problem</title><link>https://devzone.nordicsemi.com/thread/348404?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 04:13:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3dd2a6e-6336-4bbc-8e54-182b4fa1d3e4</guid><dc:creator>Tushar_V</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Yes, we have enabled&amp;nbsp;&lt;span&gt;CONFIG_NORDIC_QSPI_NOR=y in our prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have checked the physical connections, it is fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you share your dts configuration? You tested it on&amp;nbsp;&lt;span&gt;mx25r6435f or on Cypress flash chip?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Zephyr dual QSPI Cypress S25hS512 flash Problem</title><link>https://devzone.nordicsemi.com/thread/348073?ContentTypeID=1</link><pubDate>Mon, 17 Jan 2022 14:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f6bf624-40d5-4818-bc3c-fe8026ac4efb</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;It works from my side. Have you added the configuration CONFIG_NORDIC_QSPI_NOR=y?&lt;/p&gt;
&lt;p&gt;If that isn&amp;#39;t the issue there might be something wrong with the physical connection.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Zephyr dual QSPI Cypress S25hS512 flash Problem</title><link>https://devzone.nordicsemi.com/thread/347878?ContentTypeID=1</link><pubDate>Sun, 16 Jan 2022 09:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:577dd903-d446-4a0f-bbb1-4b705254fcbc</guid><dc:creator>Tushar_V</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Yes, with the&amp;nbsp;&lt;span&gt;mx25r6435f is working fine. but when I use the same configuration for Cypress flash. I am getting the error.&amp;nbsp;&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;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Tushar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Zephyr dual QSPI Cypress S25hS512 flash Problem</title><link>https://devzone.nordicsemi.com/thread/347809?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 15:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39bf90c7-079a-4449-bed8-4fba9e0016ea</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will unfortunately have to get back to you over the weekend on this.&lt;/p&gt;
[quote user=""]We configured the flash as below in the dts file.[/quote]
&lt;p&gt;So it is essentially the same configuration you used with the mx25r6435f, which worked?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>