<?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 Using COM API with HiWave Debugger in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-COM-API-with-HiWave-Debugger/m-p/207104#M7983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is going to be a very difficult question to answer...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two version of CodeWarrior installed.&amp;nbsp; One&amp;nbsp;that I use for legacy programs and one for a new HCS08 program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have V4.6 and V6.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have developed Matlab/Simulink tools that use the COM API to aid in the debugging of Stateflow charts.&amp;nbsp; The tools use the COM API calls to control the debugger.&amp;nbsp; The tools were originally developed using the V4.6 CodeWarrior for HCS12.&amp;nbsp; When I run the tools and&amp;nbsp;create a COM object within Matlab, it would create an instance of the V4.6 debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, since I have recently installed the V6.3 CodeWarrior, when I run the tools to create the COM object, it wants to create an instance of V6.3 of the debugger.&amp;nbsp; For some reason, the tools are not working with the V6.3 debugger because it is setup for HSC08.&amp;nbsp; The V4.6 debugger is setup for HCS12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a snippet of my MatLab code that creates the instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; % Constant definitions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; HiWave_Path = &lt;SPAN style=": ; color: #A020F0;"&gt;'j:\out\'&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; HiWave_Project = &lt;SPAN style=": ; color: #A020F0;"&gt;'project.ini'&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; HiWave_Source = &lt;SPAN style=": ; color: #A020F0;"&gt;'JLR_PEPS_KVM.abs'&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; % Declare access to global variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;global&lt;/SPAN&gt; HiWave;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; HiWave = actxserver(&lt;SPAN style=": ; color: #A020F0;"&gt;'Metrowerks.Hiwave'&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&lt;SPAN style=": ; color: #0000ff;"&gt;&amp;nbsp; if&lt;/SPAN&gt; (strcmp(class(HiWave), &lt;SPAN style=": ; color: #A020F0;"&gt;'COM.Metrowerks_Hiwave'&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #007F00; font-size: 2; font-family: arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; % Load the defined project&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HiWave_Result = HiWave.ExecuteCmdRes([&lt;SPAN style=": ; color: #A020F0;"&gt;'OPENPROJECT '&lt;/SPAN&gt;, HiWave_Path, HiWave_Project]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;Is there a way to instruct which version of the debugger that the COM object creates?&lt;/P&gt;&lt;P&gt;Is there a way to get the HSC08 debugger to work with HSC12?&amp;nbsp; It seems like it returns errors about missing library files, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 00:57:39 GMT</pubDate>
    <dc:creator>jgirard1</dc:creator>
    <dc:date>2012-02-17T00:57:39Z</dc:date>
    <item>
      <title>Using COM API with HiWave Debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-COM-API-with-HiWave-Debugger/m-p/207104#M7983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is going to be a very difficult question to answer...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two version of CodeWarrior installed.&amp;nbsp; One&amp;nbsp;that I use for legacy programs and one for a new HCS08 program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have V4.6 and V6.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have developed Matlab/Simulink tools that use the COM API to aid in the debugging of Stateflow charts.&amp;nbsp; The tools use the COM API calls to control the debugger.&amp;nbsp; The tools were originally developed using the V4.6 CodeWarrior for HCS12.&amp;nbsp; When I run the tools and&amp;nbsp;create a COM object within Matlab, it would create an instance of the V4.6 debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, since I have recently installed the V6.3 CodeWarrior, when I run the tools to create the COM object, it wants to create an instance of V6.3 of the debugger.&amp;nbsp; For some reason, the tools are not working with the V6.3 debugger because it is setup for HSC08.&amp;nbsp; The V4.6 debugger is setup for HCS12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a snippet of my MatLab code that creates the instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; % Constant definitions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; HiWave_Path = &lt;SPAN style=": ; color: #A020F0;"&gt;'j:\out\'&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; HiWave_Project = &lt;SPAN style=": ; color: #A020F0;"&gt;'project.ini'&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; HiWave_Source = &lt;SPAN style=": ; color: #A020F0;"&gt;'JLR_PEPS_KVM.abs'&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; % Declare access to global variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;global&lt;/SPAN&gt; HiWave;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; HiWave = actxserver(&lt;SPAN style=": ; color: #A020F0;"&gt;'Metrowerks.Hiwave'&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&lt;SPAN style=": ; color: #0000ff;"&gt;&amp;nbsp; if&lt;/SPAN&gt; (strcmp(class(HiWave), &lt;SPAN style=": ; color: #A020F0;"&gt;'COM.Metrowerks_Hiwave'&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #007F00; font-size: 2; font-family: arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; % Load the defined project&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HiWave_Result = HiWave.ExecuteCmdRes([&lt;SPAN style=": ; color: #A020F0;"&gt;'OPENPROJECT '&lt;/SPAN&gt;, HiWave_Path, HiWave_Project]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 2;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;Is there a way to instruct which version of the debugger that the COM object creates?&lt;/P&gt;&lt;P&gt;Is there a way to get the HSC08 debugger to work with HSC12?&amp;nbsp; It seems like it returns errors about missing library files, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 00:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-COM-API-with-HiWave-Debugger/m-p/207104#M7983</guid>
      <dc:creator>jgirard1</dc:creator>
      <dc:date>2012-02-17T00:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using COM API with HiWave Debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-COM-API-with-HiWave-Debugger/m-p/207105#M7984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm not a COM expert, but if I remember right there is a setting in the windows registry which tells where the executable is? At least that way you should be able to specify/change which version shall be used. I might be wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To the second part: I'm not aware of any API changes between the two HI-WAVE versions, so the *should* work the same way. It would be useful to list te error messages you get. Maybe HI-WAVE is started with the wrong CPU settings, then it will complain about missing DLL's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 01:55:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-COM-API-with-HiWave-Debugger/m-p/207105#M7984</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-02-17T01:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using COM API with HiWave Debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-COM-API-with-HiWave-Debugger/m-p/207106#M7985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error messages I am getting are related to the BDM files.&amp;nbsp; My configuration is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have HCS12 BDM support integrated into the V4.6 install.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have HCS08 BDM support integrated into the V6.3 install.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The legacy project, which is HCS12,&amp;nbsp;requires HCS12 BDM type files to run properly.&amp;nbsp; The newer V6.3 install was only integrated to run with HCS08.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to figure out how to get the HCS12 BDM files integrated with the newer V6.3 install.&amp;nbsp; I&amp;nbsp;am using P&amp;amp;E USB Multilink Interface (purple), which has InDART...something...something for the HCS08 driver and MultilinkCyclePro for the HCS12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want both to run on the V6.3 install (not at the same time), I believe I need to get the HCS12 files installed.&amp;nbsp; I probably need to dig up the install disk for HCS12 BDM drivers and run it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 02:43:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-COM-API-with-HiWave-Debugger/m-p/207106#M7985</guid>
      <dc:creator>jgirard1</dc:creator>
      <dc:date>2012-02-17T02:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using COM API with HiWave Debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-COM-API-with-HiWave-Debugger/m-p/207107#M7986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To inform the COM script which occurrence of the IDE should be started just run regservers.bat located in your CodeWarrior&lt;/P&gt;&lt;P&gt;{Install}\bin directory before starting the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will update the registry accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 15:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-COM-API-with-HiWave-Debugger/m-p/207107#M7986</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-02-17T15:00:28Z</dc:date>
    </item>
  </channel>
</rss>

