RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 10:29 pm

All times are UTC




Post new topic Reply to topic  [ 163 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next
Author Message
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Tue May 08, 2012 11:52 am 
Offline
Experienced
User avatar

Joined: Thu Nov 20, 2008 1:04 pm
Posts: 167
Location: Rochester, NY
MFB wrote:
HOw are you guys tackling the sti with just 1 and 6 gears defined as per TH post above?


eminehart wrote:
I had a chance tonight to tune a 11 STI and found some interesting data.
I set up the tables 1st gear at 500 and 6th gear at 400
The gears worked out to be this:
1st 500 requested tq
2nd 480 requested tq
3rd 460 requested tq
4th 440 requested tq
5th 420 requested tq
6th 420 requested tq
neutral 400 requested tq
I set up wastegate duty columns for each gear and was able to control boost by gear.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX
PostPosted: Wed May 09, 2012 7:06 pm 
Offline
Experienced
User avatar

Joined: Thu Nov 20, 2008 1:04 pm
Posts: 167
Location: Rochester, NY
throttlehappy wrote:
Does not appear to be used in this ROM. I just spent 15 minutes looking for it and is definitely nothing there in any of the known table sizes, none of the known data or row/columns etc


eminehart wrote:
I took a look at the USDM 08 STI 6speed and saw the same thing. This must be a wrx thing. I took a look at an 08 Legacy Spec B and found 6 seperate 2D tables 1*16.


Hmm. I just noticed in the first thread the above quote from eminehart. I'm wondering what he found and if that could be found again? Perhaps there is a table per gear or 2 per SI-Drive mode?


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Wed May 09, 2012 7:14 pm 
Offline
Moderator

Joined: Thu May 20, 2010 8:01 am
Posts: 3117
Location: Johannesburg, South Africa
I think I've found them for you, but want to verify in IDA.

_________________
He who dies with the most gadgets wins.

Please do not PM me - use the email option.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Wed May 09, 2012 7:52 pm 
Offline
Moderator

Joined: Thu May 20, 2010 8:01 am
Posts: 3117
Location: Johannesburg, South Africa
Yeah, found them. There's a table per gear, and they are part of the requested torque routine.

In sequence, here are the addresses - uint16 base, 0.007815 (requestedTorqueRawEcuValue). I've had a long day, so too tired and lazy to code them into an XML for you :) Address in red is x axis, in green is table value.

ROM:000A7474 Table_Per_Gear_Requested_Torque_1:.data.l h'100800 ; DATA XREF: sub_BD86C+1Co
ROM:000A7474 ; sub_BD8FC:off_BD9ECo
ROM:000A7478 .data.l flt_DB994
ROM:000A747C .data.l word_DB9D4
ROM:000A7480 .float 0.0078125
ROM:000A7484 .float 0.0
ROM:000A7488 Table_Per_Gear_Requested_Torque_2:.data.l h'100800 ; DATA XREF: sub_BE1F0+8Ao
ROM:000A7488 ; sub_BE1F0:off_BE410o
ROM:000A748C .data.l flt_DB9F4
ROM:000A7490 .data.l word_DBA34
ROM:000A7494 .float 0.0078125
ROM:000A7498 .float 0.0
ROM:000A749C Table_Per_Gear_Requested_Torque_3:.data.l h'100800 ; DATA XREF: sub_BE1F0+94o
ROM:000A749C ; sub_BE1F0:off_BE418o
ROM:000A74A0 .data.l flt_DBA54
ROM:000A74A4 .data.l flt_DBA94
ROM:000A74A8 .float 0.0078125
ROM:000A74AC .float 0.0
ROM:000A74B0 Table_Per_Gear_Requested_Torque_4:.data.l h'100800 ; DATA XREF: sub_BE9DA+36o
ROM:000A74B0 ; ROM:off_BEB3Co
ROM:000A74B4 .data.l flt_DBAB4
ROM:000A74B8 .data.l flt_DBAF4
ROM:000A74BC .float 0.0078125
ROM:000A74C0 .float 0.0
ROM:000A74C4 Table_Per_Gear_Requested_Torque_5_6:.data.l h'100800 ; DATA XREF: sub_BE9DA+3Ao
ROM:000A74C4 ; ROM:off_BEB40o
ROM:000A74C8 .data.l flt_DBB14
ROM:000A74CC .data.l flt_DBB54
ROM:000A74D0 .float 0.0078125
ROM:000A74D4 .float 0.0

_________________
He who dies with the most gadgets wins.

Please do not PM me - use the email option.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Wed May 09, 2012 8:06 pm 
Offline
Moderator

Joined: Thu May 20, 2010 8:01 am
Posts: 3117
Location: Johannesburg, South Africa
Ok - here's the xml definition for Ecuflash - just plug this in at the beginning (or end) of the A2TB001L.xml

Code:
   <table name="Per Gear Requested Torque 1" address="db9d4" type="2D" level="1" scaling="RequestedTorque(rawecuvalue)">
      <table name="X" address="db994" type="X Axis" elements="16" scaling="rawecuvalue"/>
   </table>
   
      <table name="Per Gear Requested Torque 2" address="DBA34" type="2D" level="1" scaling="RequestedTorque(rawecuvalue)">
      <table name="X" address="DB9F4" type="X Axis" elements="16" scaling="rawecuvalue"/>
   </table>
   
      <table name="Per Gear Requested Torque 3" address="DBA94" type="2D" level="1" scaling="RequestedTorque(rawecuvalue)">
      <table name="X" address="DBA54" type="X Axis" elements="16" scaling="rawecuvalue"/>
   </table>
   
      <table name="Per Gear Requested Torque 4" address="DBAF4" type="2D" level="1" scaling="RequestedTorque(rawecuvalue)">
      <table name="X" address="DBAB4" type="X Axis" elements="16" scaling="rawecuvalue"/>
   </table>
   
      <table name="Per Gear Requested Torque 5_6" address="DBB54" type="2D" level="1" scaling="RequestedTorque(rawecuvalue)">
      <table name="X" address="DBB14" type="X Axis" elements="16" scaling="rawecuvalue"/>
   </table>

_________________
He who dies with the most gadgets wins.

Please do not PM me - use the email option.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Wed May 09, 2012 9:51 pm 
Offline
Experienced
User avatar

Joined: Thu Nov 20, 2008 1:04 pm
Posts: 167
Location: Rochester, NY
Thanks for finding this! Unfortunately I don't think it's quite working out for me. I set RT as follows:

1st 350
2nd 340
3rd 330
4th 320
5&6th 310

I took a log of 2nd, 3rd and 4th gear pulls and all are gears are hitting 340. Attached logs, xml and map. Did I screw something up?


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Thu May 10, 2012 5:45 am 
Offline
Moderator

Joined: Thu May 20, 2010 8:01 am
Posts: 3117
Location: Johannesburg, South Africa
There might be a static limit set in the code, I did see some float values in the vicinity - l'll have a look to see if I can find anything.

_________________
He who dies with the most gadgets wins.

Please do not PM me - use the email option.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Thu May 10, 2012 10:40 am 
Offline
Moderator

Joined: Thu May 20, 2010 8:01 am
Posts: 3117
Location: Johannesburg, South Africa
On closer examination, the tables are not used adjacently in the code, but through a a very convoluted set of code relating to the accel pedal opening / requested torque etc.

I actually think these tables are correlated with the SI drive mode, not gears. In particular, it looks (at a cursory glance!) that tables 2 and 3 relate to S# and S mode - I assume that you did the pulls in S# mode? Hence the 340 limit. I'm betting that if you did a pull in S mode, you would hit a limit of 330. If you want to test my theory, set table 2 to a higher setting, and see if it caps at that in S# mode, also try to see what the cap is in S mode. I would set these back to the stock values of 500 afterwards.

What I did see is that further on the code, there are 2 cells tables that that provide a sliding scale for requested torque based on RPM, also relating to what I think is the SI mode - from 0-4000 rpms, and the one from 0-400, the other 0-200.

I have, however found a set of 2D tables that like the STI, seem to relate to gear 1 and 6. If you log Ram location FFFF701C, I think you'll find it's the uint8 (1byte) current gear parameter.

The one table is:

Y Axis DBB94 (rawecu value float)
Z Value DBB9C (rawecu value float)

and the values are set at 500

The other 2 tables are :

Y Axis C6BBC (rawecu value float)
Z Value C6BC4 (rawecu value float)

and

Y Axis C6BBC (rawecu value float)
Z Value C6BC4 (rawecu value float)

and the values are set at 100 to 600

Just a caveat - unfortunately, I do not have a a good deal of this rom disassembled like mine, and the code in this location if complex, so proceed with caution...

What I'm thinking is that unlike the other roms with a 6 gear / RPM 3D tables, this rom splits the limits into two tables, one with RPMs and one with gears. But that's just conjecture.

_________________
He who dies with the most gadgets wins.

Please do not PM me - use the email option.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Thu May 10, 2012 12:45 pm 
Offline
Experienced
User avatar

Joined: Thu Nov 20, 2008 1:04 pm
Posts: 167
Location: Rochester, NY
Thanks for the continued help. I did do all 3 logs in S mode. I mainly only use S so I didn't think to do the pulls in S#. Should I return all these values to 500 and then try the other 2d table?


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Thu May 10, 2012 1:22 pm 
Offline
Moderator

Joined: Thu May 20, 2010 8:01 am
Posts: 3117
Location: Johannesburg, South Africa
Ok - in that case Table 2 is likely S mode and Table 3 is S#.

I would return to stock (otherwise you're capping the maximum torque for all the SI modes), and try the other tables - please remember that these are experimental, so there's always a risk!

_________________
He who dies with the most gadgets wins.

Please do not PM me - use the email option.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Thu May 10, 2012 1:46 pm 
Offline
Experienced
User avatar

Joined: Thu Nov 20, 2008 1:04 pm
Posts: 167
Location: Rochester, NY
td-d wrote:
Ok - in that case Table 2 is likely S mode and Table 3 is S#.

I would return to stock (otherwise you're capping the maximum torque for all the SI modes), and try the other tables - please remember that these are experimental, so there's always a risk!


I will return the other values to stock and look over the other 3 tables and see if I can make sense of them. Unfortunately I'm not entirely sure how to translate those values to xml.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Thu May 10, 2012 2:03 pm 
Offline
Moderator

Joined: Thu May 20, 2010 8:01 am
Posts: 3117
Location: Johannesburg, South Africa
Give me a couple of minutes, I'm in and out of meetings, and I'll post up the definitions for you.

_________________
He who dies with the most gadgets wins.

Please do not PM me - use the email option.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Thu May 10, 2012 2:08 pm 
Offline
Moderator

Joined: Thu May 20, 2010 8:01 am
Posts: 3117
Location: Johannesburg, South Africa
Here are the definitions:

Code:
   <table name="newTable" address="c6b74" type="2D" level="1" scaling="rawecuvalue">
      <table name="X" address="c6b6c" type="Y Axis" elements="2" scaling="rawecuvalue"/>
   </table>

   <table name="newTable2" address="c6b84" type="2D" level="1" scaling="rawecuvalue">
      <table name="X" address="c6b7c" type="Y Axis" elements="2" scaling="rawecuvalue"/>
      </table>
      
         <table name="newTable3" address="DBB9C" type="2D" level="1" scaling="rawecuvalue">
      <table name="X" address="DBB94" type="Y Axis" elements="2" scaling="rawecuvalue"/>
      </table>
      
         <table name="newTable4" address="C6BC4" type="2D" level="1" scaling="rawecuvalue">
      <table name="X" address="C6BBC" type="Y Axis" elements="2" scaling="rawecuvalue"/>
      </table>
      
         <table name="newTable5" address="C6BC4" type="2D" level="1" scaling="rawecuvalue">
      <table name="X" address="C6BBC" type="Y Axis" elements="2" scaling="rawecuvalue"/>
         </table>


And here's what they look like. I would start with the 500 / 500 table.

Image

_________________
He who dies with the most gadgets wins.

Please do not PM me - use the email option.


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Thu May 10, 2012 3:19 pm 
Offline
Experienced
User avatar

Joined: Thu Nov 20, 2008 1:04 pm
Posts: 167
Location: Rochester, NY
Thanks again!

Returned all previous changes to stock and added the 5 new tables. As suggested, I only messed with "newtable3" changing it from 500/500 to 350/300. The result is 350 in 1st, 340 in 2nd, 330 in 3rd, 320 in 4th and 310 in 5th. Exactly what I was trying to accomplish! Thanks so much for the help on this!


Top
 Profile  
 
 Post subject: Re: Per Gear Max Requested Torque for 08+ WRX, 09+ FXT
PostPosted: Thu May 10, 2012 3:26 pm 
Offline
Moderator

Joined: Thu May 20, 2010 8:01 am
Posts: 3117
Location: Johannesburg, South Africa
Bingo!

Excellent, I'm glad it was the right tables. What is it about the Legacy's that the code is always so bloody different ;) I'm sure NSFW will jump in here :lol:

_________________
He who dies with the most gadgets wins.

Please do not PM me - use the email option.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 163 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 28 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