MS3 1.0 source code released

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

MS3 1.0 source code released

Post by jsmcortina »

To announce the long-awaited release of source code for MS3 1.0.

Be sure to read and respect the included README and LICENSE files.

http://www.msextra.com/doc/ms3/files/source

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: MS3 source code released

Post by Reverant »

Excellent, thank you James and Ken!
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
y8s
Master MS/Extra'er
Posts: 478
Joined: Wed Jan 07, 2009 3:21 pm

Re: MS3 source code released

Post by y8s »

that's pretty cool. now I just have to learn to program.
gurov
Super MS/Extra'er
Posts: 1059
Joined: Sun Jun 01, 2008 11:54 pm

Re: MS3 source code released

Post by gurov »

wow...

thank you. i'll have to take a look at the things myself now.
2020 BMW X3M - bm3 - stage1
1994 Supra - ms3pnp pro - j&s
SymTech Laboratories
Super MS/Extra'er
Posts: 2188
Joined: Sun Aug 31, 2008 4:02 pm
Location: South Florida, USA
Contact:

Re: MS3 source code released

Post by SymTech Laboratories »

Will the source code for the MS3 Firmware Downloader be released as well?
SymTech Laboratories, LLC ----- MSQ File Repository: megasquirt.symtechlabs.com
Image
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 source code released

Post by jsmcortina »

SymTech Laboratories wrote:Will the source code for the MS3 Firmware Downloader be released as well?
At some point yes. It needs cleaning up somewhat and a few issues resolving when used in "developer mode".

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
David. A
Helpful MS/Extra'er
Posts: 93
Joined: Thu Feb 24, 2005 6:16 am
Location: Israel
Contact:

Re: MS3 source code released

Post by David. A »

Awesome news !

Does a changed and re-compiled code will be sign as version 1.03 ?

What about api for tunerStudio ?
Let's say i want to change the CL idle condition when using VSS.
Instead of VSS=0 i want it to be a value defined on tunerStudio and not hard coded.

And last question, what is the best flow to move from alpha 16 to release 1.03.

Thanks !
David
Car: BMW 318Ti 1995 1.8 M42 Engine.
Megasquirt 3.0 + MS3x board Code 1.3

4cyl Cop Ignition,crank+cam wheels based on vr sensors.
Ignition: full sequential
Fuel: full sequential
Bosch 3 wire pwm idle valve
muythaibxr
Site Admin
Posts: 8228
Joined: Thu Oct 14, 2004 12:48 pm

Re: MS3 source code released

Post by muythaibxr »

David. A wrote: Instead of VSS=0 i want it to be a value defined on tunerStudio and not hard coded.

And last question, what is the best flow to move from alpha 16 to release 1.03.

Thanks !
David
Alpha 17 will have some changes in it that make the VSS change unnecessary most likely.

I can easily add the setting too.

Ken
Megasquirt is not for use on pollution controlled vehicles. Any advice I give is for off road use only.
David. A
Helpful MS/Extra'er
Posts: 93
Joined: Thu Feb 24, 2005 6:16 am
Location: Israel
Contact:

Re: MS3 source code released

Post by David. A »

Sound interesting.
But i'm more interested coding my own changes.
The option to change the code is not enough if we can't change tunerStudio to match the change.

What about source code for the latest alpha versions ?
And what do i need to "downgrade" from alpha16 to release 1.03 code.

Thanks
David
Car: BMW 318Ti 1995 1.8 M42 Engine.
Megasquirt 3.0 + MS3x board Code 1.3

4cyl Cop Ignition,crank+cam wheels based on vr sensors.
Ignition: full sequential
Fuel: full sequential
Bosch 3 wire pwm idle valve
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 source code released

Post by jsmcortina »

David. A wrote:Sound interesting.
But i'm more interested coding my own changes.
The option to change the code is not enough if we can't change tunerStudio to match the change.
Edit the ini file. Very little is "built-in" to TunerStudio, almost everything can be changed through the ini file - just like it has always been since Megatune.
What about source code for the latest alpha versions ?
That will be released some time after the 1.1 code is "release"
And what do i need to "downgrade" from alpha16 to release 1.03 code.
Load the firmware and load your MSQ, taking note of the warnings. Reconfirm your settings.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
ScoobyCoder
Helpful MS/Extra'er
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Post by ScoobyCoder »

James,
Will the bootloader file be released? I use Codewarrior and after playing with the MS2 and knowing how easy it is to completely wipe the chip, (James you helped me out with this a while back now!) I would like to be able to upload my code changes without needing my BDM, as when playing in the car its just not practical. Ideally I would like to be able to reflash the chip back to purchase state at any time, just don't want to have to be sending it forwards and backwards to be rebootloaded, as when I use the BDM on a running chip CW sometimes erases the chip, as it did with my old MS2 board...

Of course, this begs the question, if I were to just load my newly compiled MS3 S19 onto the uP, would it work? And can I set codewarrior to not erase the chip before a burn?

Thanks,
Mark
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 source code released

Post by jsmcortina »

ScoobyCoder wrote:James,
Will the bootloader file be released?
No, it will not be released.
Of course, this begs the question, if I were to just load my newly compiled MS3 S19 onto the uP, would it work? And can I set codewarrior to not erase the chip before a burn?
You will not be able to use HIWAVE to load the s19 as the chip is in 'secure' mode.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
ScoobyCoder
Helpful MS/Extra'er
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Post by ScoobyCoder »

James,

Ok, thanks for the reply.

So its strictly compile and use the bootloader, thats fine, I'll go careful!

Thanks,
Mark
Bad bug
Helpful MS/Extra'er
Posts: 41
Joined: Sat Jan 21, 2006 4:05 pm

Re: MS3 source code released

Post by Bad bug »

I haven't downloaded anything but programming language was used for the MS3.
ScoobyCoder
Helpful MS/Extra'er
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Post by ScoobyCoder »

Hi,

Its written in C :)
Bad bug
Helpful MS/Extra'er
Posts: 41
Joined: Sat Jan 21, 2006 4:05 pm

Re: MS3 source code released

Post by Bad bug »

O.k. great i will have to do a course in C then to fully appreciate this ECU.
ScoobyCoder
Helpful MS/Extra'er
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Post by ScoobyCoder »

Ok,

So I have codewarrior installed, and I want to open the source as a project, is here a project file, or do I need to start from scratch? The end reult is I can then compile and use the bootloader to download the S12, but as far as I can see there is no main project file, just the C code and headers etc?

Cheers
Mark
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 source code released

Post by jsmcortina »

Codewarrior is untested. We use gcc. This is covered in the README-BUILDING.txt file.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
ScoobyCoder
Helpful MS/Extra'er
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Post by ScoobyCoder »

Ah ok,

In my silly hastiness I may of just broken something, tried using CW and the BDM, says no memroy at 100100 or something? NOt sure what I have done, should of stuck to the usual uploader but like my old tools lol!!

I'll see if I can revive it :D

And also I'll have a god read of the BULDING readme :)

Regards,
Mark
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS3 source code released

Post by jsmcortina »

Don't try to use BDM. It will ask you to Unsecure, if you do that, you had better wrap it up and post it off for a reflash.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Post Reply