<?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>2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74394/2gbit-nor-flash-at-qspi-has-shifted-read-data-from-flash</link><description>Hi All, 
 I&amp;#39;m testing with nRF52840-DK and SDK 1717.0.2 examples. I use the periperal example: QSPI. This examples demonstrates the DK onboard 16Mbit Nor flash MX25 from Macronix. The example works. The write data is equal to the read data. So far so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Mar 2023 11:09:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74394/2gbit-nor-flash-at-qspi-has-shifted-read-data-from-flash" /><item><title>RE: 2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/thread/416229?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2023 11:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ffd723d-7607-444a-bf03-84efd353120c</guid><dc:creator>Vincent520</dc:creator><description>&lt;p&gt;It is likely due to incompatible action taken by nRF mcu and the expected by flash chip. I&amp;rsquo;m currently working on MT29F2G flash with nrf52840, the flash which is NAND 2Gbit flash, very similar to the one used by poster of this thread, the issue I&amp;rsquo;m seeing is the nRF mcu is sending 3 bytes address for the address, while the flash is expecting 2 bytes address, thus I&amp;rsquo;m having similar issue that the received data is a byte shifted than expected&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/thread/338626?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 15:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44bc9805-2166-4353-8e4e-6c0ed768d9e9</guid><dc:creator>AustinEngineer</dc:creator><description>&lt;p&gt;Hi, were you able to get this working?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/thread/309896?ContentTypeID=1</link><pubDate>Sun, 16 May 2021 08:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58fbbe50-29d3-4eae-bbc5-8ad01169f59f</guid><dc:creator>Marien</dc:creator><description>&lt;p&gt;Hi&amp;nbsp; Jorgen,&lt;br /&gt;If I change&amp;nbsp;&lt;span&gt;NRF_QSPI_READOC_READ4IO;&amp;nbsp; &amp;nbsp;to&amp;nbsp;&amp;nbsp;&lt;strong&gt;NRF_QSPI_READOC_READ4O;&amp;nbsp;&lt;br /&gt;No&amp;nbsp; I&amp;nbsp; between 4&amp;nbsp; and O.&lt;br /&gt;Than the divice works fine.&lt;br /&gt;I don&amp;#39;t know the difference,&amp;nbsp; logic analiser shows the same 4 bit activity&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/thread/309022?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 14:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:356b560c-d532-4755-bafa-f9b5ac1b0607</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;There is also a &lt;a href="https://media-www.micron.com/-/media/client/global/documents/products/data-sheet/nor-flash/serial-nor/mt25q/die-rev-b/mt25q_qlkt_l_02g_cbb_0.pdf?rev=43f7f66fc8da4d7d901b35fa51284c8f#page=21"&gt;nonvoltatile configuration register&lt;/a&gt; in the device where you can configure Quad I/O mode, and there is a &lt;a href="https://media-www.micron.com/-/media/client/global/documents/products/data-sheet/nor-flash/serial-nor/mt25q/die-rev-b/mt25q_qlkt_l_02g_cbb_0.pdf?rev=43f7f66fc8da4d7d901b35fa51284c8f#page=69"&gt;command to enter Quad mode&lt;/a&gt;. Have you tried these? If the device is not configured to work in quad mode, the commands for quad read/write may not work as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/thread/308489?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 09:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12af1385-5af8-4693-a0a6-b17c38dfdec1</guid><dc:creator>Marien</dc:creator><description>&lt;p&gt;Yes,&amp;nbsp; quad mode is enabled:&lt;br /&gt;&lt;span&gt;at:&amp;nbsp; &amp;nbsp;&amp;nbsp;config.prot_if.readoc = NRF_QSPI_READOC_READ4IO;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;checking this on the lines with a logic analiser confirms the quad mode:&amp;nbsp; all lines show data...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/thread/308235?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 15:32:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e6e5c8-4531-47eb-9b88-ef8385be1f1f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My point was not what the bit does, but what it does not do, i.e., enable quad mode. Have you done any other changes in the application to enable quad mode for the MT25?&lt;/p&gt;
&lt;p&gt;If quad mode is not enabled, I would not expect correct behavior for quad reads. You should be able to&amp;nbsp;find&amp;nbsp;how to enable quad mode in the datasheet of your flash device.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/thread/307812?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 20:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e05e157-34d7-4963-9bc8-6056fdcf4e78</guid><dc:creator>Marien</dc:creator><description>&lt;p&gt;Hi Jorgen, bit 6&amp;nbsp; manages the protected sectords in the MT25.&lt;br /&gt;I checked this and turn it off.&lt;br /&gt;Any other suggestion for the datashift problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/thread/306965?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 09:50:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5740f87-500f-4721-b314-9acacc8f6de7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it possible that you have not enabled Quad mode correctly in your device?&lt;/p&gt;
&lt;p&gt;The MX25 device has a &amp;quot;Quad Enable&amp;quot; field in bit 6 of the Status Register, which is used by the example application to enable Quad operations:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/mx25_5F00_statusreg.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint8_t temporary = 0x40;
// Switch to qspi mode
cinstr_cfg.opcode = QSPI_STD_CMD_WRSR;
cinstr_cfg.length = NRF_QSPI_CINSTR_LEN_2B;
err_code = nrf_drv_qspi_cinstr_xfer(&amp;amp;cinstr_cfg, &amp;amp;temporary, NULL);
APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I cannot see a corresponding filed in the Status register of your device:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/mt25_5F00_statusreg.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 2Gbit NOR flash at QSPI has shifted Read data from flash</title><link>https://devzone.nordicsemi.com/thread/306618?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 21:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58318adf-5a0f-4eb1-b226-b483b5df1d0a</guid><dc:creator>Marien</dc:creator><description>&lt;p&gt;additional:&lt;br /&gt;at:&amp;nbsp; &amp;nbsp;&amp;nbsp;config.prot_if.readoc = NRF_QSPI_READOC_READ4IO;&amp;nbsp; &amp;nbsp; (default in the example)&lt;br /&gt;the shift is 2 bytes.&lt;br /&gt;at:&amp;nbsp;&amp;nbsp;config.prot_if.readoc = NRF_QSPI_READOC_READ2IO;&lt;br /&gt;the shift is 1 byte.&lt;br /&gt;at:&amp;nbsp;&amp;nbsp;config.prot_if.readoc = NRF_QSPI_READOC_FASTREAD;&lt;br /&gt;no shift:&amp;nbsp; &amp;nbsp;Data is consistent.&lt;/p&gt;
&lt;p&gt;strange...&amp;nbsp; &amp;nbsp;what is going woring in the quad and dual data transfer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>