<?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>spi clock problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8374/spi-clock-problem</link><description>Hi, 
 I&amp;#39;m trying to use winbond spi flash (w25q64fv) 
 but i have a problem with spi as you can see in below image clock stop before receiving data from spi flash, do you have any idea why??? 
 
 here is what should i see based on datasheet 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Jul 2015 03:05:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8374/spi-clock-problem" /><item><title>RE: spi clock problem</title><link>https://devzone.nordicsemi.com/thread/30382?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2015 03:05:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f678af7-5cbf-4a1d-8b7e-01b1c87c28c6</guid><dc:creator>john kotkin</dc:creator><description>&lt;p&gt;Thank you, Yes the problem was because of two register i was trying to read return always Zero&amp;#39;s&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi clock problem</title><link>https://devzone.nordicsemi.com/thread/30381?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2015 01:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b828901c-5fbe-4522-821d-58b4b7c4bcca</guid><dc:creator>nszmnsky</dc:creator><description>&lt;p&gt;I haven&amp;#39;t used your flash, and I have only browsed the datasheet. Is it possible that the 0x05 should read register 1 would return all zero&amp;#39;s? Try changing command to 0x90 to read the Manufact./Dev. ID (looks like would also need to change code to read 6 bytes) and see if you get correct data out.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d also suggest double checking pins - MOSI connected to DI, MISO to DO, and that /WP and /HOLD are pulled high.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi clock problem</title><link>https://devzone.nordicsemi.com/thread/30380?ContentTypeID=1</link><pubDate>Sun, 26 Jul 2015 07:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ff364c2-5e50-4b6d-9a06-cec453a6293a</guid><dc:creator>john kotkin</dc:creator><description>&lt;p&gt;I made this change and still nothing from w25q64fv, i changed my w25q64fv with a new one but still nothing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi clock problem</title><link>https://devzone.nordicsemi.com/thread/30379?ContentTypeID=1</link><pubDate>Sun, 26 Jul 2015 04:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c93d41be-1205-4859-9f6e-e530d40b1d88</guid><dc:creator>nszmnsky</dc:creator><description>&lt;p&gt;The data sheet shows a 3 byte transaction, 1 byte command transmit and two byte receive. But to read a byte, you actually need to transmit one as SPI is a synchronous protocol. I think if you modify the code&lt;/p&gt;
&lt;p&gt;uint8_t rx_data[3];&lt;/p&gt;
&lt;p&gt;uint8_t tx_data[3] = {0x05, 0xff, 0xff};&lt;/p&gt;
&lt;p&gt;spi_master_send_recv(SPI_MASTER_0, tx_data, 3, &amp;amp;rx_data, 3);&lt;/p&gt;
&lt;p&gt;you should see 24 clocks, i.e. 3 byte send/receive.
Of course you will also want to change function type and return IF you want 16bit integer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>