<?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 Problems Reading from QSPI Flash W25q32jv.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56471/nrf52840-problems-reading-from-qspi-flash-w25q32jv</link><description>Hi , 
 Im trying to read and write data from QSPI w25q32jv chip, for which i get faulty data . 
 I have used this example : https://github.com/jimmywong2003/nrf52840-QSPI-flash-example 
 I&amp;#39;m using Raytec Module which utilizes the 52840 chip as an BLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Mar 2020 00:17:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56471/nrf52840-problems-reading-from-qspi-flash-w25q32jv" /><item><title>RE: NRF52840 Problems Reading from QSPI Flash W25q32jv.</title><link>https://devzone.nordicsemi.com/thread/242265?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 00:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8ef5c1b-60a7-49b7-b1c7-9d791774d14d</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;HI,&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can try to use the nrfjprog qspi option to erase the flash for trying.&amp;nbsp; If failure, it is better to use the logic analyzer to check the signal on this failure board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Problems Reading from QSPI Flash W25q32jv.</title><link>https://devzone.nordicsemi.com/thread/242252?ContentTypeID=1</link><pubDate>Sun, 29 Mar 2020 18:42:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75654ce7-8663-418b-9f2f-76634aea8986</guid><dc:creator>Duy</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/jimmy-wong"&gt;Jimmy Wong&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I am using your example on 2 boards:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; - The 1st board fails, both&amp;nbsp;m_buffer_tx and&amp;nbsp;m_buffer_rx have value 0x88 for all of their elements. The m_buffer_tx values are changed after function&amp;nbsp;&lt;strong&gt;err_code = nrf_drv_qspi_read(m_buffer_rx, QSPI_TEST_DATA_SIZE+QSPI_TEST_DATA_SIZE, QSPI_BASE_ADDRESS);&lt;/strong&gt; is called.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; - The 2nd boards work fines.&lt;/p&gt;
&lt;p&gt;Do you have any idea how? Is is because of the flash IC is broken?&lt;/p&gt;
&lt;p&gt;Thanks and best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Duy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Problems Reading from QSPI Flash W25q32jv.</title><link>https://devzone.nordicsemi.com/thread/231152?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 13:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4567a018-0d2b-4210-9f94-f05689c6a5cb</guid><dc:creator>dhananjay_sutariya</dc:creator><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I have done the word alignment, im using segger studio to compile so gcc compilation occurs I assume.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Problems Reading from QSPI Flash W25q32jv.</title><link>https://devzone.nordicsemi.com/thread/229773?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 08:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8c2a17e-5b77-4330-bef1-a7efbcc3501b</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;you can use the compile to do the word alignment.&lt;br /&gt;&lt;br /&gt;for example,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;static uint8_t &lt;strong&gt;__ALIGN(4)&lt;/strong&gt; m_buffer_tx[QSPI_TEST_DATA_SIZE];
static uint8_t &lt;strong&gt;__ALIGN(4)&lt;/strong&gt; m_buffer_rx[QSPI_TEST_DATA_SIZE];&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;are you using the GCC or KEIL compiler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Problems Reading from QSPI Flash W25q32jv.</title><link>https://devzone.nordicsemi.com/thread/229324?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 06:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dd48cff-0e90-4f01-8b59-9bf5c665c36b</guid><dc:creator>dhananjay_sutariya</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your response,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already had the changes suggested by you in my sdkconfig file.&lt;/p&gt;
&lt;p&gt;I have taken my data array of uint8_t of size 0X08 which is 4 byte aligned.&lt;/p&gt;
&lt;p&gt;which gets loaded in this loop:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;     for (i = 0; i &amp;lt; QSPI_TEST_DATA_SIZE; ++i)
        {
                m_buffer_tx[i] = (uint8_t)rand()%10;
                //NRF_LOG_INFO(&amp;quot;[Main]Write data %u&amp;quot;,m_buffer_tx[i]);

        }
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Before drv_write api is called i check my&amp;nbsp; buffer using this part of code in flash_qspi_write&lt;pre class="ui-code" data-mode="text"&gt;         for (uint8_t i = 0; i &amp;lt; QSPI_TEST_DATA_SIZE; ++i)
        {
                //m_buffer_tx[i] = (uint32_t)rand()%20;
                NRF_LOG_INFO(&amp;quot;[flash_qspi_write]Write data %u at index[0X%x]&amp;quot;,p_tx_buffer[i],i);

        }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And after the data is read i print it inside the flash_qspi_read&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;         for (uint8_t i = 0; i &amp;lt; QSPI_TEST_DATA_SIZE   ; ++i)
        {
                //m_buffer_tx[i] = (uint32_t)rand()%20;
                NRF_LOG_INFO(&amp;quot;[flash_qspi_read]Read data %u at index [0X%x]&amp;quot;,p_rx_buffer[i],i);

        }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My output shows the shift here:&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Process of erasing first block start&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_write]Write data 17039360 at index[0X0]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_write]Write data 151191808 at index[0X1]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_write]Write data 1081344 at index[0X2]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_write]Write data 5849 at index[0X3]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_write]Write data 1 at index[0X4]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_write]Write data 5849 at index[0X5]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_write]Write data 8 at index[0X6]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_write]Write data 1081344 at index[0X7]&lt;br /&gt;&amp;lt;info&amp;gt; app: eflash_QSPI_WRITE_REQ&lt;br /&gt;&amp;lt;info&amp;gt; app: eflash_QSPI_WRITE_DONE&lt;br /&gt;&amp;lt;info&amp;gt; app: Process of writing data start at 0X108000&lt;br /&gt;&amp;lt;info&amp;gt; app: writing data Succ&lt;br /&gt;&lt;br /&gt;&amp;lt;info&amp;gt; app: eflash_QSPI_READ_REQ&lt;br /&gt;&amp;lt;info&amp;gt; app: flash_qspi_read: address = 108000, len = 8&lt;br /&gt;&amp;lt;info&amp;gt; app: eflash_QSPI_READ_DONE&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_read]Read data 3149642683 at index [0X0]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_read]Read data 3149642683 at index [0X1]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_read]Read data 17039360 at index [0X2]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_read]Read data 151191808 at index [0X3]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_read]Read data 1081344 at index [0X4]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_read]Read data 5849 at index [0X5]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_read]Read data 1 at index [0X6]&lt;br /&gt;&amp;lt;info&amp;gt; app: [flash_qspi_read]Read data 5849 at index [0X7]&lt;br /&gt;&amp;lt;info&amp;gt; app: Data read at line :256 .&lt;/p&gt;
&lt;p&gt;I guess this is alignment error of some sorts. How do we cope with that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Problems Reading from QSPI Flash W25q32jv.</title><link>https://devzone.nordicsemi.com/thread/228906?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 00:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78dca17f-a757-43b2-a7fd-a81860ab330f</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please provide the details about the failure case.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if you use my example of the QSPI on the non-Nordic DK board, you need to configure the pin assignment inside the sdk_config.h.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/jimmywong2003/nrf52840-QSPI-flash-example/blob/master/qspi_module_example/pca10056/blank/config/sdk_config.h"&gt;https://github.com/jimmywong2003/nrf52840-QSPI-flash-example/blob/master/qspi_module_example/pca10056/blank/config/sdk_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, you need to check with the qspi flash on the mode such as read mode / write mode.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;0=&amp;gt; FastRead
// &amp;lt;1=&amp;gt; Read2O
// &amp;lt;2=&amp;gt; Read2IO
// &amp;lt;3=&amp;gt; Read4O
// &amp;lt;4=&amp;gt; Read4IO

#ifndef NRFX_QSPI_CONFIG_READOC
#define NRFX_QSPI_CONFIG_READOC 4
#endif

// &amp;lt;o&amp;gt; NRFX_QSPI_CONFIG_WRITEOC  - Number of data lines and opcode used for writing.

// &amp;lt;0=&amp;gt; PP
// &amp;lt;1=&amp;gt; PP2O
// &amp;lt;2=&amp;gt; PP4O
// &amp;lt;3=&amp;gt; PP4IO

#ifndef NRFX_QSPI_CONFIG_WRITEOC
#define NRFX_QSPI_CONFIG_WRITEOC 3
#endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Problems Reading from QSPI Flash W25q32jv.</title><link>https://devzone.nordicsemi.com/thread/228855?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 14:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57ec5c1c-73d9-48db-b7c5-718ddb593427</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Dhananjay,&lt;/p&gt;
&lt;p&gt;Can you explain the issue in a bit more detail?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>