<?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 tickless idle not supported by SysTick port for NRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53833/freertos-tickless-idle-not-supported-by-systick-port-for-nrf52</link><description>The SysTick port for NRF52 does not support tickless idle on freeRTOS, what is the reason for this limitation? Are there any known problems behind this limitation?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Oct 2019 20:43:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53833/freertos-tickless-idle-not-supported-by-systick-port-for-nrf52" /><item><title>RE: FreeRTOS tickless idle not supported by SysTick port for NRF52</title><link>https://devzone.nordicsemi.com/thread/217620?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 20:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f49b142b-13bc-4ce2-88ba-be104187a31a</guid><dc:creator>jakbird</dc:creator><description>&lt;p&gt;SysTick runs off the core instruction clock.&amp;nbsp; When entering IDLE mode the clock stops, so SysTick stops as well.&lt;/p&gt;
&lt;p&gt;FreeRTOS needs to know the elapsed number of ticks while the core sleeps.&amp;nbsp; If SysTick is used as the time base there is no way to determine the elapsed time while the core is asleep.&amp;nbsp; Nor is there a mechanism to wake up after the maximum tick delay for tickless mode.&lt;/p&gt;
&lt;p&gt;The solution is to use RTC1 for the timebase.&amp;nbsp; Since it uses LFCLK it continues to run, and a compare register can be set to force an interrupt when the maximum tick delay is reached.&lt;/p&gt;
&lt;p&gt;This works in System On, IDLE mode but not System Off.&amp;nbsp; If you have to track time in System Off mode you&amp;#39;ll need an external RTC.&amp;nbsp; LFCLK is stopped so RTC1 won&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jack Peacock&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>