<?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>Create task.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38922/create-task</link><description>Hi Sir 
 Is it necessary to use FreeRTOS for create two tasks ? Does Nordic has any library or API for task creating ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Sep 2018 10:54:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38922/create-task" /><item><title>RE: Create task.</title><link>https://devzone.nordicsemi.com/thread/150659?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 10:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06932721-ddad-4af0-968f-e30f9eaa1c27</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you taken a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_timer.html?cp=4_0_0_3_51"&gt;app_timer&lt;/a&gt; module?&lt;/p&gt;
&lt;p&gt;With this one you can provide a pointer to a function which will be called either once after a certain delay, or repeatedly following a certain interval.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t have as many features as a fully fledged RTOS, but for many applications it will be sufficient.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have any dedicated examples for the app_timer module, but many of the other examples use it. For instance the ble_app_hrs example uses the app_timer to schedule things like battery state updates and simulated heart rate sensor updates.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create task.</title><link>https://devzone.nordicsemi.com/thread/150441?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 10:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e668f7f9-83ea-4a1e-8f88-0ac5471b7f1f</guid><dc:creator>Justin_Yeh</dc:creator><description>&lt;p&gt;Thanks your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create task.</title><link>https://devzone.nordicsemi.com/thread/150436?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 10:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:622b9084-d36e-4487-a72e-06cfe363974a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You&amp;#39;re still jumping the gun!&lt;/p&gt;
&lt;p&gt;&amp;quot;create a thread&amp;quot; is a step - not a goal.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="72757" url="~/f/nordic-q-a/38922/create-task/150435"]Should I porting FreeRTOS to my code for this target[/quote]
&lt;p&gt;Before talking about any particular RTOS (such as FreeRTOS),&amp;nbsp; you should&amp;nbsp;consider whether you need any RTOS &lt;em&gt;at all&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create task.</title><link>https://devzone.nordicsemi.com/thread/150435?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 10:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:850f206c-d886-417a-9d08-01b99ab23a54</guid><dc:creator>Justin_Yeh</dc:creator><description>&lt;p&gt;I mean that I want to create a thread to run something. Should I porting FreeRTOS to my code for this target ?&lt;/p&gt;
&lt;p&gt;----------------------------------&lt;/p&gt;
&lt;p&gt;main thread --&amp;gt; run cli&lt;/p&gt;
&lt;p&gt;other thread --&amp;gt; run a infinite loop for spi device data transmission.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create task.</title><link>https://devzone.nordicsemi.com/thread/150433?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 09:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1db50335-95e1-44fc-b0ed-3bfd8691860e</guid><dc:creator>awneil</dc:creator><description>[quote userid="72757" url="~/f/nordic-q-a/38922/create-task"]Is it necessary to use FreeRTOS for create two tasks ?[/quote]
&lt;p&gt;Not sure what you mean by that?&lt;/p&gt;
&lt;p&gt;Many people manage to make projects&amp;nbsp;on these kinds of chips without any&amp;nbsp;RTOS &lt;em&gt;at all&lt;/em&gt;!&lt;/p&gt;
&lt;p&gt;So, in that sense, FreeRTOS - or any other RTOS - is not &lt;em&gt;necessary&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Perhaps you could clarify your question - what are you actually trying to achieve?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.catb.org/esr/faqs/smart-questions.html#goal"&gt;http://www.catb.org/esr/faqs/smart-questions.html#goal&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
[quote userid="72757" url="~/f/nordic-q-a/38922/create-task"]Does Nordic has any library or API for task creating[/quote]
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_rtos.html?cp=4_0_0_3_37"&gt;infocenter.nordicsemi.com/.../lib_rtos.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>