Subaru EZ30 Crank Trigger

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

Post Reply
Jazracing
Helpful MS/Extra'er
Posts: 44
Joined: Fri Feb 13, 2015 8:13 pm

Subaru EZ30 Crank Trigger

Post by Jazracing »

Hello,

I am trying to run a Subaru EZ30D on a Microsquirt. I have just discovered that the Subaru 36-2-2-2 6cyl crank trigger is not currently supported by the Micro. I have included logs for the engine turning over. If there is any way for someone to help me out with this, I would be very grateful.
Jazracing
Helpful MS/Extra'er
Posts: 44
Joined: Fri Feb 13, 2015 8:13 pm

Re: Subaru EZ30 Crank Trigger

Post by Jazracing »

We made some changes to the firmware. Now I am getting lost sync codes 29 (semi sync failed), and 52 (tooth 30 error). Not really sure what either of those is implying? I have attached logs of cranking.
Jazracing
Helpful MS/Extra'er
Posts: 44
Joined: Fri Feb 13, 2015 8:13 pm

Re: Subaru EZ30 Crank Trigger

Post by Jazracing »

So, we changed a few things in the MS2 code:

36-2-2-2 ------------------------*/
//
//This section modified for Subaru EZ30 6cyl crank wheel
//
} else if (spkmode == 7) {
no_teeth = 30;
last_tooth = no_teeth;
deg_per_tooth[0] = 100;
deg_per_tooth[1] = 100;
deg_per_tooth[2] = 100;
deg_per_tooth[3] = 100;
deg_per_tooth[4] = 100;
deg_per_tooth[5] = 100;
deg_per_tooth[6] = 100;
deg_per_tooth[7] = 100;
deg_per_tooth[8] = 100;
deg_per_tooth[9] = 300; //Was 100
deg_per_tooth[10] = 300; //Was 100
deg_per_tooth[11] = 100;
deg_per_tooth[12] = 100;
deg_per_tooth[13] = 100;
deg_per_tooth[14] = 100;
//new second 180deg
deg_per_tooth[15] = 100; //Was 300
//old second 180deg
deg_per_tooth[16] = 100; //Was 300
deg_per_tooth[17] = 100;
deg_per_tooth[18] = 100;
deg_per_tooth[19] = 100;
deg_per_tooth[20] = 100;
deg_per_tooth[21] = 100;
deg_per_tooth[22] = 100;
deg_per_tooth[23] = 100;
deg_per_tooth[24] = 100;
deg_per_tooth[25] = 100;
deg_per_tooth[26] = 100;
deg_per_tooth[27] = 100;
deg_per_tooth[28] = 100;
deg_per_tooth[29] = 300;

smallest_tooth_crk = 100;
smallest_tooth_cam = 0;

trigger_teeth[0] = 0;
trigger_teeth[1] = 10;
trigger_teeth[2] = 20;
no_triggers = 3;

trig_angs[0] = -150 + tmp_offset; // 15 ATDC
trig_angs[1] = -150 + tmp_offset; // 15 ATDC
trig_angs[2] = -150 + tmp_offset; // 15 ATDC


The odd part is that we get good spark until the ECU is shut down from a key off. After the initial key off, we no longer have spark, and it goes back to the same old errors as before. Any ideas to why this is happening? I have attached an image of what my frin\end is using to try and figure out the code.
EZ30Dcrank.jpg
Jazracing
Helpful MS/Extra'er
Posts: 44
Joined: Fri Feb 13, 2015 8:13 pm

Re: Subaru EZ30 Crank Trigger

Post by Jazracing »

Anyone?
racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Subaru EZ30 Crank Trigger

Post by racingmini_mtl »

You also need to adapt the code in ms2_extra_ign_in.c. That's where sync is established.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
Jazracing
Helpful MS/Extra'er
Posts: 44
Joined: Fri Feb 13, 2015 8:13 pm

Re: Subaru EZ30 Crank Trigger

Post by Jazracing »

racingmini_mtl wrote:You also need to adapt the code in ms2_extra_ign_in.c. That's where sync is established.

Jean
You're a rock star man, thank you for the help!
Fozz It
MS/Extra Newbie
Posts: 1
Joined: Fri Feb 13, 2015 8:17 pm

Re: Subaru EZ30 Crank Trigger

Post by Fozz It »

racingmini_mtl wrote:You also need to adapt the code in ms2_extra_ign_in.c. That's where sync is established.

Jean
Thanks Jean. Hopefully that'll do it. (We'll find out tonight)

Also, any idea as to why the ECU resets our updated code upon power cycle?

Could it be from the md5sum of the .s19 file not matching (never could get it to match)
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Subaru EZ30 Crank Trigger

Post by jsmcortina »

Fozz It wrote:Could it be from the md5sum of the .s19 file not matching (never could get it to match)
As you've changed the code, it is to be expected that the s19 is different - that's the point! Nothing is checking it except you, so don't worry.

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".
Jazracing
Helpful MS/Extra'er
Posts: 44
Joined: Fri Feb 13, 2015 8:13 pm

Re: Subaru EZ30 Crank Trigger

Post by Jazracing »

Thank you James.

Alright, so, we made the needed changes, and loaded the new version up. Besides not starting, the issue of it reverting back to the way it was still remains. I just don't understand what is happening.
Jazracing
Helpful MS/Extra'er
Posts: 44
Joined: Fri Feb 13, 2015 8:13 pm

Re: Subaru EZ30 Crank Trigger

Post by Jazracing »

Log before ignition cycle:
2015-07-30_17.53.44.msl
Log after cycle:
Old way.msl
Matt Cramer
Super MS/Extra'er
Posts: 17499
Joined: Thu Apr 16, 2009 8:08 pm

Re: Subaru EZ30 Crank Trigger

Post by Matt Cramer »

Can you leave the logger running and get both in one log?
Matt Cramer -1966 Dodge Dart slant six running on MS3X
Jazracing
Helpful MS/Extra'er
Posts: 44
Joined: Fri Feb 13, 2015 8:13 pm

Re: Subaru EZ30 Crank Trigger

Post by Jazracing »

I tried to and only got this garbage:
Test1.msl
Matt Cramer
Super MS/Extra'er
Posts: 17499
Joined: Thu Apr 16, 2009 8:08 pm

Re: Subaru EZ30 Crank Trigger

Post by Matt Cramer »

The RPM going to 65046 indicates you have a config error. These are checked for when you turn the key on but not when you change settings. It sounds like you had set some conflicting settings while getting the first start.
Matt Cramer -1966 Dodge Dart slant six running on MS3X
Jazracing
Helpful MS/Extra'er
Posts: 44
Joined: Fri Feb 13, 2015 8:13 pm

Re: Subaru EZ30 Crank Trigger

Post by Jazracing »

With some help from James, we got everything working. Thanks for the help guys.
gearhead
MS/Extra Newbie
Posts: 12
Joined: Wed Jul 01, 2015 9:25 am
Location: Ohio

Re: Subaru EZ30 Crank Trigger

Post by gearhead »

I am using MS3x to run the same engine and trigger wheel. From everything I've read this wheel/engine is not natively supported by any MS. The 36-2-2-2 wheel is an option in MS3 along with 36-2-2-2 vvt. I thought this would work for my application, but from what I've researched Subaru used a different 36-2-2-2 wheel between the 4 & 6 cylinder engines.

So my questions are: 1. Does the MS3x have the right code when 6 cylinders are selected or do I need to the changes like described above? 2. If the changes are needed where / how are they made?

I apologize if this has been covered before, but in all the posts about this engine/wheel, I have not found a clear solution.
Matt Cramer
Super MS/Extra'er
Posts: 17499
Joined: Thu Apr 16, 2009 8:08 pm

Re: Subaru EZ30 Crank Trigger

Post by Matt Cramer »

Current MS3 code does have the six cylinder 36-2-2-2 pattern in it.
Matt Cramer -1966 Dodge Dart slant six running on MS3X
gearhead
MS/Extra Newbie
Posts: 12
Joined: Wed Jul 01, 2015 9:25 am
Location: Ohio

Re: Subaru EZ30 Crank Trigger

Post by gearhead »

Thanks! I'm I just finishing things up and wanted to confirm before spent time trying to get it started.
Post Reply