<?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 does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75887/qspi-does-not-work-in-quad-mode-on-nrf52840</link><description>Hello, I am trying to use the QSPI example from NRF SDK 17.0.2. I am using a NRF52840 dongle with W25Q32 SPI flash. The example works with Fast Read and PP but when I try to use in quad mode (Quad read and Quad Write) it does not work. I can see the data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Jun 2021 16:07:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75887/qspi-does-not-work-in-quad-mode-on-nrf52840" /><item><title>RE: QSPI does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/thread/314272?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 16:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a706413e-9b96-4c7b-b8ed-ea26bb90099d</guid><dc:creator>rgujju</dc:creator><description>&lt;p&gt;The connection was a problem. Fixed it by resoldering!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/thread/314023?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 17:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50d93012-2af0-49a1-80c6-c5d3d4bfc5fd</guid><dc:creator>rgujju</dc:creator><description>&lt;p&gt;Did some more experiments. The example does not work when i use rand() as follows.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;for (i = 0; i &amp;lt; QSPI_TEST_DATA_SIZE; ++i) {
    m_buffer_tx[i] = (uint8_t)rand();
}&lt;/pre&gt;&lt;br /&gt;Logs:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[22:48:43:938] &amp;lt;info&amp;lt;0xfe&amp;gt;&amp;lt;info&amp;gt; app: QSPI write and read example using 24bit addressing mode␍␍␊
[22:48:43:996] &amp;lt;info&amp;gt; app: QSPI example started.␍␍␊
[22:48:43:999] &amp;lt;info&amp;gt; app: temp: 0x00␍␍␊
[22:48:44:003] &amp;lt;info&amp;gt; app: Process of erasing first block start␍␍␊
[22:48:44:254] &amp;lt;info&amp;gt; app: Process of writing data start␍␍␊
[22:48:44:264] &amp;lt;info&amp;gt; app: Data read␍␍␊
[22:48:44:264] &amp;lt;info&amp;gt; app: Compare...␍␍␊
[22:48:44:264] &amp;lt;info&amp;gt; app: TX:␍␍␊
[22:48:44:264] &amp;lt;info&amp;gt; app:  00 2D CF 46 29 04 B4 78|.-.F)..x␍␍␊
[22:48:44:268] &amp;lt;info&amp;gt; app:  D8 68 A7 FF 3F 2B F1 FC|.h..?+..␍␍␊
[22:48:44:278] &amp;lt;info&amp;gt; app:  D9 7A 96 09            |.z..    ␍␍␊
[22:48:44:278] &amp;lt;info&amp;gt; app: ␍␍␊
[22:48:44:278] &amp;lt;info&amp;gt; app: ␍␍␊
[22:48:44:278] &amp;lt;info&amp;gt; app: ␍␍␊
[22:48:44:278] &amp;lt;info&amp;gt; app: RX:␍␍␊
[22:48:44:282] &amp;lt;info&amp;gt; app:  00 2C 46 20 44 88 86 8A|.,F D...␍␍␊
[22:48:44:287] &amp;lt;info&amp;gt; app:  7F C3 F2 F1 0D 97 A9 6F|.......o␍␍␊
[22:48:44:294] &amp;lt;info&amp;gt; app:  FF FF FF FF            |....    ␍␍␊
[22:48:44:294] &amp;lt;info&amp;gt; app: Data inconsistent␍␍␊&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But if i make it a static data as follows (0xA5 is an example), then the data written and data read are consistent in Quad I/O &lt;span style="color:#333300;"&gt;(&lt;/span&gt;&lt;span style="color:#d1d2d3;float:none;font-family:Slack-Lato, appleLogo, sans-serif;font-size:15px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;span style="color:#333300;"&gt;READ4O and PP4O).&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;for (i = 0; i &amp;lt; QSPI_TEST_DATA_SIZE; ++i) {
    m_buffer_tx[i] = 0xA5;
}&lt;/pre&gt;&lt;br /&gt;Logs&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[22:50:43:719] &amp;lt;info&amp;lt;0xfe&amp;gt;&amp;lt;info&amp;gt; app: QSPI write and read example using 24bit addressing mode␍␍␊
[22:50:43:772] &amp;lt;info&amp;gt; app: QSPI example started.␍␍␊
[22:50:43:779] &amp;lt;info&amp;gt; app: temp: 0x00␍␍␊
[22:50:43:783] &amp;lt;info&amp;gt; app: Process of erasing first block start␍␍␊
[22:50:44:033] &amp;lt;info&amp;gt; app: Process of writing data start␍␍␊
[22:50:44:044] &amp;lt;info&amp;gt; app: Data read␍␍␊
[22:50:44:044] &amp;lt;info&amp;gt; app: Compare...␍␍␊
[22:50:44:044] &amp;lt;info&amp;gt; app: TX:␍␍␊
[22:50:44:044] &amp;lt;info&amp;gt; app:  A5 A5 A5 A5 A5 A5 A5 A5|........␍␍␊
[22:50:44:053] &amp;lt;info&amp;gt; app:  A5 A5 A5 A5            |....    ␍␍␊
[22:50:44:053] &amp;lt;info&amp;gt; app: ␍␍␊
[22:50:44:053] &amp;lt;info&amp;gt; app: ␍␍␊
[22:50:44:053] &amp;lt;info&amp;gt; app: ␍␍␊
[22:50:44:053] &amp;lt;info&amp;gt; app: RX:␍␍␊
[22:50:44:061] &amp;lt;info&amp;gt; app:  A5 A5 A5 A5 A5 A5 A5 A5|........␍␍␊
[22:50:44:067] &amp;lt;info&amp;gt; app:  A5 A5 A5 A5            |....    ␍␍␊
[22:50:44:067] &amp;lt;info&amp;gt; app: Data consistent␍␍␊&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/thread/313886?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 10:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56901b5e-d2f8-46a4-accc-b3e69eef041e</guid><dc:creator>rgujju</dc:creator><description>&lt;p&gt;I am using the examples/peripheral/qspi example from the SDK.&lt;/p&gt;
&lt;p&gt;It works in normal SPI mode (Fast read and Page Program) But when i try in QSPI mode ( READ4O and PP4O) it does not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/thread/313823?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 07:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8248c2ac-cd4b-4390-b9bc-350c8455ccb1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;What data, and how are you trying to write over QSPI? Please&amp;nbsp;note that all memory access by the QSPI peripheral should be word-aligned to the external memory address space, so you can only write/read in full 32-bit words. This is described in detail in section 4.3.1 in the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.2.pdf"&gt;nRF52840 product specification&lt;/a&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><item><title>RE: QSPI does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/thread/313557?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 07:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb049337-fcae-4867-a149-e2656693874d</guid><dc:creator>rgujju</dc:creator><description>&lt;p&gt;Hi Simon,&lt;br /&gt;Yes it is a NOR flash.&lt;br /&gt;Here&amp;#39;s the datasheet &lt;a href="https://datasheet.octopart.com/W25Q32JVSSIQ-Winbond-datasheet-113071625.pdf"&gt;https://datasheet.octopart.com/W25Q32JVSSIQ-Winbond-datasheet-113071625.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is my pin mapping:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:15px;left:295.633px;top:875.542px;"&gt;/CS -&amp;gt; 0.20&lt;/span&gt;&lt;span style="font-size:15px;left:418.283px;top:875.542px;"&gt;&lt;/span&gt;&lt;span style="font-size:15px;left:180.033px;top:901.542px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:15px;left:277.633px;top:901.542px;"&gt;DO &lt;/span&gt;&lt;span style="font-size:15px;left:304.233px;top:901.542px;"&gt;(IO1)&lt;/span&gt;&lt;span style="font-size:15px;left:410.283px;top:901.542px;"&gt;I/&lt;/span&gt;&lt;span style="font-size:15px;left:418.683px;top:901.542px;"&gt;O -&amp;gt; 0.22&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:15px;left:274.833px;top:927.742px;"&gt;/WP &lt;/span&gt;&lt;span style="font-size:15px;left:307.433px;top:927.742px;"&gt;(IO2) -&amp;gt; 0.24&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:15px;left:180.033px;top:979.742px;"&gt;&lt;/span&gt;&lt;span style="font-size:15px;left:281.433px;top:979.742px;"&gt;DI &lt;/span&gt;&lt;span style="font-size:15px;left:300.633px;top:979.742px;"&gt;(IO0) -&amp;gt; 0.17&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:15px;left:293.433px;top:1005.99px;"&gt;CLK -&amp;gt; 0.15&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:15px;left:247.233px;top:1031.99px;"&gt;/RESET&lt;/span&gt;&lt;span style="font-size:15px;left:291.033px;top:1049.19px;"&gt;(IO3) -&amp;gt;0.13&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:15px;left:292.233px;top:1075.39px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/thread/313553?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 07:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:419a3b8a-3260-42d4-8e68-3c97f1c96306</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Yes, sorry. I meant nrf_serial_flash_params.c/.h of course. The W25Q32 is a NOR flash, right? Do you have the datasheet of the W25Q32 available, and can link to it/upload it here?&lt;/p&gt;
&lt;p&gt;What pins on the nRF52840 are you using for QSPI communication?&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: QSPI does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/thread/313363?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 10:57:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f5d389-e323-462b-bacc-e70de2885698</guid><dc:creator>rgujju</dc:creator><description>&lt;p&gt;Hello Simon,&lt;br /&gt;&lt;br /&gt;I changed the params in &lt;strong&gt;nrf_serial_flash_params.c to&lt;br /&gt;&lt;/strong&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;.read_id = { 0xEF, 0x40, 0x16 },
.capabilities = 0x00,
.size = 32 * 1024 * 1024,
.erase_size = 4 * 1024,
.program_size = 256,
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;but still it does not work.&lt;br /&gt;&lt;br /&gt;I am using the examples/peripheral/qspi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/thread/313260?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 06:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac1b6410-af06-4a34-8ffd-bcbe1ca0cbbc</guid><dc:creator>rgujju</dc:creator><description>&lt;p&gt;Hi Simon,&lt;br /&gt;&lt;br /&gt;There is no such file in the SDK. I am using nRF5_SDK_17.0.2_d674dde. &lt;br /&gt;Do you mean &lt;strong&gt;nrf_serial_flash_params.c?&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QSPI does not work in quad mode on NRF52840</title><link>https://devzone.nordicsemi.com/thread/313251?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 06:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e38e3237-01f5-4127-a78d-0537bb2d0a70</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you modified the parameters in &lt;strong&gt;nrf_serial_params.c&amp;nbsp;&lt;/strong&gt;in the SDK? When using an external flash different to the one on the&amp;nbsp;&lt;strong&gt;MX25R6435F&lt;/strong&gt; which is on the nRF52840 DK by default, you will likely also have to edit the parameters of your&amp;nbsp;&lt;strong&gt;nrf_serial_params.c&amp;nbsp;&lt;/strong&gt;file to make it fit the parameters of the one W25Q32. Please make sure that the read ID, capabilites, size, and erase/program sizes are correct according to the external flash chip&amp;#39;s datasheet.&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>