<?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>MQX Software SolutionsのトピックCPU load measurement</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329762#M10541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am searching function with can help me in measuring cpu load. Maybe You know how to do that in MQX ? I am working with IAR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2014 06:20:42 GMT</pubDate>
    <dc:creator>paczkaexpres</dc:creator>
    <dc:date>2014-08-01T06:20:42Z</dc:date>
    <item>
      <title>CPU load measurement</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329762#M10541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am searching function with can help me in measuring cpu load. Maybe You know how to do that in MQX ? I am working with IAR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 06:20:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329762#M10541</guid>
      <dc:creator>paczkaexpres</dc:creator>
      <dc:date>2014-08-01T06:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: CPU load measurement</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329763#M10542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; color: #0000ff;"&gt;Did you get your answer. I am also seeking the same, using IAR V 7.40, MQX 4.1.1, TAD plugin V 4.7.3 is enabled but I cannot see CPU Utilization anywhere in any menu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva;"&gt;Both IAR and Freescale seem to be stating that use "CPU Utilization" from MQX menu but I don't see any&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'trebuchet ms', geneva;"&gt;Does something else has to be enabled and I am missing it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 16:15:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329763#M10542</guid>
      <dc:creator>nitinharish</dc:creator>
      <dc:date>2015-04-07T16:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: CPU load measurement</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329764#M10543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nitin Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below links!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/330927"&gt;MQX - CPU Utilization Performance Test&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/51447"&gt;calculating CPU time with the idle task&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &lt;BR /&gt; &lt;BR /&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>Thu, 09 Apr 2015 20:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329764#M10543</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2015-04-09T20:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: CPU load measurement</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329765#M10544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am working with Freescale MQX and I try to implement CLU load measurement. I have got big problem because one of my task (standard MQX shell task) consume all CPU (program never goes to idle task).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do You know how to change it ? Maybe Shell task could work in interrupts ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am working with 3.7 version of MQX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:09:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329765#M10544</guid>
      <dc:creator>paczkaexpres</dc:creator>
      <dc:date>2015-04-14T10:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: CPU load measurement</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329766#M10545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;There are two facets to this issue.&amp;nbsp; The first is the generation of CPU profiling data from the MQX kernel.&amp;nbsp; This is independent of tool chain.&amp;nbsp; The key steps to do this are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;Enable kernel logging by setting the following in MQX user_config.h:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;#define MQX_USE_LOGS 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;#define MQX_KERNEL_LOGGING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;Be sure to rebuild the BSP and PSP after setting these.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;Next, your application must configure and enable kernel logging.&amp;nbsp; Here are a few lines of code taken from the web_hvac_v2 demo (hvac_task.c) that show how it’s done:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;&amp;nbsp;&amp;nbsp; /* create kernel log */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt; _klog_create_at(DEMOCFG_KLOG_SIZE, 0,(void *)DEMOCFG_KLOG_ADDR);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;&amp;nbsp;&amp;nbsp; /* Enable kernel logging */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt; _klog_control(KLOG_ENABLED | KLOG_CONTEXT_ENABLED |&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt; KLOG_INTERRUPTS_ENABLED| &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KLOG_FUNCTIONS_ENABLED|KLOG_RTCS_FUNCTIONS, TRUE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;Note the stock web_hvac_v2 doesn’t contain the following lines that are needed to properly setup the log:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;#define DEMOCFG_KLOG_SIZE 0x1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;#define DEMOCFG_KLOG_ADDR 0x20000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;Of course, feel free to adjust the size and location as needed in your application.&amp;nbsp; Take a look at the hvac_task.c file to see more about how kernel logging is setup.&amp;nbsp; Some of the other demos may have good examples for reference as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;Once an application is built that has kernel logging enabled, the MQX TAD plug in IAR can access that data.&amp;nbsp; To do so, simply select “MQX-&amp;gt;Kernel Data” menu item from a paused debug session.&amp;nbsp; This will provide a text dump of the log.&amp;nbsp; You may be able to figure some stuff out from it, but it is unlikely.&amp;nbsp; You can save the data with the “MQX-&amp;gt;Copy Active to Clipboard” menu item.&amp;nbsp; You can then paste it in a document of your choosing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;What you’re after is the performance data.&amp;nbsp; It, too, is available from the MQX TAD.&amp;nbsp; Select “MQX-&amp;gt;Save Performance Data.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;The second step is analyzing the performance data.&amp;nbsp; IAR has not written a performance data viewer.&amp;nbsp; The only viewer available is part of CodeWarrior, as there has been very little demand for it.&amp;nbsp; The good news is the viewer works with the data generated by the MQX TAD in IAR. You’ll need to install CodeWarrior for MCUs v10.6, Special Edition, which is a free tool.&amp;nbsp; You can get it here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt; &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-SUITE-SPECIAL"&gt;www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-SUITE-SPECIAL&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt; Click on Download, and then find Special Edition: CodeWarrior for Microcontrollers 10.6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt; The “online” version is a small download that then fetches what is needed during installs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt; The “offline” version is a big download that has everything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;Once installed, start CodeWarrior and create a workspace.&amp;nbsp; You won’t be putting much in the workspace.&amp;nbsp; Within CodeWarrior, look at the “MQX Tools” menu.&amp;nbsp; You’ll see “performance data viewer,” “CPU utilization” and more.&amp;nbsp; Open the items of interest.&amp;nbsp; A window will open. Click the folder icon near the upper right to select the performance file saved from IAR.&amp;nbsp; Enjoy the views.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Palatino Linotype',serif; color: blue;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 20:44:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329766#M10545</guid>
      <dc:creator>GarySegal</dc:creator>
      <dc:date>2015-06-09T20:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: CPU load measurement</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329767#M10546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks！ It's useful.&lt;/P&gt;&lt;P&gt;But I have a question, because customer used Keil IDE, but I found it don't have “Save Performance Data” option. So I can't use Mqx TOOLs menu in Codewarrior. Do you have any good idea for this case?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Keil TAD.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29870iCD2D535911538752/image-size/large?v=v2&amp;amp;px=999" role="button" title="Keil TAD.jpg" alt="Keil TAD.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 09:06:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/CPU-load-measurement/m-p/329767#M10546</guid>
      <dc:creator>wenxue</dc:creator>
      <dc:date>2015-11-23T09:06:03Z</dc:date>
    </item>
  </channel>
</rss>

