<?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 slave driver sometime receive empty data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69386/spi-slave-driver-sometime-receive-empty-data</link><description>Development Kit : nRF52833 
 SDK: nRF5_SDK_17.0.2_d674dde 
 SPIS example: nRF5_SDK_17.0.2_d674dde\examples\peripheral\spis 
 Current codebase: nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10100\s140 
 Testing file: 
 
 Hi Guys 
 Currently</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Dec 2020 03:04:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69386/spi-slave-driver-sometime-receive-empty-data" /><item><title>RE: SPI slave driver sometime receive empty data</title><link>https://devzone.nordicsemi.com/thread/285206?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 03:04:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a8f8b9a-b84d-44e1-a0f3-0ad59020b23a</guid><dc:creator>Sylar</dc:creator><description>&lt;p&gt;Hi haakonsh&lt;/p&gt;
&lt;p&gt;Thanks for your effort,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have found the root cause of this issue. Since nRF board voltage level is not match with my Master board (Total phase VAARDVARK),&lt;/p&gt;
&lt;p&gt;Once I add below code to pullup spis signal, the event can be received correctly&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;spis_config.csn_pullup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = NRF_GPIO_PIN_PULLUP;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI slave driver sometime receive empty data</title><link>https://devzone.nordicsemi.com/thread/284955?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 08:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efc9a05b-1fa5-43c4-b655-0836408697d0</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I think the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;memset&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;m_rx_buf&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;0x01&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;m_length&lt;/span&gt;&lt;span&gt;); call in the main loop is at fault. Since both this call and&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_LOG_FLUSH&lt;/span&gt;&lt;span&gt;(); both run in the main&amp;#39;s context and you&amp;nbsp;have no way of controlling whether your logs are printed before you erase the rx buffer or not.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>