Notices
ECU Flash

VIII patch to reset fuel trims?

Thread Tools
 
Search this Thread
 
Old May 26, 2009 | 06:08 PM
  #16  
sub7's Avatar
Evolving Member
 
Joined: Jun 2005
Posts: 282
Likes: 5
From: Kuala Lumpur
Did anyone tried disconnecting the ecu connector itself? Much easy that way. For JDM 8, try disconnect the middle one (where both +12v pin are wired)
Reply
Old May 26, 2009 | 06:49 PM
  #17  
Fast_Freddie's Avatar
Thread Starter
Evolved Member
Veteran: Navy
iTrader: (50)
 
Joined: Jun 2007
Posts: 2,706
Likes: 15
From: Lexington Park, MD
You are mising the point... I wanna reset it with a patch... and not disconnect anything...
Reply
Old May 26, 2009 | 07:30 PM
  #18  
sub7's Avatar
Evolving Member
 
Joined: Jun 2005
Posts: 282
Likes: 5
From: Kuala Lumpur
That definitely the whole point reset the fuel trim and I just suggest something easier than disconnecting battery. Can't imagine I got to re-tune my favourite radio channel and clock each time battery reset.
Reply
Old May 27, 2009 | 06:48 AM
  #19  
wreckleford's Avatar
Evolved Member
iTrader: (2)
 
Joined: Jun 2003
Posts: 1,171
Likes: 11
From: Jamaica
If you plug out the ECU plug you wouldn't have to reset the radio and clock, but a patch is definitely preferable.
Reply
Old May 27, 2009 | 07:10 AM
  #20  
logic's Avatar
Evolved Member
iTrader: (2)
 
Joined: Apr 2003
Posts: 1,022
Likes: 7
From: Berkeley, CA
I've actually considered just wiring in a normally-closed momentary switch to the power line for the ECU; there's been more than a few cases where I'd have liked to wipe RAM and start from a completely fresh boot, but digging the ECU harness out of the dash isn't typically very convenient.

Of course, neither is rooting around under the dash, installing yet another switch. I'm running out of room for attractive installs of switches and LEDs.
Reply
Old May 28, 2009 | 01:57 AM
  #21  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
logic, tephra can you write a patch?

for 94170015:

create function which checks 0x10 at variable FFFF8DC8
if bit is set calls sub 14302 and at the end sets r0 to 1

replace function reference from sub 20D02 to the offset of new one at 8B98

then clearing CEL would clear trims even in case there is no CEL.

Last edited by acamus; Nov 4, 2009 at 10:16 PM.
Reply
Old May 29, 2009 | 03:32 AM
  #22  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Nobody wants to write a patch , I had to do it manually in hex as I do not have build environment set yet .....

Here it comes fully untested with no warranty for 94170015.

Code:
00008B98                 .data.l sub 39000

00008BF8                 .data.l sub 39000

sub 39000:                              
00039000                 mov.l   r14, @-r15
00039002                 mov     r15, r14 ; 
00039004                 mov.l   @(h'14,pc), r10 ; FFFF8DC8
00039006                 mov.w   @r10, r10
00039008                 extu.w  r10, r0
0003900A                 tst     #h'10, r0 ; 
0003900C                 bf      loc_39014 
0003900E                 mov.l   @(h'10,pc), r0 ;  sub 14302
00039010                 jsr     @r0 ; sub 14302
00039012                 nop
00039014                 mov     #1, r0
00039016                 mov.l   @r15+, r14
00039018                 rts
0003901A                 nop
0003901C                .data.l FFFF8DC8    
00039020                .data.l sub 14302
HEX
Code:
00008BF0  00 02 0F D4 02 08 FF FF  00 03 90 00 02 10 FF FF

00008B90  00 02 0C D0 01 80 FF FF  00 03 90 00 02 01 FF FF 
 
00039000  2F E6 6E F3 DA 05 6A A1  60 AD C8 10 8B 02 D0 04  
00039010  40 0B 00 09 E0 01 6E F6  00 0B 00 09 FF FF 8D C8  
00039020  00 01 43 02 FF FF FF FF  FF FF FF FF FF FF FF FF

Last edited by acamus; Nov 4, 2009 at 10:20 PM.
Reply
Old May 29, 2009 | 06:59 AM
  #23  
logic's Avatar
Evolved Member
iTrader: (2)
 
Joined: Apr 2003
Posts: 1,022
Likes: 7
From: Berkeley, CA
Sorry for not getting a chance to look at this, acamus, but your patch looks basically right to me. Also, 96530006 is basically the same thing, but you'd need to change sub_14302 to sub_14172.

I'll try to test this today when I step out for lunch, it certainly looks straightforward enough.
Reply
Old May 29, 2009 | 07:33 AM
  #24  
SEEnoEVO's Avatar
Evolved Member
iTrader: (21)
 
Joined: Dec 2006
Posts: 544
Likes: 1
From: D
Let me know if this works for the 96530006!! This would be very nice!!!
Reply
Old May 29, 2009 | 07:33 AM
  #25  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
My only concern is whether the flag at FFFF8DC8 stays set long enough to reach engine on/off checks @8B98 and @8BF8
otherwise more changes are needed.

Last edited by acamus; Nov 4, 2009 at 10:15 PM.
Reply
Old May 29, 2009 | 08:08 AM
  #26  
JohnBradley's Avatar
Evolved Member
Shutterbug
Liked
Loved
Community Favorite
iTrader: (30)
 
Joined: Jan 2004
Posts: 11,406
Likes: 78
From: Northwest
The easiest way to reset trims is to not use them. Trims are so 1999 :P
Reply
Old May 29, 2009 | 08:18 AM
  #27  
logic's Avatar
Evolved Member
iTrader: (2)
 
Joined: Apr 2003
Posts: 1,022
Likes: 7
From: Berkeley, CA
Aaron, just let me know when you port jcsbanks' SD patches to 96530006, and I'll be happy to give up my fuel trims. (Which reminds me, I really need to get jcs' DMA logging patches added to 96530706 at some point, I really miss the logging rates I had with that.)

acamus, looks like I'm not going to be able to test this this afternoon; earliest I'll be able to look at it is tonight. So, someone else might want to take a quick crack at it if they're in a big hurry to know if this is workable.

(I still think hooking this into tephra's map switching is probably a good idea as well, though; switching between E85 and E10 usually results in at least a little bit of a swing in trims for me, despite having things dialed in pretty well.)
Reply
Old May 29, 2009 | 12:02 PM
  #28  
Fast_Freddie's Avatar
Thread Starter
Evolved Member
Veteran: Navy
iTrader: (50)
 
Joined: Jun 2007
Posts: 2,706
Likes: 15
From: Lexington Park, MD
I can't do it today either... I am still on the 0011 rom anyway as i do not use map switching... I have a patched 0006 rom already, just haven't had a chance to didldle with it...
Reply
Old Jun 4, 2009 | 02:37 PM
  #29  
Fast_Freddie's Avatar
Thread Starter
Evolved Member
Veteran: Navy
iTrader: (50)
 
Joined: Jun 2007
Posts: 2,706
Likes: 15
From: Lexington Park, MD
Bump since I don't have the listed ROM for the test patch...
Reply
Old Aug 12, 2009 | 03:31 AM
  #30  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Now that we know that some actuator commands are not used in some ROM's, we have the opportunity to write patch that uses spare "dedicated" command for doing this. Fast_Freddie are you still interested? What is your ROM ID?
Reply



All times are GMT -7. The time now is 05:43 PM.