<?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>freertos in nrf51.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18471/freertos-in-nrf51</link><description>hello in nrf51 sdk, nordic has already ported freertos.
but if i want to port myself. can anyone tell me how to do it?? 
 first i downloaded freertos from website. but then how to port it in nrf51?? in which file should i change?? 
 thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Dec 2016 20:20:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18471/freertos-in-nrf51" /><item><title>RE: freertos in nrf51.</title><link>https://devzone.nordicsemi.com/thread/71267?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2016 20:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d30c0240-31d2-42b8-81dc-5facb0a4b9a2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Then I think you should follow erltot&amp;#39;s suggestion. Read the contents of the links which are good starting points.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos in nrf51.</title><link>https://devzone.nordicsemi.com/thread/71266?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2016 08:42:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df6feafa-ee8e-4c41-9095-a7bd4c7f0b85</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;yes i want to learn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos in nrf51.</title><link>https://devzone.nordicsemi.com/thread/71268?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2016 08:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bd41676-8f54-4f8f-a81f-f31cfdc6f2e7</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;Do you mean port FreeRTOS or just add the source code and allready made port files to your project?&lt;/p&gt;
&lt;p&gt;I have only used FreeRTOS on 8bit AVR so far, by partially writing new port code. From what I learned:&lt;/p&gt;
&lt;p&gt;If you have not read the whole FreeRTOS manual, do it. I found it very good and it should not take too much time, it&amp;#39;s well worth it.&lt;/p&gt;
&lt;p&gt;Porting is not trivial, but usually what you need to change is in &amp;#39;./portable/[compiler]/port.c and portmacro.c&amp;#39; in the FreeRTOS source. This is not something you need to do or understand in order to use FreeRTOS. It includes writing assembler code to do context switching, and you need to have control on lowest level of programming. There are also some cortex specific things you need to take care of that I am not familiar with since my experience is from the AVR.&lt;/p&gt;
&lt;p&gt;If you want to install source files it is in essence:&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;&lt;code&gt;1 Download FreeRTOS source code
2 Files of interest are in &amp;#39;./FreeRTOSVx.x.x/FreeRTOS/Source&amp;#39; and &amp;#39;/portable&amp;#39;
3 Find the &amp;#39;FreeRTOSConfig.h&amp;#39; from a cortex m0 example, or use the one from nordic
4 Include, add files and add paths to files so keils is configured to find and compile the files etc
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;I would just use one of the examples, e.g. &amp;#39;freeRTOS blinky&amp;#39; and build on that if I were you.&lt;/p&gt;
&lt;p&gt;More reading:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.freertos.org/FreeRTOS-quick-start-guide.html"&gt;www.freertos.org/FreeRTOS-quick-start-guide.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.freertos.org/Creating-a-new-FreeRTOS-project.html"&gt;www.freertos.org/Creating-a-new-FreeRTOS-project.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.freertos.org/FreeRTOS-porting-guide.html"&gt;www.freertos.org/FreeRTOS-porting-guide.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos in nrf51.</title><link>https://devzone.nordicsemi.com/thread/71265?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2016 08:20:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a62a531a-cb18-4a1a-9d23-84d9fff77a0d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Why do you want to port an already ported and working RTOS?
Is it to learn? If so , please take a look at this guide&lt;br /&gt;
&lt;a href="http://www.freertos.org/FreeRTOS-porting-guide.html"&gt;www.freertos.org/FreeRTOS-porting-guide.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>