Which Codewarrior version required?

A forum for discussing the creation, modification, and loading of embedded code for B&G MS-I/MS-II.
Forum rules
Read the manual to see if your question is answered there before posting. Many users will not reply if the answer is already available in the manual.

If your question is about troubleshooting, configuration, or tuning, you MUST include your processor type (MS-I or MS-II) and code version in your post. If your question is about PCB assembly or modifications, you must also include the main board version number (1.01, 2.2 or 3.0).

If you have questions about MS1/Extra or MS2/Extra code configuration or tuning, please post them at www.msextra.com Such questions posted here will be moved to: a temporary MSextra sub-forum, where they will be removed after 7 days

The full forum rules are here: Forum Rules, be sure to read them all regularly.
Post Reply
octanes
MegaSquirt Newbie
Posts: 5
Joined: Fri Aug 29, 2008 3:14 am

Which Codewarrior version required?

Post 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
octanes
MegaSquirt Newbie
Posts: 5
Joined: Fri Aug 29, 2008 3:14 am

Re: Which Codewarrior version required?

Post 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
grippo
Site Admin
Posts: 286
Joined: Mon Feb 16, 2004 6:55 pm

Re: Which Codewarrior version required?

Post 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.
octanes
MegaSquirt Newbie
Posts: 5
Joined: Fri Aug 29, 2008 3:14 am

Re: Which Codewarrior version required?

Post by octanes »

hmm, ok, so maybe 4.5 is different from 4.7 in some way :(
octanes
MegaSquirt Newbie
Posts: 5
Joined: Fri Aug 29, 2008 3:14 am

Re: Which Codewarrior version required?

Post 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
octanes
MegaSquirt Newbie
Posts: 5
Joined: Fri Aug 29, 2008 3:14 am

Re: Which Codewarrior version required?

Post 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
Post Reply