<?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>CodeWarrior for StarCoreのトピックRe: Windows.h not working</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Windows-h-not-working/m-p/187391#M236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand what you did correctly, you are trying to use Windows desktop pefromance tools on an embedded system. That will not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Codewarrior for StarCore DSPs has plenty of built-in performance measurement tools. Look at the Profiling and Analysis User Guide document, located in (Windows XP path) C:\Program Files\Freescale\CS SC v10.2.10\SC\Help\PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 19:56:59 GMT</pubDate>
    <dc:creator>J2MEJediMaster</dc:creator>
    <dc:date>2012-08-09T19:56:59Z</dc:date>
    <item>
      <title>Windows.h not working</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Windows-h-not-working/m-p/187390#M235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm programming my MSC1856EVM using&amp;nbsp; C++ in CodeWarrior 10.2.10 on Windows 7 Professional. I'm trying to use any form of&amp;nbsp; the QueryPerformanceFrequency function to record how long it takes to perform a certain facet of my code. However, CodeWarrior didn't recognize Windows.h, so I downloaded the Microsoft SDK package with all necessary header files. I saved them into C:\Program Files\Freescale\CW SC v10.2.10\SC\StarCore_Support\compiler\include, but when I debug my code, it generates tons of errors from the Windows.h inclusions and can't even recognize a LARGE_INTEGER declaration. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 08:02:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Windows-h-not-working/m-p/187390#M235</guid>
      <dc:creator>tenfoo</dc:creator>
      <dc:date>2012-08-09T08:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Windows.h not working</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Windows-h-not-working/m-p/187391#M236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand what you did correctly, you are trying to use Windows desktop pefromance tools on an embedded system. That will not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Codewarrior for StarCore DSPs has plenty of built-in performance measurement tools. Look at the Profiling and Analysis User Guide document, located in (Windows XP path) C:\Program Files\Freescale\CS SC v10.2.10\SC\Help\PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 19:56:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Windows-h-not-working/m-p/187391#M236</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2012-08-09T19:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Windows.h not working</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Windows-h-not-working/m-p/187392#M237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a demo for the MSC8156ADS board that implemented Core and Device Timers to test the runtime of different segments of code. It's found in: {CW install dir}\SC\StarCore_Support\MiniDrivers\MSC8156ADS\ &amp;nbsp;&lt;/P&gt;&lt;P&gt;From this demo, I dedided to implement a version of the device timer measurement example with some of my code. Everything works beautifully when I create a project using C (since the libraries that define the timers are provided only in C), but the code I need to test is in C++. My code is huge and I can't convert the whole thing to C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached the code snippet I'm trying to run in C++ (called "Code").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't attach the library I used to run the project in C, but it's called "msc815x_libr.elb"...it also works in C when I use "msc815x_libd.elb"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also attached the error message it's giving me currently (called "Error"). I think it's a linker error, since everything is set up identically in both my C and C++ projects (aside from the source code of course). Is there a way to obtain this library (msc815x_libr.elb or msc815x_libd.elb) in C++, or a way to tell the linker to translate it into C++?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your time and help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-DR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2012 05:58:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Windows-h-not-working/m-p/187392#M237</guid>
      <dc:creator>tenfoo</dc:creator>
      <dc:date>2012-08-11T05:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Windows.h not working</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Windows-h-not-working/m-p/187393#M238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I rewrote my code in C and got the device counters and core counters to work in the MiniDrivers demo mentioned earlier. However, the measurement I'm trying to make takes about two and a half minutes to run and the counters roll over before then. Is there any way to measure time in the long-term? I've read everything I can find about the matter, including how to set counterpoints to run a trace on a certain subset of code and I'm still hitting a wall. Aren't there some simple settings I can configure to measure processing time somehow since apparently I don't have access to queryfrequencycounter or even simple clock()? This should be easy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 13:16:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/Windows-h-not-working/m-p/187393#M238</guid>
      <dc:creator>tenfoo</dc:creator>
      <dc:date>2012-08-13T13:16:06Z</dc:date>
    </item>
  </channel>
</rss>

