<?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.h bug?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117491/app_timer-h-bug</link><description>Hello, 
 I encountered a compilation issue when using the app_timer function. The error message is: &amp;quot;&amp;#39;TickType_t&amp;#39; undeclared (first use in this function)&amp;quot;. I believe the problem is related to some incorrect configuration in FreeRTOS, specifically with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jan 2025 16:09:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117491/app_timer-h-bug" /><item><title>RE: app_timer.h bug?</title><link>https://devzone.nordicsemi.com/thread/517298?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 16:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec11ec94-8519-4d46-a578-6ae43519cb2c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;For new development we strongly recommend the zephyr RTOS, that is part of the nRF Connect SDK. You may familiarize yourself with the nRF Connect SDK in our Developer Academy:&lt;br /&gt;&lt;a href="https://academy.nordicsemi.com/"&gt;https://academy.nordicsemi.com/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer.h bug?</title><link>https://devzone.nordicsemi.com/thread/516930?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 09:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77a01fc1-bf49-404b-b197-178b078dfbb8</guid><dc:creator>gk117542</dc:creator><description>&lt;p&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer.h bug?</title><link>https://devzone.nordicsemi.com/thread/516195?ContentTypeID=1</link><pubDate>Tue, 24 Dec 2024 01:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74e30d33-6e44-4127-a26b-60e48a618d53</guid><dc:creator>gk117542</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;I think my project is correct, there is no app_timer.c in it, only app_timer_freertos.c, the error here is mainly because APP_TIMER_TICKS (MS) is used, if I use a tick value is correct, but I now need to convert ms to tick.&lt;/p&gt;
&lt;p&gt;#ifndef FREERTOS&lt;br /&gt;#define APP_TIMER_TICKS(MS) \&lt;br /&gt; ((uint32_t)ROUNDED_DIV( \&lt;br /&gt; (MS) * (uint64_t)APP_TIMER_CLOCK_FREQ, \&lt;br /&gt; 1000 * (APP_TIMER_CONFIG_RTC_FREQUENCY + 1)))&lt;br /&gt;#else&lt;br /&gt;#include &amp;quot;FreeRTOSConfig.h&amp;quot;&lt;br /&gt;#define APP_TIMER_TICKS(MS) (uint32_t)ROUNDED_DIV((MS)*configTICK_RATE_HZ,1000)&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;the macro definition FREERTOS is defined.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer.h bug?</title><link>https://devzone.nordicsemi.com/thread/516123?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2024 12:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:617c3314-f57d-47e2-afc1-0f6e117a7735</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94982/how-to-use-libuarte-app_timer-on-freertos"&gt;How to use libuarte+app_timer on FreeRTOS&lt;/a&gt;&amp;nbsp;:&lt;/p&gt;
&lt;p&gt;&amp;quot;you need to remove app_timer.c from your project and add app_timer_freertos.c so that the app_timer API is available to your application. App_timer_freeertos.c still uses Freertos timer API so it should work ok.&amp;quot;&lt;/p&gt;
&lt;p&gt;Try that.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>