<?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 on NRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12197/freertos-on-nrf51822</link><description>Hi 
 I&amp;#39;ve just seen Nordic has ported FreeRTOS into the NRF5x series. Have you been using it together the S110? What&amp;#39;s your experience? Could I use it together any SoftDevice S110 version? I fear about memory resources problems. 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Mar 2016 11:19:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12197/freertos-on-nrf51822" /><item><title>RE: FreeRTOS on NRF51822</title><link>https://devzone.nordicsemi.com/thread/46160?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 11:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc14edc2-1367-4e70-a85d-10828c4b2280</guid><dc:creator>Elena</dc:creator><description>&lt;p&gt;Hi again. I&amp;#39;m testing with the NRF51422 (32KB RAM), and I&amp;#39;ve update SD and all the headers. But I&amp;#39;m having the same problem. The app enters in hard fault when arrives to pxNewTCB-&amp;gt;pxStack = pxStack (tasks.c, line 3111). I&amp;#39;m checking the hrs &amp;amp; freertos example but I see no differences. I&amp;#39;m using as environment Eclipse and GCC... Could be this the reason I&amp;#39;m not able to make it work the Freertos???? Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS on NRF51822</title><link>https://devzone.nordicsemi.com/thread/46159?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 14:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dddd8d11-cf7e-48ab-b774-cd9b2b83a6d5</guid><dc:creator>Elena</dc:creator><description>&lt;p&gt;Thanks. That could have sense. In the next days I will test with a NRF51422 with 32KB processor in order to get a conclussion. Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS on NRF51822</title><link>https://devzone.nordicsemi.com/thread/46158?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 12:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c86706f-6361-4f51-ac29-1fac82784696</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;The s110 will use about 8,2 K of RAM. When the application is using 8,5, it is clear that 16K ram is not enough. You must get a 32 K ram version of the nRF51, in order to make the freertos application run. (Of coarse, you can try to optimize the application to use less RAM).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS on NRF51822</title><link>https://devzone.nordicsemi.com/thread/46157?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 08:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3cfab99-5746-4d2c-bccb-cb839aef1341</guid><dc:creator>Elena</dc:creator><description>&lt;p&gt;Thanks for your reply. I&amp;#39;m not using yet the latest S110, and until next week I could not test the SW on a 32KB RAM processor. But what I see is an erratic behaviour on the execution. It is a non-sense that in If conditions (without memory modification) or pointer assignations the system crashes. Should I explain this because I&amp;#39;m not using the latest versions? Thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS on NRF51822</title><link>https://devzone.nordicsemi.com/thread/46156?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 08:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:510c4275-e59c-43e8-9268-f677363c782a</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Are you using the latest S110 version, SDK and 32kB RAM variant of nRF51?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS on NRF51822</title><link>https://devzone.nordicsemi.com/thread/46155?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 22:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:896ba8b7-53b9-4265-8dbe-4ab50a8e5863</guid><dc:creator>Elena</dc:creator><description>&lt;p&gt;Hi. Thanks for your reply. Your comments have encouraged me to test the FreeRTOS together to the S110. But my experience is not as good as yours. I&amp;#39;m not able to start the RTOS. Looks I&amp;#39;m having problems related to management of memory. When trying to create the firs task, looks that the RTOS stucks at this point:&lt;/p&gt;
&lt;p&gt;pxNewTCB-&amp;gt;pxStack = pxStack (tasks.c, line 3111)&lt;/p&gt;
&lt;p&gt;Which heap file are you using? Could be a problem related to a bad configuration of the FreeRTOS. I&amp;#39;ve limited the heap memory to 2048KB... for example. I&amp;#39;m using a NRF51822 with 16KB, so not too much RAM memory availabile. Tomorrow I&amp;#39;ll make some enquiries, but any advice should be helpfully to try to fix this problem.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Elena&lt;/p&gt;
&lt;p&gt;UPDATE: Hi again. I&amp;#39;m testing with the NRF51422 (32KB RAM), and I&amp;#39;ve update SD and all the headers. But I&amp;#39;m having the same problem. The app enters in hard fault when arrives to pxNewTCB-&amp;gt;pxStack = pxStack (tasks.c, line 3111). I&amp;#39;m checking the hrs &amp;amp; freertos example but I see no differences. I&amp;#39;m using as environment Eclipse and GCC... Could be this the reason I&amp;#39;m not able to make it work the Freertos???? Thanks again&lt;/p&gt;
&lt;p&gt;UPDATE 2: Finally I&amp;#39;ve been able to get FreeRTOS working, although because the new SDK is not compatible with mine, I&amp;#39;ve not been able to test it with Bluetooth working. Two problems I&amp;#39;ve found:
-I didn&amp;#39;t see there has to be defined the followint symbols when compiling:  BLE_STACK_SUPPORT_REQD __STACK_SIZE=2048 __HEAP_SIZE=1024 S110 BOARD_PCA10028 SOFTDEVICE_PRESENT NRF51 FREERTOS
-The startup file for gcc compiler is not correct. See my other thread (&lt;a href="https://devzone.nordicsemi.com/question/70483/error-in-startup-for-gcc-fixed/)"&gt;devzone.nordicsemi.com/.../)&lt;/a&gt;. Its necessary to fix this in order to boot FreeRTOS&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elena&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS on NRF51822</title><link>https://devzone.nordicsemi.com/thread/46154?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 15:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65a4be44-32b7-4f2e-9105-cc405d1a725c</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;The nRF5 SDK (SDK 11 and newer) only supports Softdevice S130 and S132. That being said, you will probably be able to run the examples on S110 as well.&lt;/p&gt;
&lt;p&gt;If you use SDK 10, you will find projects for S110. I advice you to use the latest version if possible.&lt;/p&gt;
&lt;p&gt;I have used the &amp;quot;ble_app_hrs_freertos&amp;quot; example from SDK 11 alpha. I extended it with a second 200 Hz task, and some message queues. It is working fine. I have used it on the nRF52, so memory has not been a concern for me.&lt;/p&gt;
&lt;p&gt;When i compile the &amp;quot;ble_app_hrs_freertos&amp;quot; for S110 (in SDK 10), the memory size output is about 8,6K. This is quite a alot if you are using the 16K version of the nRF51.&lt;/p&gt;
&lt;p&gt;-Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>