<?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>SPIM transfer from RTC handler gets stuck</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16901/spim-transfer-from-rtc-handler-gets-stuck</link><description>Hi, 
 I wrote a function setting some GPIO pins, initiating an SPIM transfer (with EasyDMA), then waiting for the SPIM handler to signal end of transfer, and then set some GPIO pins again. 
 This is working perfectly fine from the main thread. If I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Oct 2016 07:06:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16901/spim-transfer-from-rtc-handler-gets-stuck" /><item><title>RE: SPIM transfer from RTC handler gets stuck</title><link>https://devzone.nordicsemi.com/thread/64738?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 07:06:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3e12123-b1ff-4736-95dd-5494dc447796</guid><dc:creator>NewtoM</dc:creator><description>&lt;p&gt;Hi RK and thanks for the answer. The above was just a simplified description of what happens. Of course I am not really waiting, but at a specific point I was asserting the SPIM transfer having finished. And in the said case it never have.&lt;/p&gt;
&lt;p&gt;Apart from this, your answer is correct. It had to do with the IRQ priorities. When increasing the SPI handler&amp;#39;s priority, everything works as expected.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM transfer from RTC handler gets stuck</title><link>https://devzone.nordicsemi.com/thread/64737?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 01:20:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a6e3f3a-a2e8-4470-be40-1496f529c945</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&amp;quot;waiting for the SPIM handler to signal end of transfer&amp;quot;, do you mean that, are you actually sitting in the code spinning around waiting for a flag to show the end of the transfer?&lt;/p&gt;
&lt;p&gt;Because if you are doing that in an interrupt handler, you&amp;#39;re not returning from the interrupt handler and most likely the SPI handler is of equal or lesser priority than the RTC one so it never gets to run. And if you&amp;#39;re blocking in the RTC handler, that&amp;#39;s pretty much the wrong thing to be doing anywa.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM transfer from RTC handler gets stuck</title><link>https://devzone.nordicsemi.com/thread/64735?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 12:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46875861-8cc3-4c45-9d01-ce9a896faa65</guid><dc:creator>NewtoM</dc:creator><description>&lt;p&gt;Thanks for the quick reply, Sigurd! My revision is QFAAB0 so that should not be the problem. RTC2 seems to function (toggling an LED from its handler works).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM transfer from RTC handler gets stuck</title><link>https://devzone.nordicsemi.com/thread/64736?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2016 12:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5525b047-bdbb-4e99-9add-36d17dd8f3b5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What IC revision is this? It might be &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.EngA.errata/anomaly_832_10.html?resultof=%22%52%54%43%32%22%20%22%72%74%63%32%22%20"&gt;this&lt;/a&gt; problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>