<?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_start causes a hard fault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50768/app_timer_start-causes-a-hard-fault</link><description>The device is connected to Keil for debugging. When BLE send and timer start-stop is repeated, it may stop at HardFault_Handler. 
 Looking at the call stack at that time, 0x04 is displayed due to a LOCAL ERROR of app_timer_start. I think this is the error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Aug 2019 06:59:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50768/app_timer_start-causes-a-hard-fault" /><item><title>RE: app_timer_start causes a hard fault</title><link>https://devzone.nordicsemi.com/thread/206014?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 06:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc506203-9fe9-4ed6-9045-031816452905</guid><dc:creator>Sawada</dc:creator><description>&lt;p&gt;ret_code_t app_timer_start(app_timer_id_t timer_id, uint32_t timeout_ticks, void * p_context)&lt;/p&gt;
&lt;p&gt;It seems that LOCAL_ERROR (0x4) was displayed on Keil because the reference destination of the null pointer was passed to the id of the first argument.&lt;br /&gt;It was solved by taking measures so as not to pass null.&lt;br /&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer_start causes a hard fault</title><link>https://devzone.nordicsemi.com/thread/202999?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 09:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de38e64a-695b-4b13-a9a6-8cf263fd020e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;user_op_alloc() should only return NULL if the queue is full. Did you try to increase the size of the operation queue config?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer_start causes a hard fault</title><link>https://devzone.nordicsemi.com/thread/202997?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 09:10:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bb60e71-3067-4d79-8ff1-efc8faf0eb5b</guid><dc:creator>Sawada</dc:creator><description>&lt;p&gt;This error occurs when the timer operations queue is not full.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The device connected to a Keil and looked at the queue value of the timer when an error occurred.&lt;br /&gt;&amp;nbsp; &amp;nbsp; m_op_queue.first == m_op_queue.last&lt;br /&gt;If first and last are equal, it means that the timer has not accumulated.&lt;br /&gt;Also, timer start and end are called alternately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer_start causes a hard fault</title><link>https://devzone.nordicsemi.com/thread/202988?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 08:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f786f2c6-b183-4a21-b9e6-a298242ef23c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The API reference for &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__app__timer.html#gaa2e52b98d7c4030d5e283ddfe50c81c7"&gt;app_timer_start()&lt;/a&gt; indicates what will cause this issue:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;NRF_ERROR_NO_MEM&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;If the timer operations queue was full.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;There is a sdk_config.h parameter for the library that allows you to change the operations queue size:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__app__timer__config.html#ga3cae0236c8e963755ec625e44d5b71be"&gt;APP_TIMER_CONFIG_OP_QUEUE_SIZE&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>