<?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>freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29785/freertos-rtc-issue-in-port_cmsis_systick-c</link><description>Hello, 
 Ported my FreeRTOS application on NRF52 from SDK 12.2.0 to SDK 13.0.0 .My application is using freertos apptimer for timestamping and waking up of device which was working without any issues on SDK 12.2.0,but on SDK 13.0.0 device was stuck insider</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Feb 2018 10:49:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29785/freertos-rtc-issue-in-port_cmsis_systick-c" /><item><title>RE: freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/thread/120411?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2018 10:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a42f00eb-2937-4e88-8623-3e65ac73998e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;fixed in SDK14.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/thread/118156?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 13:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:988d4636-f777-42ab-9c70-63cdad78f77d</guid><dc:creator>genis</dc:creator><description>&lt;p&gt;Fixed on SDK12.2.0. Thank you, good work!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/thread/118155?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2017 12:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be786970-22e8-47d8-9704-9efa1dac53c4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;this should be fixed in SDK 14 for nrf%2 files and SDK12.3 has patches for nRF51 files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/thread/118153?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 12:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016e6ad7-cfd6-4f1b-9689-2c6d0d7bbf34</guid><dc:creator>max</dc:creator><description>&lt;p&gt;What about nrf51? Do you have a &lt;strong&gt;port_cmsis_systick.c&lt;/strong&gt; file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/thread/118157?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 22:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9a13226-4067-413d-8695-8e1711ce85ad</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;Is this fixed in the latest SDK14.0 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/thread/118150?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 02:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a927020-137e-454f-9070-cbd71549927c</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;This issue is still not fixed in the sdk 13.1.0, and it worked by replacing the file port_cmsis_systick.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/thread/118152?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 09:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e54e65b3-eacf-47e2-9b43-4345243788c8</guid><dc:creator>sonja</dc:creator><description>&lt;p&gt;Yes it works now.
Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/thread/118154?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 10:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66082131-c02d-4761-a5ab-874de26d8fe3</guid><dc:creator>Srikar</dc:creator><description>&lt;p&gt;Thank you for Fix.
Tested for last 15 minutes ,Device is working as expected .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos RTC issue in port_cmsis_systick.c</title><link>https://devzone.nordicsemi.com/thread/118151?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 10:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4637f66e-04f9-487c-b53c-844971b2b0c7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;We found a corner case which could make the FreeRTOS tick go ahead of RTC tick.&lt;/p&gt;
&lt;p&gt;Please find the attached file and replace this&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1307.port_5F00_cmsis_5F00_systick.c"&gt;port_cmsis_systick.c&lt;/a&gt; with the file SDK\external\freertos\portable\CMSIS\nrf52\port_cmsis_systick.c&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;For those who are using older SDK, they will get a missing define error with this new file, in that case you need to add the below to FreeRTOSConfig.h file&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/** Implementation note:  Use this with caution and set this to 1 ONLY for debugging  *
----------------------------------------------------------
     * Set the value of configUSE_DISABLE_TICK_AUTO_CORRECTION_DEBUG to below for enabling or disabling RTOS tick auto correction:
     * 0. This is default. If the RTC tick interrupt is masked for more than 1 tick by higher priority interrupts, then most likely
     *    one or more RTC ticks are lost. The tick interrupt inside RTOS will detect this and make a correction needed. This is needed
     *    for the RTOS internal timers to be more accurate.
     * 1. The auto correction for RTOS tick is disabled even though few RTC tick interrupts were lost. This feature is desirable when debugging
     *    the RTOS application and stepping though the code. After stepping when the application is continued in debug mode, the auto-corrections of
     *    RTOS tick might cause asserts. Setting configUSE_DISABLE_TICK_AUTO_CORRECTION_DEBUG to 1 will make RTC and RTOS go out of sync but could be
     *    convenient for debugging.
     */
#define configUSE_DISABLE_TICK_AUTO_CORRECTION_DEBUG 0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Let me know if this helps&lt;/p&gt;
&lt;p&gt;/Susheel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>