<?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>Issue regarding app timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83981/issue-regarding-app-timer</link><description>I am using nrfsdk17.1.0 I had used 3 timers in my application. one timer starts in main function, second timer starts in the timer handler of first timer. My second timer is not started it is giving an error as soon as program reach there fatal error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jan 2022 10:19:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83981/issue-regarding-app-timer" /><item><title>RE: Issue regarding app timer</title><link>https://devzone.nordicsemi.com/thread/349485?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 10:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1236a01f-434e-4d31-a150-8979af913949</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for elaborating.&lt;br /&gt;Could you also show me your sdk_config.h file and preprocessor defines?&lt;br /&gt;I would like to check the app timer version being used, as well as the configuration of related libraries. Could you also show more of the code being executed around the call to start the second timer?&lt;br /&gt;Which event handler is starting the second timer, and what else happens in this event handler, for instance?&lt;br /&gt;&lt;br /&gt;You could also define&amp;nbsp;APP_TIMER_CONFIG_LOG_ENABLED 1 in your sdk_config, and set the log level to&amp;nbsp;APP_TIMER_CONFIG_LOG_LEVEL 4, so that the logging is more verbose and we could see more of what is happening within the app timer.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding app timer</title><link>https://devzone.nordicsemi.com/thread/349402?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 04:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34ca5ac0-7725-43ad-ac5e-4f210f41398e</guid><dc:creator>Piyush_9536</dc:creator><description>&lt;p&gt;yes that is done&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;

APP_TIMER_DEF(motion_sensor_timer_id);
 err_code = app_timer_create(&amp;amp;motion_sensor_timer_id,
                                APP_TIMER_MODE_REPEATED,
                                motion_sensor_timer_handler);
      APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding app timer</title><link>https://devzone.nordicsemi.com/thread/349321?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 14:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:715bdd52-017a-40d7-9527-7c1e36177a41</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;This could mean that the&amp;nbsp;&lt;em&gt;motion_sensor_timer_id&lt;/em&gt; timer instance has not been created. Could you confirm for me that you have called app_timer_create for this instance, and that it returned without any errors?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding app timer</title><link>https://devzone.nordicsemi.com/thread/349248?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 12:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6533b93-e84b-4566-a446-04572820569e</guid><dc:creator>Piyush_9536</dc:creator><description>&lt;p&gt;code:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	 ret_code_t error_code;
       error_code = app_timer_start(motion_sensor_timer_id, Motion_Data_Update, NULL);																		
       APP_ERROR_CHECK(error_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;error:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/621x62/__key/communityserver-discussions-components-files/4/pastedimage1643028001769v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding app timer</title><link>https://devzone.nordicsemi.com/thread/349242?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 12:27:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f1f5e1e-b6a2-4fae-b1f7-9d2bd0f3cee2</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Please share the complete error message, along with the function that returned the error code passed to the APP_ERROR_CHECK on the specified line.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding app timer</title><link>https://devzone.nordicsemi.com/thread/349238?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 12:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:690fac63-4eb7-40a9-b21b-66420950d0f6</guid><dc:creator>Piyush_9536</dc:creator><description>&lt;p&gt;error is - Timer not found on sortlist (stopping expired timer).&lt;/p&gt;
&lt;p&gt;Please tell me what to do&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for replying&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding app timer</title><link>https://devzone.nordicsemi.com/thread/349231?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 12:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70d1ceb4-8c2b-4752-b673-5224386a8469</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4113.enabling_5F00_debug_5F00_KEIL.PNG" /&gt;&lt;br /&gt;Please see the attached image for how to add the preprocessor define in Keil.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding app timer</title><link>https://devzone.nordicsemi.com/thread/349229?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 12:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae5aa332-014d-4108-9b38-9c0d4ca46a72</guid><dc:creator>Piyush_9536</dc:creator><description>&lt;p&gt;I am using keil where to do this in keil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue regarding app timer</title><link>https://devzone.nordicsemi.com/thread/349194?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 10:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9113a363-fa6a-4707-8960-2aeb9bbc60d6</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Please make sure to have DEBUG defined in your preprocessor defines, like shown in the included image:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/08500.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.&lt;br /&gt;Do this, and check the error code against the API reference of the function that returned the error code to see why the error code was returned, and what you may do to resolve the issue.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>