<?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_mesh, app_button, FreeRTOS and Mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70526/app_timer_mesh-app_button-freertos-and-mesh</link><description>Hi there! 
 Okay, we&amp;#39;re back again... I&amp;#39;m using ARMGCC in combination with Make, nRF5 SDK, nRF SDK for Mesh, FreeRTOS and C++. This time I wanted to use the APP_BUTTON library to get notified when a pin changes value. This works fine. The problem, however</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Jan 2021 11:01:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70526/app_timer_mesh-app_button-freertos-and-mesh" /><item><title>RE: app_timer_mesh, app_button, FreeRTOS and Mesh</title><link>https://devzone.nordicsemi.com/thread/290210?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2021 11:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd01d5e0-43b1-4896-b292-37ced9b4a1df</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Well, now that you&amp;#39;re saying it i&amp;#39;m starting to doubt wether or not I&amp;#39;ve tried adding app_timer_init() in front of it. I don&amp;#39;t think it made a difference, but it indeed is the app_timer_create() call that&amp;#39;s returning the error.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got a hard deadline for tomorrow so don&amp;#39;t really have time to look into it, but I definetely will in the future. I&amp;#39;ll keep you updated.&lt;/p&gt;
&lt;p&gt;Oh and btw, I&amp;#39;m aware of the example. I took it as a guideline for the changes but am not using CMake. Thanks anyway.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer_mesh, app_button, FreeRTOS and Mesh</title><link>https://devzone.nordicsemi.com/thread/289781?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2021 14:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:010ec0a0-f040-43ae-9832-c45b8a1ae744</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to step into the code and check which function actually returning&amp;nbsp;&lt;span&gt;NRF_ERROR_INVALID_STATE ?&amp;nbsp;&lt;br /&gt;If it&amp;#39;s&amp;nbsp;app_timer_create() call inside the app_button_init() returned error 8 then it&amp;#39;s because app_timer_init() should be called prior to the call to app_timer_create().&amp;nbsp;&lt;br /&gt;Please refer to our example in the SDK, we usually call timer_init() before any call to the app_button.&amp;nbsp;&lt;br /&gt;Btw, we have this example for mesh+ free RTOS, it may be useful for you:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nrf-mesh-freeRTOS-example"&gt;https://github.com/NordicPlayground/nrf-mesh-freeRTOS-example&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>