<?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>SoftBlinking LED | Scheduler | SDK14</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24105/softblinking-led-scheduler-sdk14</link><description>Hello guys! 
 I&amp;#39;m trying to get softblinking led work with a SDK14.
The code works perfectly fine in one of my projects that use scheduler and SDK13. 
 But in SDK14, (only!) when I initialize softblinking, I get an NRF_ERROR_INVALID_LENGTH error on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Aug 2017 09:26:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24105/softblinking-led-scheduler-sdk14" /><item><title>RE: SoftBlinking LED | Scheduler | SDK14</title><link>https://devzone.nordicsemi.com/thread/94899?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 09:26:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d235880-a4d2-4f7a-8906-1cc6b775e944</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You will get an &lt;code&gt;NRF_ERROR_INVALID_LENGTH&lt;/code&gt; from app_sched_event_put() when you are exceeding the maximum event size that the scheduler queue is initialized for. Make sure that you &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Fgroup__app__scheduler.html&amp;amp;anchor=gaa9670ed0053a67304c3d2d0cb3eb1333"&gt;initialize the scheduler&lt;/a&gt; with a big enough max event size.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SCHED_MAX_EVENT_DATA_SIZE        MAX(APP_TIMER_SCHED_EVENT_DATA_SIZE, \
                                             BLE_STACK_HANDLER_SCHED_EVT_SIZE)       /**&amp;lt; Maximum size of scheduler events. */

/**@brief Function for the Event Scheduler initialization.
 */
static void scheduler_init(void)
{
    APP_SCHED_INIT(SCHED_MAX_EVENT_DATA_SIZE, SCHED_QUEUE_SIZE);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>