<?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 timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79266/spi-slave-timeout</link><description>Hello, I am running an SPI slave application based on examples I found online for the nrf connect sdk. I now get the following error when I run the application: 
 
 I noticed it is connected to the CONFIG_SPI_COMPLETION_TIMEOUT_TOLERANCE configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Sep 2021 14:34:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79266/spi-slave-timeout" /><item><title>RE: SPI slave timeout</title><link>https://devzone.nordicsemi.com/thread/328003?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 14:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3299346e-9365-4c2e-b8cd-924261ae501a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The timeout occurs if the CS line is kept low too long after the last byte was clocked out on the master side. In your case I expect the timeout counter will start soon after you initialize the driver, if the CS line is low all the time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once you connect a master to the bus, and the CS line is high by default, this should not happen.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Alternatively you can just pull the line high externally until you got a master in place.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>