<?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>Read data from SPI is not added to the buffer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15143/read-data-from-spi-is-not-added-to-the-buffer</link><description>Hey guys! 
 I am using your spi-master driver from the SDK 11 with the nRF52 chip. I am trying to read data from a MPU-9250 chip, and through my logic analysis, it seems like everything works well. My problem is that the data on the MISO-line isn&amp;#39;t always</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jul 2016 08:41:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15143/read-data-from-spi-is-not-added-to-the-buffer" /><item><title>RE: Read data from SPI is not added to the buffer</title><link>https://devzone.nordicsemi.com/thread/57808?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 08:41:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57ec169d-abbf-442d-8a67-16117431f676</guid><dc:creator>Henrik</dc:creator><description>&lt;p&gt;I fixed it myself!&lt;/p&gt;
&lt;p&gt;I initialized the SPI-driver with an event handler, but the event handler didn&amp;#39;t do anything. By removing the event handler, the transfer function returns when it is finished.&lt;/p&gt;
&lt;p&gt;I found the following in the info center:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If an event handler was provided in
the nrf_drv_spi_init call, this
function returns immediately and the
handler is called when the transfer is
done. Otherwise, the transfer is
performed in blocking mode, which
means that this function returns when
the transfer is finished.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I should have read it more thoroughly! Anyhow, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>