<?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>SPIM nrf_drv_spi_transfer() with W25N01GVZEIR SPI Flash Memory</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95786/spim-nrf_drv_spi_transfer-with-w25n01gvzeir-spi-flash-memory</link><description>My setup is based on the SPI example program included in the nrfSDK nRF5_SDK_17.1.0_ddde560\examples\peripheral\spi\main.c 
 I&amp;#39;ve set up my SPI instance and am sending commands over to the Winbond flash memory. 
 
 However, I am only receiving 0x00 when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Mar 2023 12:54:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95786/spim-nrf_drv_spi_transfer-with-w25n01gvzeir-spi-flash-memory" /><item><title>RE: SPIM nrf_drv_spi_transfer() with W25N01GVZEIR SPI Flash Memory</title><link>https://devzone.nordicsemi.com/thread/417072?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 12:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb89fea1-6689-4e54-bc34-9855e17bc05f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Hmm, interesting. Can you also show us what the RX array variable shows when you watch it in debug mode on the board?&amp;nbsp;Preferably a comparison between the GV and KV variants so we can see the exact difference in behavior. Also, are you seeing this issue on multiple boards, or are you testing on just the one. If you&amp;#39;re just seeing the issue on the one board with the KV variant there&amp;#39;s a chance it could be poor soldering on the MOSI/MISO pins that cause this issue as well.&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: SPIM nrf_drv_spi_transfer() with W25N01GVZEIR SPI Flash Memory</title><link>https://devzone.nordicsemi.com/thread/416887?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 16:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa81d555-b27a-4fc2-bce8-dfa5620bdbb9</guid><dc:creator>Caleb</dc:creator><description>&lt;p&gt;Hello Simonr, thanks for the reply.&lt;br /&gt;(I typed this up two months ago yet never hit reply)&lt;br /&gt;I believe it should work the same since both devices displayed similarly in the logic analyzer.&lt;/p&gt;
&lt;p&gt;As you can see in the above screenshot of the logic analyzer it is transmitting the data over SPI, the ID code for the KV device is&amp;nbsp;0xEFAE21 and this is shown in the logic analyzer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When sending the same command to the GV device the logic analyzer looks about the same except it receives the appropriate ID of 0xEFAA21.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve been working with the Winbond engineers as well and they have not seen this issue. I am led to believe it is an issue with the NRF52 device since the logic analyzer is showing what we would expect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM nrf_drv_spi_transfer() with W25N01GVZEIR SPI Flash Memory</title><link>https://devzone.nordicsemi.com/thread/406667?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 13:30:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7a4a9d7-3483-400a-8a16-6df8ee2bf252</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the late reply, but Jared is currently out of office, and we&amp;#39;re only now getting to his backlog.&lt;/p&gt;
&lt;p&gt;Is the KV device perhaps set up in Sequential Read Mode, and thus works somewhat different from the &lt;a href="https://www.winbond.com/hq/support/documentation/levelOne.jsp?__locale=en&amp;amp;DocNo=DA00-W25N01GV.2"&gt;GV variant&lt;/a&gt;? From a quick look at the datasheets, I see for example that the &lt;a href="https://www.winbond.com/hq/support/documentation/levelOne.jsp?__locale=en&amp;amp;DocNo=DA00-W25N01KV"&gt;KV variant&lt;/a&gt; has multiple read and write registers, so you probably have to specify the correct one to read the correct data.&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: SPIM nrf_drv_spi_transfer() with W25N01GVZEIR SPI Flash Memory</title><link>https://devzone.nordicsemi.com/thread/406116?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 19:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c47264d7-6ae6-4fc3-99b0-2d1dc28a78b0</guid><dc:creator>Caleb</dc:creator><description>&lt;p&gt;I am able to get the data in the debugger when using a &lt;span&gt;W25N01GV&amp;nbsp;&lt;/span&gt;chip from the same manufacturers the&amp;nbsp;W25N01KV does not show data on the nrf device, only on the logic analyzer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM nrf_drv_spi_transfer() with W25N01GVZEIR SPI Flash Memory</title><link>https://devzone.nordicsemi.com/thread/405625?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 09:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb75822f-2743-48de-b2bc-db330253bcc3</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks, for the trace. It clearly shows that the data is sent correctly from the flash so the output from the SPI master should be ok as well.&amp;nbsp;&lt;/p&gt;
[quote user="Caleb"] Would the issue be that I am not printing to the debugger or receiving the data properly using nrf_drv_spi_transfer?[/quote]
&lt;p&gt;I don&amp;#39;t think that is the issue, you should be able to use the logger module but maybe there is a problem with how you format the data. Could you set a breakpoint right where you print the data, start the debugger, and&amp;nbsp;set the&amp;nbsp;mfg_id array as watch in debug mode and see if it contains the manufacture and device id? If yes, then we know that the problem is how the data is formatted before you print it out.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM nrf_drv_spi_transfer() with W25N01GVZEIR SPI Flash Memory</title><link>https://devzone.nordicsemi.com/thread/405517?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 15:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63bf7a9e-64d2-465b-bb34-bcd368f7c05c</guid><dc:creator>Caleb</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230118_5F00_100313.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the SPI lines, they&amp;#39;re all as I would expect. Would the issue be that I am not printing to the debugger or receiving the data properly using nrf_drv_spi_transfer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM nrf_drv_spi_transfer() with W25N01GVZEIR SPI Flash Memory</title><link>https://devzone.nordicsemi.com/thread/405496?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 13:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21bd3c69-009a-4363-a031-1cbf09d5de15</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;The first thing you could is to probe the SPI lines and check if the CS is asserted correctly and that the SCL looks ok. Then you should double check of the data coming out on MOSI is what you expect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have a logic analyzer then it would be great if you can share the trace.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>