After running the MQX batch installation file for MCU10.2 (see MQX Eclipse Working Sets) I had an error dialog when I inspected my debug/run configuration:
“Error loading data producer reader: com.freescale.morpho.core.CWException: The function “getServiceByContractID” returned an error condition (0x80040154)”
Additionally the .metadata .log file reported:
!ENTRY com.freescale.sa.analysispoints 4 120 2012-05-21 20:56:09.760 !MESSAGE The function "getServiceByContractID" returned an error condition (0x80040154)
I had the same dialog a while back when I was moving around my Eclipse framework installation. At that time, I had found the solution in an email list, but forgotten about it. Until today, when I had that dialog again. So I better post it for everyone :-).
The error happens if .dat files point to wrong file locations to load additional software components. So this could happen if I copy around my Eclipse installation, or if for other reasons the .dat files do not get updated properly.
To solve the problem:
- Close Eclipse
- Delete the *.dat files in “C:\Freescale\CW MCU v10.2\eclipse\plugins\com.freescale.morpho.core_7.0.0.106089-201110132018\xpcom\bin\components”
- Restart Eclipse
Note: the path to “com.freescale.morpho.core_7.0.0.*” depends on the installation path and version of CodeWarrior.
With deleting the *.dat (in my case compreg.dat and xpti.dat) this, the problem goes away.
Another (easier) solution is to run the following batch file inside the CodeWarrior installation:
<installation path>\eclipse\register_xpcom.bat
However, this seems not to solve the case if I move around my layout, but works for me for the MQX installation thing.
Happy Morphing 🙂
Pingback: Bit Banging I2C | MCU on Eclipse
Thanks for this excellent post! This fixed my problem.
LikeLike
You are more than welcome. I was running twice into that problem, so I thought it is worthwhile to post the solution. I know that the CodeWarrior team is working on a solution so that fix will not be needed in the future.
LikeLike
Excellent fix, been fighting with this issue then remembered reading about it in this blog. Your blog is very appreciated.
LikeLike
Great post!! just solve my identical problem. I ran the register_xpcom.bat and it works!
LikeLike
Thank you. The fix has helped to me – saved a lot of time.
LikeLike