<?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 race condition</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26066/spi-slave-race-condition</link><description>Hi! 
 After reading few posts about spi slave/master issues... I&amp;#39;m also challenging with one of them. I have following setup nrf51822, s130 2.0.1 and sdk 12.3.0… nrf51 (spi slave) is communicating with arm cortex m3 (spi master) and I have established</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Oct 2017 08:50:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26066/spi-slave-race-condition" /><item><title>RE: spi slave race condition</title><link>https://devzone.nordicsemi.com/thread/102741?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2017 08:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa1261f4-a0fe-455c-bbc8-e15c933a2ad3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use &lt;code&gt;APP_PRIORITY_HIGH&lt;/code&gt;(irq priority 1 on nRF51) as long as&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You are not making any SoftDevice calls from the high priority context.&lt;/li&gt;
&lt;li&gt;The callback is short so that it is not blocking UPPER STACK from executing.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you have &lt;code&gt;APP_PRIORITY_HIGH&lt;/code&gt; in the SPI driver and have a lot of traffic with it, then you MIGHT notice lower throughput in the BLE stack because your SPI driver is blocking upper stack. It wont cause any faults and it is legal to use but you might see lower throughput. If that is not a problem in your usecase, and if you see that it solves your issues with SPI, it should be fine to use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>