<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Kinetis Software Development KitのトピックRe: Issues with freeRTOS tickless on K21</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625649#M6589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to see that you are looking into it.&lt;/P&gt;&lt;P&gt;Looking forward to hearing the conclusion!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2016 09:24:26 GMT</pubDate>
    <dc:creator>martis</dc:creator>
    <dc:date>2016-12-05T09:24:26Z</dc:date>
    <item>
      <title>Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625646#M6586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using freertos in my application, and I am now trying to lower the power consumption by implementing tickless mode.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have some issues regarding the implementation of vPortSuppressTicksAndSleep.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the freertos_tickless_twrk21f120m project from SDK_2.0_TWR-K21F120M as a starting point. As it is, the example seems to be working, but when starting to modify it and test other frequencies, it does not behave as expected.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The LPTMR is setup with the default config which means 1khz clock.&lt;BR /&gt;However, configLPTMR_RATE_HZ is set to SystemCoreClock, which is 120000000.&lt;BR /&gt;When calculating the amount of LPTMR counts for one tick, the following expression is used:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ulLPTimerCountsForOneTick = configSYSTICK_CLOCK_HZ / configLPTMR_RATE_HZ;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As these two are defined to be the same, ulLPTimerCountsForOneTick is one. In the example&amp;nbsp; both configTICK_RATE_HZ and configLPTMR_RATE_HZ is 1000, which means that it is correct that one tick is 1 tick on the LPtimer. &lt;BR /&gt;But for the general case, the calculation doesn't make any sense, as the it doesn't include anything about the tick rate.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The correct calculation should be:&lt;BR /&gt;ulLPTimerCountsForOneTick = configLPTMR_RATE_HZ / configTICK_RATE_HZ;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fixing this issue allows me to play with different frequency settings of the LPTimer and RTOStick, and the timing looks correct.&lt;BR /&gt;But this is only until the sleep period is interrupted by an external interrupt, which sometimes causes the project to hang. This is due to the &lt;BR /&gt;vTaskStepTick( ulCompleteTickPeriods );&lt;BR /&gt;which is called with &lt;BR /&gt;ulCompleteTickPeriods = LPTMR_GetCurrentTimerCount(TICKLESS_LPTMR_BASE_PTR); &lt;BR /&gt;as parameter.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This again assumes that the LPTMR is at the same frequency as the rtos tick.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding:&lt;BR /&gt;ulCompleteTickPeriods /= ulLPTimerCountsForOneTick;&lt;BR /&gt;after reading out the value scales the value correctly, and avoids getting caught in the configASSERT in vTaskStepTick due to wrong input.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know if there are any more errors in this implementation, so it would be great if someone could have a look at this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2016 11:28:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625646#M6586</guid>
      <dc:creator>martis</dc:creator>
      <dc:date>2016-11-25T11:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625647#M6587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to let you know that I’m already working on your issue.I will get back to you know as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 17:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625647#M6587</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-11-30T17:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625648#M6588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, we already&amp;nbsp; were able to reproduced the problem, and we need to escalate&amp;nbsp; to our development team, once we have an update from them I will contact you asap&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 00:02:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625648#M6588</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-12-02T00:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625649#M6589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to see that you are looking into it.&lt;/P&gt;&lt;P&gt;Looking forward to hearing the conclusion!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 09:24:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625649#M6589</guid>
      <dc:creator>martis</dc:creator>
      <dc:date>2016-12-05T09:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625650#M6590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any news on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 11:30:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625650#M6590</guid>
      <dc:creator>martis</dc:creator>
      <dc:date>2016-12-07T11:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625651#M6591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any updates? I'm running to the same problem on the Cortex-M0 port.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 02:40:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625651#M6591</guid>
      <dc:creator>2bluesc</dc:creator>
      <dc:date>2017-01-05T02:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625652#M6592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also happen to have the same problem on the Cortex-M0 (KL27).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 06:58:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625652#M6592</guid>
      <dc:creator>javiercardona</dc:creator>
      <dc:date>2017-01-05T06:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625653#M6593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi martis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our development team reproduced and fixed the issue. Thank you for your feedback.&amp;nbsp; Please check the comments below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; color: #333333; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;EM&gt;"Issue was reproduced and fixed. I have used configLPTMR_CLOCK_HZ instead configLPTMR_RATE_HZ. Macro configLPTMR_RATE_HZ defined as (configCPU_CLOCK_HZ) was wrong. LPTMR is not driven by CPU clock (120MHz) but by LPO (1kHz). New macro configLPTMR_CLOCK_HZ is defined according to real LPTMR clock frequency 1kHz.&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 10px 0px 0px; padding: 0px; color: #333333; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;EM&gt;There is issue with configLPTMR_CLOCK_HZ definition in FreeRTOSConfig.h. LPTMR is not initialized in FreeRTOS but in application, but LPTMR is used in freertos source code. That is also reason why we need to define LPTMR clock frequency somewhere (currently in FreeRTOSConfig.h). This is pointing out to problem with lptmr tickless implementation. LPTMR tickless should be implemented as part of application, not as part of FreeRTOS."&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 10px 0px 0px; padding: 0px; color: #333333; font-family: Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 23:24:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625653#M6593</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-01-11T23:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625654#M6594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for finally getting some feedback on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not clear to me in this written explanation exactly what changes the development team has done in the "port.c" file. Could you please provide the fixed "port.c"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also not sure what is ment with "&lt;EM&gt;There is issue with configLPTMR_CLOCK_HZ definition in FreeRTOSConfig.h. LPTMR is not initialized in FreeRTOS but in application, but LPTMR is used in freertos source code&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;Yes, configLPTMR_CLOCK_HZ must be added to FreeRTOSConfig.h and the LPTMR must be initialized by the application, but so does configCPU_CLOCK_HZ and the system clock. FreeRTOS does depend upon the application setting some parameters and configuring this correctly according to this, but I don't think this is a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be really great to get a quick reply with the fixed "port.c",&amp;nbsp; because it has been more than 1,5 months to get an answer here, and I would like to be able to continue my development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 07:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625654#M6594</guid>
      <dc:creator>martis</dc:creator>
      <dc:date>2017-01-12T07:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625655#M6595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still need the fixed port.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide this soon?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 08:02:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625655#M6595</guid>
      <dc:creator>martis</dc:creator>
      <dc:date>2017-01-17T08:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625656#M6596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;I have similar situation with KL27 and i am using freertos v8.2.3, I found no definition about the LPTMR for both clock or rate macros. Would it be possible to post a example project (fixed freertos_tickless project), then we can see more clearly how it works? as well as the fixed port.c file is a great help.&lt;/P&gt;&lt;P&gt;Thank you and greatly appreciate this!!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 22:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625656#M6596</guid>
      <dc:creator>gsmgbl</dc:creator>
      <dc:date>2017-01-18T22:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625657#M6597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a project for the FRDM-KL27Z with KDS, Kinetis SDK V2.0 and FreeRTOS with tickless idle mode and low power timer on GitHub here: &lt;A class="link-titled" href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/KDS/FRDM-KL27Z/FRDM-KL27Z_McuOnEclipseLib" title="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/KDS/FRDM-KL27Z/FRDM-KL27Z_McuOnEclipseLib"&gt;mcuoneclipse/Examples/KDS/FRDM-KL27Z/FRDM-KL27Z_McuOnEclipseLib at master · ErichStyger/mcuoneclipse · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You find the FreeRTOS (I'm using the latest V9.0.0 with support for static allocation and trace) in the root of that project. The port is for many Cortex, so you can use it e.g. for M0+, M4(F) and as well for M7, although I have used the low power timer only with Kinetis-L. Unlike the port in the SDK, I'm using either Systick OR LPTMR and not mixing them (which does not make sense in my view).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PS: That project is using Processor Expert in the background (I have found a way to use it with the SDK V2.0) with include header files for configuration (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2016/12/12/mcuoneclipse-components-12-dec-2016-release/" title="https://mcuoneclipse.com/2016/12/12/mcuoneclipse-components-12-dec-2016-release/"&gt;McuOnEclipse Components: 12-Dec-2016 Release | MCU on Eclipse&lt;/A&gt;&amp;nbsp;): If you don't want/need a graphical user interface to configure FreeRTOS (and the other components), simply remove that .pe file in the project root.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 20:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625657#M6597</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-01-19T20:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625658#M6598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;I am using IAR Workbench for my development unfortunately, I took a look at your project and looks quite different from my environment. So do you have any similar project under IAR? or can you give me some hints or directions to convert the project? cos this is my first project. Thanks a lot and greatly appreciate your help!!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 22:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625658#M6598</guid>
      <dc:creator>gsmgbl</dc:creator>
      <dc:date>2017-01-19T22:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625659#M6599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is an Eclipse project, not an IAR project. But the FreeRTOS port supports many different compilers. Have a look at &lt;A class="link-titled" href="https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/KDS/FRDM-KL27Z/FRDM-KL27Z_McuOnEclipseLib/Generated_Code/FRTOS1config.h" title="https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/KDS/FRDM-KL27Z/FRDM-KL27Z_McuOnEclipseLib/Generated_Code/FRTOS1config.h"&gt;mcuoneclipse/FRTOS1config.h at master · ErichStyger/mcuoneclipse · GitHub&lt;/A&gt; and the &lt;SPAN class=""&gt;configCOMPILER&lt;/SPAN&gt; macro: you can set this to &lt;SPAN class=""&gt;configCOMPILER_ARM_IAR&lt;/SPAN&gt; and then the FreeRTOS is configured to use IAR compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 06:36:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625659#M6599</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-01-20T06:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625660#M6600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Developers are preparing the patch. I'll let you know as soon as they have it ready.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 18:10:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625660#M6600</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-01-23T18:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625661#M6601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;I re-generated the example project from the MCUExpress due to the new 2.1 SDK and FreeRTOS V9.0.0. I found that the configLPTMR_CLOCK_HZ are still using the configCPU_CLOCK_HZ, which mentioned it is wrong previously. So is the patch for the FreeRTOS V8.2.3 or V9.0.0 or both? Please advise. Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 17:41:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625661#M6601</guid>
      <dc:creator>gsmgbl</dc:creator>
      <dc:date>2017-01-24T17:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625662#M6602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to share fix for discussed issue.&lt;/P&gt;&lt;P&gt;There are two FreeRTOS versions (8.2.3 and 9.0.0) available in distribution system (mcuxpresso.nxp.com).&lt;/P&gt;&lt;P&gt;Version depends on the release in which specific board become supported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each version have slightly different code organization for low power tickless idle mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have prepared patch with following updates:&lt;/P&gt;&lt;P&gt;---- v. 8.2.3. ----&lt;/P&gt;&lt;P&gt;boards\&amp;lt;board&amp;gt;\rtos_examples\freertos_tickless\FreeRTOSConfig.h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; original:&amp;nbsp;&amp;nbsp;&amp;nbsp; #define configLPTMR_RATE_HZ (configCPU_CLOCK_HZ)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fixed:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define configLPTMR_CLOCK_HZ (1000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;freertos_8.2.3\Source\portable\&amp;lt;tool&amp;gt;\&amp;lt;architecture&amp;gt;\port.c:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vPortSuppressTicksAndSleep()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; original:&amp;nbsp;&amp;nbsp;&amp;nbsp; ulCompleteTickPeriods = LPTMR_GetCurrentTimerCount(TICKLESS_LPTMR_BASE_PTR);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fixed:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ulCompleteTickPeriods = LPTMR_GetCurrentTimerCount(TICKLESS_LPTMR_BASE_PTR)/ulLPTimerCountsForOneTick;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; prvSetupTimerInterrupt()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; original:&amp;nbsp;&amp;nbsp;&amp;nbsp; ulLPTimerCountsForOneTick = configSYSTICK_CLOCK_HZ / configLPTMR_RATE_HZ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fixed:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ulLPTimerCountsForOneTick = ( configLPTMR_CLOCK_HZ / configTICK_RATE_HZ );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---- v. 9.0.0. ----&lt;/P&gt;&lt;P&gt;boards\&amp;lt;board&amp;gt;\rtos_examples\freertos_tickless\FreeRTOSConfig.h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; original:&amp;nbsp;&amp;nbsp;&amp;nbsp; #define configLPTMR_RATE_HZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (configCPU_CLOCK_HZ)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fixed:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define configLPTMR_CLOCK_HZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;freertos_9.0.0\Source\portable\&amp;lt;tool&amp;gt;\&amp;lt;architecture&amp;gt;\fsl_tickless_lptmr.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vPortSuppressTicksAndSleep()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; original:&amp;nbsp;&amp;nbsp;&amp;nbsp; ulCompleteTickPeriods = LPTMR_GetCurrentTimerCount(pxLptmrBase);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fixed:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ulCompleteTickPeriods = LPTMR_GetCurrentTimerCount(pxLptmrBase)/ulLPTimerCountsForOneTick;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; prvSetupTimerInterrupt(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; original:&amp;nbsp;&amp;nbsp;&amp;nbsp; ulLPTimerCountsForOneTick = configSYSTICK_CLOCK_HZ / configLPTMR_RATE_HZ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fixed:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ulLPTimerCountsForOneTick = ( configLPTMR_CLOCK_HZ / configTICK_RATE_HZ );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to explain configLPTMR_CLOCK_HZ macro, because it is confusing. Its purpose is to pass low power timer clock frequency to tick functions in FreeRTOS core files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is difference in comparison with systick timer (common across different architectures), because systick timer is initialized directly in official port.c (in v 8.2.3 or in fsl_tickless_lptmr.c in 9.0.0) file (prvSetupTimerInterrupt function). The low power timers are different between families (kinetis, lpc) and hence it need to be initialized in application (LPTMR_Init in main). Macro configLPTMR_CLOCK_HZ cannot be changed without update of low power timer initialization in main function (LPTMR_Init). It is not perfect, but it is the reason for existence of configLPTMR_CLOCK_HZ. Current implementation have this inconsistency, and we are going to rework it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another topic to explain is split of port.c into several files in v 9.0.0. It is because we are supporting several different low power timers across one architecture (e.g. ARM_CM4F). LPTMR is used in kinetis line, and RTC in LPC line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to thanks Martis and other people in discussion for reporting the issue. I am sorry for delay in my reaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David (FreeRTOS integrator)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 13:06:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625662#M6602</guid>
      <dc:creator>davidjurajda</dc:creator>
      <dc:date>2017-01-26T13:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625663#M6603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David, glad to finally get this confirmed :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 13:52:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625663#M6603</guid>
      <dc:creator>martis</dc:creator>
      <dc:date>2017-01-26T13:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625664#M6604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;Thanks for your info and tips.&lt;/P&gt;&lt;P&gt;Greatly appreciate!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 16:35:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625664#M6604</guid>
      <dc:creator>gsmgbl</dc:creator>
      <dc:date>2017-01-27T16:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with freeRTOS tickless on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625665#M6605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I am using the V8.2.3 on my IAR and I am a beginner for FreeRTOS and first implementing the low power capability.&lt;/P&gt;&lt;P&gt;My MCU is Kinetis KL7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I measured my board with no tickles idle enabled (#define configUSE_TICKLESS_IDLE 0), then my current consumption is 12mA approx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I enabled (#define configUSE_TICKLESS_IDLE 1), then my current consumption get down to 4mA.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you posted this patch, then I enabled both the (#define configUSE_TICKLESS_IDLE 1 and #define configSYSTICK_USE_LOW_POWER_TIMER 1) and followed the freertos_tickles project, but it is measured as 4mA and no further power saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I miss something when I am following the freertos_tickless project?&lt;/P&gt;&lt;P&gt;My target is get down to something close to the VLPR mode, which approx. a few hundred uA.&lt;/P&gt;&lt;P&gt;Do you have any recommendations or tips that guide me on the right path? any example project that I can try out?&lt;/P&gt;&lt;P&gt;Please advise. Thank you!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 16:54:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-freeRTOS-tickless-on-K21/m-p/625665#M6605</guid>
      <dc:creator>gsmgbl</dc:creator>
      <dc:date>2017-01-27T16:54:55Z</dc:date>
    </item>
  </channel>
</rss>

