<?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>App timer with 500 ms period filling app scheduler queue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23821/app-timer-with-500-ms-period-filling-app-scheduler-queue</link><description>Hello, 
 today I had a problem where a timer was causing my device to reset after a while, because the app scheduler queue got full and it was raising an NRF_ERROR_NO_MEM exception. 
 The period of the timer was 500 ms. My question is: Does a 500 ms</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jul 2017 18:05:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23821/app-timer-with-500-ms-period-filling-app-scheduler-queue" /><item><title>RE: App timer with 500 ms period filling app scheduler queue</title><link>https://devzone.nordicsemi.com/thread/93711?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 18:05:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21f8185a-d491-4a60-9892-2a21317bc7db</guid><dc:creator>Nathan</dc:creator><description>&lt;p&gt;In the latest SDK the size of the queue is based on the value you set during the app_sched_init call. The first passed parameter is the maximum size of any queue message, and the second parameter is the number of messages that may be queued before you hit the no memory error. The only requirement should be that you make sure to call app_sched_execute to clear the messages before you hit your limit. Conveniently enough, a 500ms app timer will add one message every 500ms, so it should be easy to calculate how often you have to execute the messages.&lt;/p&gt;
&lt;p&gt;All app scheduler messages go onto a common queue, so if you&amp;#39;re using the scheduler for other operations such as handling BLE connection events, you have to take their contribution to the queue size into consideration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>