<?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>Three errors found from SDK15.2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38551/three-errors-found-from-sdk15-2-0</link><description>The file components/libraries/timer/app_timer_freertos.c does not have the function app_timer_cnt_get() defined. Compiling libraries that require it (like external/lwip/src/port/nrf_platform_port.c) fails when using FreeRTOS. 
 Two simple source code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Nov 2018 14:09:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38551/three-errors-found-from-sdk15-2-0" /><item><title>RE: Three errors found from SDK15.2.0</title><link>https://devzone.nordicsemi.com/thread/159586?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 14:09:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d1b8b48-0d11-4e78-a410-d99c2d47942c</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;You can put the following wrapper in app_timer_freertos.c as a workaround:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t app_timer_cnt_get(void)
{
    if (__get_IPSR() != 0)
    {
        // inside ISR
        return (uint32_t)xTaskGetTickCountFromISR();
    }
    else
    {
        return (uint32_t)xTaskGetTickCount();
    }
} &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Three errors found from SDK15.2.0</title><link>https://devzone.nordicsemi.com/thread/159582?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 13:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44d0bdee-1863-4fd3-847e-59361c0ded0e</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Eliav,&lt;/p&gt;
&lt;p&gt;My bad, I didn&amp;#39;t answered the initial question in your post. In freeRTOS you need to call &lt;a href="https://www.freertos.org/a00021.html#xTaskGetTickCount"&gt;xTaskGetTickCount&lt;/a&gt; instead, or &lt;a href="https://www.freertos.org/a00021.html#xTaskGetTickCountFromISR"&gt;xTaskGetTickCountFromISR&lt;/a&gt; if you are using ISR. We don&amp;#39;t use app_timer_cnt_get() with freeRTOS.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Three errors found from SDK15.2.0</title><link>https://devzone.nordicsemi.com/thread/159503?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 09:00:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad647f0-6980-4d45-91fa-8ae7c10f4b77</guid><dc:creator>Eliav</dc:creator><description>&lt;p&gt;BTW, I thought of using this:&lt;br /&gt;curr_ticks = NRF_RTC1-&amp;gt;COUNTER;&lt;/p&gt;
&lt;p&gt;instead of&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;curr_ticks = app_timer_cnt_get();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But I&amp;#39;m not sure it&amp;#39;s the right way to go...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Three errors found from SDK15.2.0</title><link>https://devzone.nordicsemi.com/thread/159480?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 08:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7d74c70-b3bf-4c32-be06-799abcaa1dfa</guid><dc:creator>Eliav</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Can you suggest a workaround for app_timer_cnt_get() missing in the meantime.&lt;br /&gt;I&amp;#39;m using it in an existing application that I&amp;#39;m migrating to FreeRTOS on 15.2...&lt;br /&gt;&lt;br /&gt;Any help would be appreciated&lt;/p&gt;
&lt;p&gt;Eliav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Three errors found from SDK15.2.0</title><link>https://devzone.nordicsemi.com/thread/149025?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 12:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d01781e-ebc3-4107-a1d7-1f420f6d82ee</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Pertti,&lt;/p&gt;
&lt;p&gt;Thank you for reporting. Our SDK team has now been made aware of these issues.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>