<?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>SoftDevice task not created</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28861/softdevice-task-not-created</link><description>Here is a snippet of my debug log: 
 nrf_sdh_freertos: Creating a SoftDevice task.
 nrf_sdh_freertos: SoftDevice task not created.
 app: ERROR 4 [NRF_ERROR_NO_MEM] at ........\Libraries\Nordic\nRF5x\components\softdevice\common\nrf_sdh_freertos.c:108</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jan 2018 19:42:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28861/softdevice-task-not-created" /><item><title>RE: SoftDevice task not created</title><link>https://devzone.nordicsemi.com/thread/114268?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 19:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8456e0f5-b189-4577-8807-b90de30351da</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;then it is possible that the example ble_app_hrs_freertos from SDK nRF5_SDK_14.2.0_17b948a  was using up almost all available heap. Creating one dummy task might have been just enough in this case to cross the limit for returning with no mem error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice task not created</title><link>https://devzone.nordicsemi.com/thread/114267?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 19:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6bbf58c-4a25-4162-9cc7-afbc306354db</guid><dc:creator>Sensorion</dc:creator><description>&lt;p&gt;I would agree with you on most points, however, I have reproduced this issue when running the provided example application, ble_app_hrs_freertos from SDK nRF5_SDK_14.2.0_17b948a. I ran this sample application, added a single dummy task and the issue repro&amp;#39;d. Other than adding the additional task I made no other changes to the source code. Doubling the heap size cleared the issue here as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice task not created</title><link>https://devzone.nordicsemi.com/thread/114266?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 18:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58c1637a-3f2b-4bcc-8056-61df5e88153d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If number of tasks created between your old version of application is exactly same and if the FreeRTOS version you used before and now is the same and if you use same dynamic allocation scheme (heap1.c, heap2.c or heap4.c) then I doubt that the heap requirement of your application would change. The heap is only used by freeRTOS kernel for allocating the tasks data structures. that should not change between the same version of freeRTOS. I am almost certain that some configuration has changed in your application that is needing more heap (if all above are same, then your application must be requesting dynamic memory and that need might have changed)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice task not created</title><link>https://devzone.nordicsemi.com/thread/114265?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 21:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:330dd4d7-982b-4516-bf99-a5a2d7ef2782</guid><dc:creator>Sensorion</dc:creator><description>&lt;p&gt;Doubling the define configTOTAL_HEAP_SIZE from 4096 to 8192 did solve the issue.  The older version of my code, running with SDV3.0.0 (SDK12.2) was able to create and run multiple xTimers and xTasks, but in this latest version with SD5.0.0 (SDK14.2) this error occurred, even though in both instances I used the default value of 4096.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice task not created</title><link>https://devzone.nordicsemi.com/thread/114264?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 07:35:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:594d5964-381a-41c2-8ee5-33fede36ab24</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You need to increase the size of heap in FreeRTOSconfig.h file.
Tasks are created out of heap and seems that you do not have enough.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>