MS3 1.0 source code released

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

MS3 1.0 source code released

Postby jsmcortina » Tue Oct 25, 2011 7:36 am

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33978
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: MS3 source code released

Postby Reverant » Tue Oct 25, 2011 8:24 am

Excellent, thank you James and Ken!
The man behind MS Labs
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost - InCar PC
User avatar
Reverant
Super MS/Extra'er
 
Posts: 977
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: MS3 source code released

Postby y8s » Tue Oct 25, 2011 8:28 am

that's pretty cool. now I just have to learn to program.
y8s
Master MS/Extra'er
 
Posts: 478
Joined: Wed Jan 07, 2009 3:21 pm

Re: MS3 source code released

Postby gurov » Tue Oct 25, 2011 1:09 pm

wow...

thank you. i'll have to take a look at the things myself now.
2014 BMW X1 35i MSport - single turbo N55 - stock!
2012 BMW X3 35i MSport - single turbo N55 - stock! (GONE)
2004 BMW 325xi Turbo MS3/X M54B25 j&s slc_oem
1994 Toyota Supra Twin Turbo - AEM EMS v2 - 2JZ-GTE slc_oem
2004 Nissan SE-R SpecV Turbo - MS3/X QR25DE j&s slc_oem (SOLD!)
gurov
Super MS/Extra'er
 
Posts: 1052
Joined: Sun Jun 01, 2008 11:54 pm

Re: MS3 source code released

Postby SymTech Laboratories » Tue Oct 25, 2011 5:10 pm

Will the source code for the MS3 Firmware Downloader be released as well?
SymTech Laboratories, LLC ----- MSQ File Repository: megasquirt.symtechlabs.com
Image
SymTech Laboratories
Super MS/Extra'er
 
Posts: 2188
Joined: Sun Aug 31, 2008 4:02 pm
Location: South Florida, USA

Re: MS3 source code released

Postby jsmcortina » Wed Oct 26, 2011 2:30 pm

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33978
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: MS3 source code released

Postby David. A » Tue Nov 29, 2011 11:16 am

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
David. A
Helpful MS/Extra'er
 
Posts: 93
Joined: Thu Feb 24, 2005 6:16 am
Location: Israel

Re: MS3 source code released

Postby muythaibxr » Tue Nov 29, 2011 12:24 pm

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.

:msq:
muythaibxr
Site Admin
 
Posts: 8095
Joined: Thu Oct 14, 2004 12:48 pm

Re: MS3 source code released

Postby David. A » Thu Dec 01, 2011 5:19 am

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
David. A
Helpful MS/Extra'er
 
Posts: 93
Joined: Thu Feb 24, 2005 6:16 am
Location: Israel

Re: MS3 source code released

Postby jsmcortina » Thu Dec 01, 2011 5:27 am

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33978
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: MS3 source code released

Postby ScoobyCoder » Fri Dec 16, 2011 3:41 am

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
ScoobyCoder
Helpful MS/Extra'er
 
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Postby jsmcortina » Fri Dec 16, 2011 4:02 am

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33978
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: MS3 source code released

Postby ScoobyCoder » Fri Dec 16, 2011 4:17 am

James,

Ok, thanks for the reply.

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

Thanks,
Mark
ScoobyCoder
Helpful MS/Extra'er
 
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Postby Bad bug » Sat Dec 17, 2011 8:43 am

I haven't downloaded anything but programming language was used for the MS3.
Bad bug
MS/Extra Newbie
 
Posts: 32
Joined: Sat Jan 21, 2006 4:05 pm

Re: MS3 source code released

Postby ScoobyCoder » Mon Dec 19, 2011 2:42 am

Hi,

Its written in C :)
ScoobyCoder
Helpful MS/Extra'er
 
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Postby Bad bug » Mon Dec 19, 2011 5:09 am

O.k. great i will have to do a course in C then to fully appreciate this ECU.
Bad bug
MS/Extra Newbie
 
Posts: 32
Joined: Sat Jan 21, 2006 4:05 pm

Re: MS3 source code released

Postby ScoobyCoder » Mon Dec 19, 2011 6:37 am

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
ScoobyCoder
Helpful MS/Extra'er
 
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Postby jsmcortina » Mon Dec 19, 2011 6:45 am

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

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

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33978
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: MS3 source code released

Postby ScoobyCoder » Mon Dec 19, 2011 6:51 am

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
ScoobyCoder
Helpful MS/Extra'er
 
Posts: 74
Joined: Wed Feb 04, 2009 7:47 am

Re: MS3 source code released

Postby jsmcortina » Mon Dec 19, 2011 6:54 am

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33978
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Next

Return to MS3 Development

Who is online

Users browsing this forum: No registered users and 1 guest