<?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>Use SPI Master within NUS Data Handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53855/use-spi-master-within-nus-data-handler</link><description>Hi, 
 I can use the SPI master functionality within nrf_drv_spi.c/.h just fine (i.e. calls from main) until I connect to my nRF52840 and utilize NUS. If I try to issue a nrf_drv_spi_transfer() call from within my NUS data handler (i.e. when handing incoming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Oct 2019 00:02:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53855/use-spi-master-within-nus-data-handler" /><item><title>RE: Use SPI Master within NUS Data Handler</title><link>https://devzone.nordicsemi.com/thread/217637?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 00:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ead9bd37-d41a-4598-b5f6-48a8aabf31fa</guid><dc:creator>Mark J</dc:creator><description>&lt;p&gt;I was able to resolve this by simply scheduling a handler on the main thread from the NUS data hander. There may also be a way to resolve through priority changes, but I will leave it to a Nordic expert to suggest such a change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>