<?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>Bug: App Scheduler and freeRTOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25834/bug-app-scheduler-and-freertos</link><description>There seems to be a bit over a bug with the freeRTOS example. If you add the Scheduler to the BLE thread, Scheduler events will always be one event behind as there are only executed on the next loop. The fix is adding your power_manage() function both</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Oct 2017 18:25:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25834/bug-app-scheduler-and-freertos" /><item><title>RE: Bug: App Scheduler and freeRTOS</title><link>https://devzone.nordicsemi.com/thread/101766?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 18:25:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25274c5c-2846-48e2-ac85-0a9bea19206c</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I added  app_sched_execute();   (as well as #include &amp;quot;app_scheduler.h&amp;quot;)  to port_cmsis_systick.c  after the sd_app_evt_wait(); call.  This seemed to resolve the issue of delayed events.  The main issue was that ONLY ble events were triggering the Scheduler to handle events.  So if I posted any application events to the scheduler they simply would not execute until the next BLE event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug: App Scheduler and freeRTOS</title><link>https://devzone.nordicsemi.com/thread/101765?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 18:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:718a9601-c2cf-4107-ae2d-3b4a85bbd70e</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I am currently using SDK12.3.   When will SDK14.1 be available?  Also is the architecture in SDK14 set such that BLE is strictly on its own?  Currently I run SAADC from my BLE thread, how it seems in SDK14 the BLE thread is somewhat abstracted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug: App Scheduler and freeRTOS</title><link>https://devzone.nordicsemi.com/thread/101764?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2017 13:04:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98f21758-6a72-426f-8da0-27866a82a739</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you are pulling SoftDevice events in the scheduler you will see this bug. We are fixing this in the upcoming SDK version 14.1.
The solution in SDK 14 is to switch the sequence in the softdevice_task() in nrf_sdh_freertos.c&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void softdevice_task(void * pvParameter)\{

    NRF_LOG_DEBUG(&amp;quot;Enter softdevice_task.&amp;quot;);

    if (m_task_hook != NULL) \{

        m_task_hook(pvParameter);

    }

    while (true) \{

        nrf_sdh_evts_poll();

        (void) ulTaskNotifyTake(pdTRUE, portMAX_DELAY);

    }

}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>