<?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 - RX buffer is empty but MISO line shows correct traffic on Logic Analyzer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57501/spim---rx-buffer-is-empty-but-miso-line-shows-correct-traffic-on-logic-analyzer</link><description>Hi everyone, 
 I am stuck with an apparently simple problem which I am not able to fix..... 
 I have an SPI device connected to a custom NRF52840 board. I am using NRFX_SPIM from SDK 15 to communicate with my device. 
 What I am trying to do is to simply</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Feb 2020 15:32:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57501/spim---rx-buffer-is-empty-but-miso-line-shows-correct-traffic-on-logic-analyzer" /><item><title>RE: SPIM - RX buffer is empty but MISO line shows correct traffic on Logic Analyzer</title><link>https://devzone.nordicsemi.com/thread/233343?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 15:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfba3f6f-eb73-42cc-9bd7-48de37a81b58</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;You&amp;#39;re welcome. Here are a few recent post I made on the subject, with a little more useful info on using SPI:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55952/nrf52832-get-wrong-who_am_i-value-with-spi"&gt;nrf52832-get-wrong-who_am_i-value-with-spi&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/32670/unable-to-interface-nrf51822-with-lis3dh-accelerometer-using-spi-being-nrf-as-master"&gt;unable-to-interface-nrf51822-with-lis3dh-accelerometer-using-spi-being-nrf-as-master&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57099/spi-communication-with-adxl372"&gt;spi-communication-with-adxl372&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM - RX buffer is empty but MISO line shows correct traffic on Logic Analyzer</title><link>https://devzone.nordicsemi.com/thread/233196?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 08:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54099940-1bf6-4bd8-853e-90e77a3d8671</guid><dc:creator>lbe</dc:creator><description>&lt;p&gt;Thanks a lot, I confirm that the right value is in second position! I tried to look in the forum before posting, but I didn&amp;#39;t come to any older post on the subject.....but ok important thing is that everything works as expected now!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM - RX buffer is empty but MISO line shows correct traffic on Logic Analyzer</title><link>https://devzone.nordicsemi.com/thread/233129?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 17:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a13e4bca-fc56-4862-bbec-30fed8f79383</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;The data you seek is not in&amp;nbsp;&lt;span&gt;&lt;em&gt;spi_rx_buff[0]&lt;/em&gt; but in&amp;nbsp;&lt;em&gt;spi_rx_buff[1]&lt;/em&gt;; the first byte received is a dummy byte clocked in while the command byte is clocked out, the data is in the 2nd received byte. You will also need to change&amp;nbsp;if &lt;em&gt;(spi_rx_buff[0] != 0)&lt;/em&gt; to check that 2nd byte. There are quite a few posts explaining why in more detail, but I don&amp;#39;t have links to hand.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>