<?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>Multitasking and event handling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27381/multitasking-and-event-handling</link><description>Hello Everyone, 
 It is unclear to me how a soft-device operates regarding multi-tasking and event-handling. I&amp;#39;m assuming Nordic engineers have their own real-time operating system in place for their soft-devices whereby tasks and events are executed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Nov 2017 13:54:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27381/multitasking-and-event-handling" /><item><title>RE: Multitasking and event handling</title><link>https://devzone.nordicsemi.com/thread/108133?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 13:54:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bd402e3-7e28-4364-87c0-671d1313cc6c</guid><dc:creator>Roger</dc:creator><description>&lt;p&gt;At the moment, I would like to run two tasks at the same time, both sampling at approximately 1 kHz.
My application is quite small, one loop will be reading in IMU sensor measurements and updating a filter algorithm. The other loop will run the control algorithm. I need some codeblocks to execute when some events occur.
I will also need to log data on an external SD as close as possible to real-time. Later on, I would like to read and write the data from a tablet to control and monitor the system. There might be additional tasks and events added on at a later stage. As you rightly point out, for multitasking, preemption will be necessary.&lt;/p&gt;
&lt;p&gt;Quite new to FreeRTOS and looking forward to using it.&lt;/p&gt;
&lt;p&gt;Thanks Dave and Hung for your comments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multitasking and event handling</title><link>https://devzone.nordicsemi.com/thread/108132?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 15:33:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d886af1-b4ed-4b17-bb53-7acc90ed9409</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Roger,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think we implement any multi tasking or real time OS inside our softdevice. It&amp;#39;s basically a RTC timer and a scheduler working together. One task finishes before the other, no preemption.&lt;/p&gt;
&lt;p&gt;For your application, what kind of limit you are thinking of ? I assume you are planning to do cooperative multitasking ?&lt;/p&gt;
&lt;p&gt;I agree with Dave, freeRTOS would suit your need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multitasking and event handling</title><link>https://devzone.nordicsemi.com/thread/108131?ContentTypeID=1</link><pubDate>Sat, 18 Nov 2017 20:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1c6b109-fabb-4dbf-9191-1b6f894e2113</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I&amp;#39;d highly recommend using the freeRTOS framework.  Its very well vetted and supported by the community.  So debugging issues will be made a bit easier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>