<?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>UART SPI Issue nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34830/uart-spi-issue-nrf52840</link><description>USB Virtual COM 
 Until now, the development has been done by sending the commands via a USB virtual COM. The received buffer of int is processed and sent to the function `ExecuteCommandLine`, from where the appropiate functions are called depending on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 May 2018 05:53:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34830/uart-spi-issue-nrf52840" /><item><title>RE: UART SPI Issue nRF52840</title><link>https://devzone.nordicsemi.com/thread/133926?ContentTypeID=1</link><pubDate>Wed, 30 May 2018 05:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8fbf948-377c-4fe0-ae7c-c7117a3bcfcd</guid><dc:creator>adragocelestica</dc:creator><description>&lt;p&gt;Yes, this seems to be it. I was asking the chip to do too many things inside the UART interruption. Now I am just setting a flag that the while(true) in the main picks up with an if statement so it is the main that executes all the stuff, and it is working correctly. Thank you very much for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART SPI Issue nRF52840</title><link>https://devzone.nordicsemi.com/thread/133777?ContentTypeID=1</link><pubDate>Tue, 29 May 2018 09:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fce2511-52c8-4fc5-8618-30397682f871</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This seems like an issue of interrupt priorities. You wait for&amp;nbsp;spi1_xfer_done in a interrupt context, and this should be set in another interrupt handler (or function called by it so that it will have the same priority). The function that sets&amp;nbsp;spi1_xfer_done must have higher priority than the function that polls it for this to work. You will experience this deadlock if it has the same or lower priority, as the function that initiated the SPI transaction will continue to run forever, blocking any lower or same priority interrupts from being handled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART SPI Issue nRF52840</title><link>https://devzone.nordicsemi.com/thread/133621?ContentTypeID=1</link><pubDate>Mon, 28 May 2018 10:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2994dc52-1822-40d1-8196-0bd51d66ca37</guid><dc:creator>adragocelestica</dc:creator><description>&lt;p&gt;By the way, I am using SDK 15 with SEGGER, programming my board from the evaluation board pca10056&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>