<?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>topic How to Port ConfigureTimerForRunTimeStats to the LPC55xx Series ? in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Port-ConfigureTimerForRunTimeStats-to-the-LPC55xx-Series/m-p/2168487#M33509</link>
    <description>&lt;P&gt;I want to monitor task status on FreeRTOS, so I enabled config_GENERATE_RUN_TIME_STATS in FreeRTOSConfig.h. However, I encountered the following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;If &lt;STRONG&gt;configGENERATE_RUN_TIME_STATS&lt;/STRONG&gt; is defined then &lt;STRONG&gt;portCONFIGURE_TIMER_FOR_RUN_TIME_STATS&lt;/STRONG&gt; must also be defined. &lt;STRONG&gt;portCONFIGURE_TIMER_FOR_RUN_TIME_STATS&lt;/STRONG&gt; should call a port layer function to setup a peripheral timer/counter that can then be used as the run time counter time base.&lt;BR /&gt;If &lt;STRONG&gt;configGENERATE_RUN_TIME_STATS&lt;/STRONG&gt; is defined then either &lt;STRONG&gt;portGET_RUN_TIME_COUNTER_VALUE&lt;/STRONG&gt; or &lt;STRONG&gt;portALT_GET_RUN_TIME_COUNTER_VALUE&lt;/STRONG&gt; must also be defined. See the examples provided and the FreeRTOS web site for more information.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm unsure how to implement portCONFIGURE_TIMER_FOR_RUN_TIME_STATS and portALT_GET_RUN_TIME_COUNTER_VALUE on the LPC55xx.&lt;BR /&gt;Could you provide assistance with this?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Sep 2025 02:50:31 GMT</pubDate>
    <dc:creator>inse1979</dc:creator>
    <dc:date>2025-09-12T02:50:31Z</dc:date>
    <item>
      <title>How to Port ConfigureTimerForRunTimeStats to the LPC55xx Series ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Port-ConfigureTimerForRunTimeStats-to-the-LPC55xx-Series/m-p/2168487#M33509</link>
      <description>&lt;P&gt;I want to monitor task status on FreeRTOS, so I enabled config_GENERATE_RUN_TIME_STATS in FreeRTOSConfig.h. However, I encountered the following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;If &lt;STRONG&gt;configGENERATE_RUN_TIME_STATS&lt;/STRONG&gt; is defined then &lt;STRONG&gt;portCONFIGURE_TIMER_FOR_RUN_TIME_STATS&lt;/STRONG&gt; must also be defined. &lt;STRONG&gt;portCONFIGURE_TIMER_FOR_RUN_TIME_STATS&lt;/STRONG&gt; should call a port layer function to setup a peripheral timer/counter that can then be used as the run time counter time base.&lt;BR /&gt;If &lt;STRONG&gt;configGENERATE_RUN_TIME_STATS&lt;/STRONG&gt; is defined then either &lt;STRONG&gt;portGET_RUN_TIME_COUNTER_VALUE&lt;/STRONG&gt; or &lt;STRONG&gt;portALT_GET_RUN_TIME_COUNTER_VALUE&lt;/STRONG&gt; must also be defined. See the examples provided and the FreeRTOS web site for more information.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm unsure how to implement portCONFIGURE_TIMER_FOR_RUN_TIME_STATS and portALT_GET_RUN_TIME_COUNTER_VALUE on the LPC55xx.&lt;BR /&gt;Could you provide assistance with this?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 02:50:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Port-ConfigureTimerForRunTimeStats-to-the-LPC55xx-Series/m-p/2168487#M33509</guid>
      <dc:creator>inse1979</dc:creator>
      <dc:date>2025-09-12T02:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Port ConfigureTimerForRunTimeStats to the LPC55xx Series ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Port-ConfigureTimerForRunTimeStats-to-the-LPC55xx-Series/m-p/2170170#M33510</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/254762"&gt;@inse1979&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;To enable run-time statistics in FreeRTOS on the LPC55xx, you need to configure a hardware timer that FreeRTOS can use to track task execution time. The error you're seeing is because the required macros are not yet defined in your &lt;CODE&gt;FreeRTOSConfig.h&lt;/CODE&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Make sure these are defined:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;!--ScriptorStartFragment--&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;#define configGENERATE_RUN_TIME_STATS 1&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS configureTimerForRunTimeStats()&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;#define portGET_RUN_TIME_COUNTER_VALUE getRunTimeCounterValue()&lt;/EM&gt;&lt;!--ScriptorEndFragment--&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;You’ll need to implement two functions in your application code:&lt;/FONT&gt;&lt;/P&gt;
&lt;H5&gt;&lt;FONT color="#000000"&gt;&lt;CODE&gt;configureTimerForRunTimeStats()&lt;/CODE&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;This function sets up a hardware timer (e.g., CTIMER0) to count at a known frequency.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;!--ScriptorStartFragment--&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;void configureTimerForRunTimeStats(void)&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;{&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp;...&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;!--ScriptorEndFragment--&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;H5&gt;&lt;FONT color="#000000"&gt;&lt;CODE&gt;getRunTimeCounterValue()&lt;/CODE&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;This function returns the current timer count.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;!--ScriptorStartFragment--&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;uint32_t getRunTimeCounterValue(void)&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;{&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return CTIMER0-&amp;gt;TC;&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;EM&gt;&lt;FONT color="#000000"&gt;}&lt;!--ScriptorEndFragment--&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;FONT color="#000000"&gt;Thank you.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;FONT color="#000000"&gt;BR&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;FONT color="#000000"&gt;Alice&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 06:03:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-Port-ConfigureTimerForRunTimeStats-to-the-LPC55xx-Series/m-p/2170170#M33510</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-09-16T06:03:53Z</dc:date>
    </item>
  </channel>
</rss>

