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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

2,032 次查看
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 项奖励
回复
4 回复数

1,562 次查看
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 项奖励
回复

2,015 次查看
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 项奖励
回复

1,759 次查看
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 项奖励
回复

1,561 次查看
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 项奖励
回复