RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 3:50 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Implementing LC/FFS
PostPosted: Fri Jun 04, 2010 6:28 am 
Offline
Moderator

Joined: Thu Nov 23, 2006 2:23 am
Posts: 2565
I've been futzing with IDA for a few days now and I'm slowly starting to get the hang of it. The addresses from the logger and ECU xml files were tremendously helpful, I have to thank Merchgod and everyone else who contributed to those. I probably would not have gotten anywhere at all without the head start those files provided.

I found the fuel cut / resume logic, and I have a plan in mind for a launch control / FFS hack. However, I need some help with a couple issues. Here's a overview of what I want to do...

1) Find an available area in RAM to store 9 values:
"active" fuel cut and resume RPM settings
fuel cut and resume RPM for redline (clutch out) (in RAM just for testing purposes really)
fuel cut and resume RPM for launch (clutch in, vehicle speed below threshold)
fuel cut and resume RPM for shifting (clutch in, vehicle speed above threshold)
vehicle speed threshold for switching between launch and shift modes

2) Write some PC software that can read and write those values. This is the only part that I actually have full confidence that I could do right now on my own. :)

3) At boot time, initialize all 8 RPM values with the redline cut/resume values in the ROM, and set the speed threshold to something sane.

4) Change the existing fuel cut / resume logic to look at the "active" cut and resume values in RAM, instead of the values in ROM.

5) Find an available area in ROM and enter some code to copy cut/resume RPM values from one of the 3 pairs (depending on clutch switch and vehicle speed) into the "active" settings.

6) Insert a hook in the existing fuel cut / resume logic to jump into that code, which will of course jump back when it's done.

Here's what I need help with:

a) How can I find a safe place in RAM to store those 9 values? There are at least 3 fairly large ranges with no labels/xrefs defined, but I worry that there might be referenced by code that just hasn't been analyzed yet (there's still a fair amount of that). I can try reading from those ranges right after a reset, and after driving around for a while, but if anyone has better ideas I'd love to hear them.

b) How can I find a safe place in ROM to put the code that I want to add? I don't have enough of the ROM defined to really have much confidence in my guesses so far.

c) Where's a good place to insert a hook to do step 3 above? (Copy default rev limits to the RAM locations.) I want this code to run once, after each reset. There's probably some existing code to initialize RAM values but I haven't found it yet.

If anyone can lend a hand I'd really appreciate it.

Thanks!

_________________
2005 Legacy GT w/ ATP 3076, IWG, MBC, BCS, BC 272, LC, FFS, OMG
Please don't send questions via PM. Post a thread and send me a link to it instead. Thanks!


Top
 Profile  
 
 Post subject: Re: Implementing LC/FFS
PostPosted: Fri Jun 04, 2010 7:56 am 
Offline
Senior Member

Joined: Mon Jan 19, 2009 6:31 pm
Posts: 1615
Location: Moscow, Russia
a) just create param definition and log memory places you are going to use. Value should remain unchanged.

b)-c) any 0xFFFFFFFF-0xFFFFFFFF region is applicapable

I recommend to use just overrev (probably coolant temp\or gear dependent) limit.
All others corrupt mixture and make jerks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl