Python connection to "Metrowerks.Hiwave" Windows 10 64 bit

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python connection to "Metrowerks.Hiwave" Windows 10 64 bit

2,026 Views
Paul53818
Contributor I

I am trying to connect with previously working Python 3.3 code of:

Win32com is installed.

debugger = win32com.client.Dispatch("Metrowerks.Hiwave")

Does not work.  So is this because it needs to be an older OS or 32 bit version of WIndows10?

Or is there another way to connect to the Hiwave COM object using Python now?

Version info:

Python 3.3

Windows: Edition Windows 10 Enterprise
Version 21H2
Installed on ‎6/‎15/‎2021
OS build 19044.1526
Experience Windows Feature Experience Pack 120.2212.4170.0

CodeWarrior Development Studio for the S12(X) Version 5.1, build 10221

 Thanks

Paul

0 Kudos
Reply
4 Replies

1,556 Views
Fremwise
Contributor I

Windows 10 fix-ish:

After installing CodeWarrior Development Studio for the S12(X) Version 5.2, the 'Metrowerks.Hiwave' doesn't exist in the registery.

To ensure it gets added to the registry:

 - open a PowerShell window and navigate to the hiwave.exe in the installation folder, likely c:\program files (x86)\freescale\<cwversion>\prog\ 

- type .\hiwave.exe -RegServer

- check the registry and the "Metrowerks.Hiwave" should now be present allowing python to utilize the windows COM interface to automate hiwave related commands

0 Kudos
Reply

2,009 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Paul,

I'm not sure what the issue is, however, CW 5.1 does no work with Win10.

You need to use CW5.2 instead.

https://www.nxp.com/design/software/development-software/codewarrior-development-tools/downloads:CW_...

 

BR, Daniel

 

0 Kudos
Reply

1,753 Views
Fremwise
Contributor I

To summarize: Is there a way to utilize the COM interface with Hiwave (CW5.2) on Windows 10 or is there another method to automate sending commands to hiwave?

Details: I'm running an older verison of CodeWarrior/Hiwave on windows XP which will correctly find and dispatch the "Metrowerks.Hiwave"; allowing automated debugging via python.

However, on Windows 10 with v5.2, I'm unable to dispatch the "Metrowerks.Hiwave" in a similar manner. From the command line, "...hiwave.exe -RegServer" appears to not complain, but I'm not able to utilize the COM Interface and dispatching returns essentially a invalid class string error (i.e. not found).

As a side note, on XP, "Metrowerks.Hiwave" appears as an item in the windows XP registry for the "ComHiwave Class" item's VersionIndependentProgID.

However, downloading and installing the CodeWarrior v5.2 and the associated service pack "...Final_SP_b170524" doesn't place a similar "Metrowerks.Hiwave" in the Windows 10 registry. 

0 Kudos
Reply

1,555 Views
Fremwise
Contributor I
It may have been a lack of using PowerShell with admin privileges, but the hiwave.exe -RegServer does indeed work now.
0 Kudos
Reply