Page 1 of 1
Which Codewarrior version required?
Posted: Thu Jul 02, 2009 3:21 am
by octanes
Hi!
I have a educational Codewarrior license (unlimited codesize) and it compiles the latest code just fine and it also runs on the microsquirt. Nevertheless it doesn't seem to get the ignition right (while the original file works with the same setup). Is there a special (Professional?) Codewarrior version required to have enough optimization to create a working binary?
If yes, could somebody be so kind to compile my (modified) code if I sent it to him? FreeScale was so kind to send me the educational license for free but I guess they won't send me the professional and our team really doesn't have the resources to spend 2000$ on a compiler.
Thanks and regards,
Johannes
Re: Which Codewarrior version required?
Posted: Fri Jul 10, 2009 12:01 am
by octanes
Lance wrote:
The only requirement is that the compiler limits be able to accommodate the file size and number of files. Al currently uses CW 4.5, I believe, and I have successfully used CW 4.7. Before that, CW 3.1 was used.
That doesn't seem to be true. I compiled the 2.890 version of the code without modification (except renaming tmp2 to tmp2x and tmp3 to tmp3x) with CW 4.7. I tried to run the engine with the same setup as with binary from the website and while it does fine with the original binary it does not run the engine with self-compiled version.
MegaTune seems to work fine and I also get all the sensor signals from the engine but it does not start the engine. My guess is that it has timing problems because of different optimization available on different CW version but not for sure.
So can anybody tell me the exact version I need?
Regards,
Johannes
Re: Which Codewarrior version required?
Posted: Fri Jul 10, 2009 3:59 am
by grippo
The release 2.890 code was compiled under 3.1, but I have run it under 4.5 CW by making the changes you mentioned. All releases from now on will be compiled with CW 4.5.
Re: Which Codewarrior version required?
Posted: Sat Jul 11, 2009 8:03 am
by octanes
hmm, ok, so maybe 4.5 is different from 4.7 in some way

Re: Which Codewarrior version required?
Posted: Wed Jul 29, 2009 2:32 am
by octanes
Hi!
Hmm, found out so far that the Academic license I have is the same as the standard edition but from the website it's not really obvious if there is a difference for the C compiler between the standard and the professional edition.
Johannes
Re: Which Codewarrior version required?
Posted: Sat Aug 01, 2009 12:59 am
by octanes
Hi!
OK, I have the professional edition now and still no luck, not even an rpm signal (everything still fine with 2.890 from stock). I don't know where the problem lies but I found some problems now:
On megamanual.com used to be a link to the project file with the instructions to replace main.c, hcs12def.h, maffactor.inc, FLASH.H which I did but which didn't work. Nowadays the link says that the latest files would be included in the .zip file but they are not (or the link simply goes to the wrong file - don't know.)
Could someone send me a link to the latest complete project zip file?
Thanks,
Johannes