<?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>Timeslot and FreeRTOS problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18611/timeslot-and-freertos-problem</link><description>I am developing Timeslot program with FreeRTOS. (on nRF51822) 
 timeslot&amp;#39;s signal handler is
timeslot_signal_callback()
...
xQueueSendFromISR(s_timeslot_queue, &amp;amp;cmd, NULL);
.. 
 A few minute age, HardFault was occured. 
 When xQueueSendFromISR</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Dec 2016 12:54:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18611/timeslot-and-freertos-problem" /><item><title>RE: Timeslot and FreeRTOS problem</title><link>https://devzone.nordicsemi.com/thread/71850?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2016 12:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:113c0c71-e7d1-479a-9883-e4ba1ee2f110</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;Thanks. I understand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timeslot and FreeRTOS problem</title><link>https://devzone.nordicsemi.com/thread/71849?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2016 11:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd25e2fb-f2ff-4a71-962b-5d56db5f578e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The timeslot callback is called with the highest priority 0, and you are not allowed to call FreeRTOS API from this priority.&lt;/p&gt;
&lt;p&gt;you can only call the FreeRTOS API from priority equal or lower than configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY defined in FreeRTOSConfig.h file.&lt;/p&gt;
&lt;p&gt;Equal or lower in priority level means equal or higher in number.&lt;/p&gt;
&lt;p&gt;In short, you cannot call FreeRTOS API from timeslot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>