Subaru · 2004-07

Subaru Impreza WRX STI GD EJ257 ECU and tuning guide

The Subaru Impreza WRX STI GD EJ257 (2004-07) runs the EJ257 (STI): 2.5 L B4, turbocharged, port injection, drive-by-wire throttle.

Reviewed by GAINS editorial team on 2026-11-04.

Factory ECU, pinout and chassis research on this page is shared with Subaru Impreza WRX GD / GG EJ205.

Engine: EJ257 (STI)

Years2004-21
Displacement2.5L
LayoutB4
InductionTurbocharged
InjectionPort injection
Cam controlAVCSdual from 2008
IgnitionCoil-on-plug
Swap demandMedium

Part of the Subaru EJ family.

Modeled power and torque

Modelled estimate, not a dyno result.

EJ257 (STI): stock vs common buildsmodeled

Modeled estimate, not a dyno measurement. Real results vary with fuel, weather, dyno type and build.

Stock (factory-rated peaks; shape modeled)
010020030040050060070001002003004005006001k2k3k4k5k6khplb-ftrpm
Solid = power (hp), dashed = torque (lb-ft). Shaded bands show the modeled uncertainty. Hover for values.

Stock is anchored to the factory rating (305 hp at 6000 rpm, 290 lb-ft at 4000 rpm); the curve shape between peaks is modeled. Bolt-ons + tune (pump fuel, more boost): Stock turbo/supercharger; gains limited by compressor and fuel system.

EJ257 (STI) data

Platform background

The GD saloon and GG wagon brought the WRX to the US for 2002 (EJ205, then EJ255 for 2006-07) and the STI for 2004 (EJ257, 6-speed, DCCD). Other markets kept the 2.0 litre EJ207 STi until 2005-07. The engines moved to coil-on-plug ignition, tumble generator valves and, from the GD.II update, intake AVCS. A community transcription of the 2002 USDM WRX ECM pinout from Subaru wiring documentation is reproduced below at low confidence.

Factory ECU

Engines

EJ205 (WRX 2001-05), EJ255 (US WRX 2006-07; AU WRX 2005-07), EJ207 (STi JP/UK/AU 2001-05), EJ257 (US STI 2004-07, AU 2005-07)

Sourced · medium1324
ECM connectors (2002 USDM WRX)Five connectors labelled A-E in the source transcriptionLow confidence6
Load sensing (2002 USDM WRX)MAF plus MAP, front A/F sensor and rear O2, EGT sensor inputLow confidence6
IgnitionFour-coil direct ignition, from Oct 2000 on the WRXSourced · medium1
AVCS

Intake AVCS (35 deg) from GD.II WRX (Nov 2002) and on GD EJ207/EJ257

Sourced · medium124
DiagnosticsSSM/GST line on the ECM2002 USDM WRXLow confidence6

The GD-era ECM handles MAF load, adaptive knock control, wastegate duty, TGV motors and position sensors, IAC, EVAP, fan relays and the fuel pump controller. Reflash is the dominant tuning route. Standalone conversions must replace the fuel pump controller drive and TGV logic (or delete the TGVs), and on STIs, interface with DCCD and DBW.

Factory ECU: harness cross-reference

From the factory ECU each listed harness plugs into. The factory ECU is unplugged, not modified. Check the label and part number on your own ECU before ordering.

Subaru Denso ECU (ADM MY06-10 WRX / MY06-07 STI 2.5)
22611AL31022611AL330
ECU family
Subaru 22611AL-series
Applies to
ADM WRX MY06-10 and STI MY06-07 2.5 with Denso ECU
Not for
Hitachi-supplied ECU versions; non-ADM
Supplier
Denso

Same model years used both Denso and Hitachi ECUs; buyer must check maker label. 22611AL310 listed as Denso (JDM EJ20 STI 05-07); 22611AL330 (EJ25 WRX) maker not stated.

Low confidenceE-1444
Subaru ECM (EJ257, MY04 Impreza WRX STI, GD)
22611AJ24022611AJ24122611AJ24222611AJ243
ECU family
Subaru GD Impreza STI ECM (MY04)
Applies to
2004 Impreza WRX STI, 6MT; USDM

AJ243 supersedes AJ240-AJ242 per dealer catalogue. Supplier not stated by catalogue.

SourcedE-1492
Subaru ECM (EJ257, MY05-06 Impreza WRX STI)
22611AJ93022611AJ93122611AL370
ECU family
Subaru GD Impreza STI ECM (MY05-06)
Applies to
2005-2006 Impreza WRX STI, 6MT; USDM

AJ930/AJ931 = 2005 STI; AL370 = 2006 STI. Supplier not stated by catalogue.

SourcedE-1491E-1493
Subaru ECM (EJ257, MY07 Impreza WRX STI)
22611AM41022611AM41122611AM412
ECU family
Subaru GD Impreza STI ECM (MY07)
Applies to
2007 Impreza WRX STI / STI Limited, 6MT; USDM

AM410/AM411 replaced by AM412 (2007 STI, STI Limited). Boomslang fitment also lists STI NON-USDM and WRX 2006-07 under this SKU: ambiguity, check ECU.

Sourced · mediumE-1491

Factory ECU pinout: pending

No OEM pin table is in our library yet for the EJ257 (STI) factory ECU. A community transcription of the 2002 USDM WRX (EJ205) ECU pinout exists; it will be published once verified against Subaru STIS / factory service documentation for the exact model year and market. Until then, wire from the harness maker's instructions or the factory service manual.

Factory ECU pinout

A community transcription of the 2002 USDM WRX (EJ205) ECU pinout exists; it will be published once verified against Subaru STIS / factory service documentation for the exact model year and market.

Plug-and-play harness

Route for this carS3 plug-in harness
1 · S3 plug-in2 · Factory-connector adapter3 · Wire-in

A plug-in harness built for the Haltech Nexus S3 pinout is listed for this vehicle. The ECU2 follows that published pinout, so the factory ECU is unplugged and the ECU2 plugs into the car's own loom. Nothing is written to the factory ECU. Pin-compatible per the published S3 pinout, not yet fit-tested.

MakerHarnessFitsLink
Subaru WRX MY06-10HT-186370ADM WRX MY06-10 and STI MY06-07 2.5 with Denso ECU$535LowestMaker ↗
Manual 2004 - 2004 Subaru STIBF29112-S32004 Impreza WRX STI, 6MT; USDM$840Maker ↗
Manual 2005 - 2006 Subaru STIBF29113-S32005-2006 Impreza WRX STI, 6MT; USDM$840Maker ↗
Manual 2007 - 2007 Subaru STIBF29114-S32007 Impreza WRX STI / STI Limited, 6MT; USDM$840Maker ↗
Wire-inUniversal flying lead or re-terminated factory harnessAny engine (terminate to ECU2's two Superseal 34 connectors)Universal harness from $405Maker ↗

Nexus S3 Plug n Play Adapter Harness Subaru WRX MY06-10

$535USD list · excl. tax
Plug-and-playOff-road / competition onlymedium confidenceS3 fit not yet tested ⓘ
Plugs into
Subaru Denso ECU (ADM MY06-10 WRX / MY06-07 STI 2.5) · 22611AL310, 22611AL330
OEM part numbers
22611AL310, 22611AL330
ECU
Denso · Subaru 22611AL-series
Confidence
low

Same model years used both Denso and Hitachi ECUs; buyer must check maker label. 22611AL310 listed as Denso (JDM EJ20 STI 05-07); 22611AL330 (EJ25 WRX) maker not stated.

Sources: E-1444

Fits
ADM WRX MY06-10 and STI MY06-07 2.5 with Denso ECU
Exclusions
Hitachi-supplied ECU versions; non-ADM
SKU
HT-186370
Maker fitment
Subaru WRX MY06-10 and STI MY06-07 2.5 with DENSO ECU; Australian Domestic Market only; not compatible with Hitachi ECU
Maker notes
kit HT-213311 USD 2800; ADM MY06-10 Denso only

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 2004 - 2004 Subaru STI

$840USD list
Plug-and-playManual onlyhigh confidenceS3 fit not yet tested ⓘ
Plugs into
Subaru ECM (EJ257, MY04 Impreza WRX STI, GD) · 22611AJ240, 22611AJ241…
OEM part numbers
22611AJ240, 22611AJ241, 22611AJ242, 22611AJ243
ECU
Subaru GD Impreza STI ECM (MY04)
Confidence
high

AJ243 supersedes AJ240-AJ242 per dealer catalogue. Supplier not stated by catalogue.

Sources: E-1492

Fits
2004 Impreza WRX STI, 6MT; USDM
SKU
BF29112-S3
Maker fitment
Subaru STI (Manual); selector years 2004-2004; SKU label: Manual 2004 - 2004 Subaru STI
Maker notes
separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); 2004

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 2005 - 2006 Subaru STI

$840USD list
Plug-and-playManual onlyhigh confidenceS3 fit not yet tested ⓘ
Plugs into
Subaru ECM (EJ257, MY05-06 Impreza WRX STI) · 22611AJ930, 22611AJ931…
OEM part numbers
22611AJ930, 22611AJ931, 22611AL370
ECU
Subaru GD Impreza STI ECM (MY05-06)
Confidence
high

AJ930/AJ931 = 2005 STI; AL370 = 2006 STI. Supplier not stated by catalogue.

Sources: E-1491, E-1493

Fits
2005-2006 Impreza WRX STI, 6MT; USDM
SKU
BF29113-S3
Maker fitment
Subaru STI (Manual); selector years 2005-2006; SKU label: Manual 2005 - 2006 Subaru STI
Maker notes
separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); 2005-06

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 2007 - 2007 Subaru STI

$840USD list
Plug-and-playManual onlyhigh confidenceS3 fit not yet tested ⓘ
Plugs into
Subaru ECM (EJ257, MY07 Impreza WRX STI) · 22611AM410, 22611AM411…
OEM part numbers
22611AM410, 22611AM411, 22611AM412
ECU
Subaru GD Impreza STI ECM (MY07)
Confidence
medium

AM410/AM411 replaced by AM412 (2007 STI, STI Limited). Boomslang fitment also lists STI NON-USDM and WRX 2006-07 under this SKU: ambiguity, check ECU.

Sources: E-1491

Fits
2007 Impreza WRX STI / STI Limited, 6MT; USDM
SKU
BF29114-S3
Maker fitment
Subaru STI; Subaru STI NON-USDM; Subaru WRX (Manual); selector years 2006-2007; SKU label: Manual 2007 - 2007 Subaru STI
Maker notes
separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); 2007 (selector 2006-07)

Haltech and Boomslang are trademarks of their respective owners. GAINS is not affiliated with or endorsed by them.

Your GAINS system for this car · pre-release

ECU2 for the Impreza WRX STI GD

Planned with the same rules as the configurator for this car's 4 cyl · port injection · cable or drive-by-wire. The factory ECU is unplugged and replaced; nothing is written to it.

  • ECU2Engine controller

    4 cyl · port injection · cable or drive-by-wire

    Full sequential fuel and spark for this 4-cylinder, and its electronic throttle, with the wideband built in.

    in designEst. availability: April 2027

    Price TBA

Add PDM2 to switch and protect chassis loads (pumps, fans, lights, accessories). Add it in the configurator →

Track days? Add the Telemetry Dongle Pro for 25 Hz GPS lap timing; it plugs into the OBD-II port, and your phone is the dash. Plan it in the configurator →

What you get

  • A screen on the ECUA 2.4-inch, 500-nit display in the lid, readable in a footwell.
  • Faults in plain words"Coolant temp sensor open circuit.
  • Drive-by-wire built inFour half-bridges run up to two electronic throttles, with pedal and throttle sensors on the ECU's own inputs and a windowed watchdog that cuts the motors in hardware on a fault.
  • S3-style harnessesConnector A and C pin functions follow the published Nexus S3 wiring diagram.
  • Powered CAN portA sealed 4-pin port on the insert carries 12 V and CAN for the PDM2 and GAINS displays: one cable per accessory.
  • GAINS insideThe on-ECU adaptive layer, the app, logging and your limits.

How it wires in

  1. Haltech S3 plug-in harness1 listed · from $535 USD listHT-186370
  2. Factory-connector → S3 adapter3 listed · from $840 USD list
  3. Wire-inAlways possible

Pin-compatible per the published S3 pinout, not yet fit-tested. Every harness option for this car ↓

ECU2 is in design; specifications may change. All GAINS hardware is pre-release concept design; nothing is for sale yet and no application is validated on a vehicle. Harness fitment is from published pinouts and not yet fit-tested.

How GAINS approaches the Impreza WRX STI GD

Our starting method for this engine, as foundations first: get it running and drivable, then learn fuel, then the hardware-specific strategies. It is a methodology outline, not a validated calibration.

  1. 1
    Base map and first startplanned

    Start from displacement, injector data and the sensors fitted, then let the first-start learner settle cranking, idle and warm-up before any load work. The goal is a safe, running engine, not a finished calibration.

  2. 2
    Lambda targets and VE learningclosed loop on GAINS ECUs

    Air-fuel targets come from your goal (street, track, economy). The ECU then learns its fuel table cell by cell from the onboard wideband inside a signed envelope, and you approve promoting what it learned into the base map.

  3. 3
    Cam phasing (VVT)gated

    Begin with conservative overlap. Cam targets per load cell are then chosen with torque and knock in mind, keeping idle and cold overlap low for stability. Widening cam authority follows the same evidence-gated path as spark.

  4. 4
    Boost controlgated

    A closed-loop boost target by gear and goal, held inside the authority envelope, with knock protection active at boost. Raising boost authority is never automatic; it stays an expert or dyno decision.

  5. 5
    Drivability foundationsplanned

    Pedal map, tip-in and decel fuel, idle control, cold start and warm-up enrichment: the tables tuners spend hours on after the main map. Each is a strategy in the knowledge engine with its own limits.

  6. 6
    Factory load sensingfactory reference

    What the factory ECU measures load with: MAF (hot-wire / hot-film) (medium confidence)

  7. 7
    Wideband sensorhardware

    the factory sensor is already an A/F type; for tuning, fit a Bosch LSU 4.9 for the GAINS ECU's built-in controller (factory A/F sensors are not LSU-compatible)

  8. 8
    Bottom end and head sealingfactory reference

    Reported: MotoIQ: brittle hypereutectic ring lands with high top ring are the first failure even with mild detonation; case flex, head gaskets and rod bearing starvation above ~7,500 rpm also cited. (medium confidence) Limits depend on tune quality, fuel, rpm and condition and are not guaranteed.

Drivetrain

WRX5-speed manual / 4-speed automaticSourced · medium1
STI6-speed manual with Driver Controlled Center Differential (DCCD)Sourced · medium24

Chassis integration

Cluster tachECM engine speed outputC9 in the 2002 USDM WRX transcriptionLow confidence6
Fans / A/CECM controls radiator fan relays 1 and 2 and the A/C relayLow confidence6
Intercooler spray (EJ207 GD STi)Driver-activated water spray, tank in the bootSourced · medium2
Market datesUS WRX from MY2002, STI from MY2004Low confidence8

Tuning notes

WRX turboTD04L, target about 93 kPa13.5 psiSourced · medium1
EJ257 GD STI turboIHI VF48, max boost 103 kPa14.9 psiSourced · medium4
Compression
  • EJ205 8.0:1 (GD.I) / 9.0:1GD.II
  • EJ207 8.0:1
  • EJ257 8.0:1 (GD AU) / 8.2:1
Sourced · medium124
EJ257 pistons

Cast pistons with weak ringlands are the usual failure point when pushed

Sourced · medium5

The EJ205 is open deck with cast rods and no piston oil jets, so it is best kept to moderate boost. The EJ257 is semi-closed deck but uses cast pistons. The top-mount intercooler heat-soaks, so log IAT on repeated pulls.

Popular swaps

Common swap
  • EJ257 short block or long block into GD WRX
  • Requires matching ECU (AVCS, DBW) and wiring
Low confidence7

GAINS on the Impreza WRX STI GD

ECU2

ECU2Full sequential fuel and spark for this 4-cylinder, and its electronic throttle, with the wideband built in.Est. availability: April 2027
Hardware fromPrice TBAPlan and compare costs

Designed so your phone is the laptop, keypad and dash

The GAINS app is designed to handle tuning, logging, gauges and switch inputs over Bluetooth, so the system needs no separate CAN keypad or display. Keypad, dash and logging views are planned; the iOS prototype runs on simulated data today.

Wideband, IMU and logging built in

An onboard Bosch LSU 4.9 wideband controller, a 6-axis IMU and onboard logging are designed into the ECU rather than sold as add-on modules.

Modular, so you buy what the engine needs

This engine runs on ECU2. PDM2 (power, body and gearbox) is optional and connects over ECU2's powered CAN port; the Telemetry Dongle Pro adds GPS lap timing from the OBD-II port.

Calibration that keeps learning

Instead of a fixed map that drifts as parts and conditions change, the ECU keeps adapting its fuel trims within limits you can see and approve in the app.

Adaptive tuning strategies

  • VE learning closed loop on GAINS ECUs

    Learns the fuel table from the onboard wideband as you drive, cell by cell, inside a signed authority envelope. Learned trims are promoted into the base map without a step in fuelling.

  • Goal-based lambda targets closed loop on GAINS ECUs

    Sets air-fuel targets from your goal (economy, response, power, safety margin) instead of a single fixed table.

  • Knock protection protection

    Listens for knock on a dedicated knock processor, pulls timing at once and restores it slowly. It only ever reduces advance.

  • Warm-up, cranking, idle and transient fuel planned

    The same learning approach applied to the tables tuners spend hours on after the main map is done.

  • Spark advance and boost authority gated

    Widening ignition advance or boost is never automatic. It stays an expert or dyno decision until validated knock detection exists for the engine family.

Already running another ECU? In advisor mode the same strategies read your logs and recommend exact table changes with the reasoning, which you apply in your ECU vendor's own software.

GAINS hardware is pre-release concept design. Simulated results only; nothing is validated on a vehicle yet.

Frequently asked

Where is the crank sensor on the 2002 WRX ECU?

Per a community transcription of Subaru documentation: crank sensor +/- on B2/B11, cam sensor +/- on B1/B10, shared shield on B21. Verify against the factory manual.6

Does the 2002 WRX have AVCS?

No. Intake AVCS arrived with the GD.II update from November 2002 (2004 MY in most markets).1

What turbo does the GD WRX use?

A Mitsubishi TD04L, with a factory target of about 93 kPa (13.5 psi).1

What is the difference between the 2004 US STI and the JDM STi?

The US STI used the 2.5 litre EJ257. Japan, the UK and Australia (to 2005) used the 2.0 litre EJ207.52

Sources

Numbered as cited above. Hover or tap a citation chip to preview it.

  1. Subaru EJ205 Engine · AustralianCar.Reviews · press · retrieved 2026-10-25
  2. Subaru EJ207 Engine · AustralianCar.Reviews · press · retrieved 2026-10-25
  3. Subaru EJ255 Engine · AustralianCar.Reviews · press · retrieved 2026-10-25
  4. Subaru EJ257 Engine · AustralianCar.Reviews · press · retrieved 2026-10-25
  5. Top Ten Engines - #8 Subaru EJ257 · DSPORT Magazine · press · retrieved 2026-10-25
  6. 2002 WRX ECU pinouts (transcribed from Subaru wiring/service documentation by a NASIOC member) · NorthUrsalia.com · community · retrieved 2026-10-25
  7. Subaru EJ engine · Wikipedia · community · retrieved 2026-10-25
  8. Subaru WRX · Wikipedia · community · retrieved 2026-10-25

Catalog data and evidence

  • Catalog data, not yet expert-reviewed.
  • No vehicle photos: illustrations only until licensed imagery is available.
  1. E-933 Haltech S3 adapter harness page (sourced, high confidence)
  2. E-934 Boomslang identity (sourced, high confidence)
  3. E-935 Boomslang S3 catalog size (sourced, high confidence)
  4. E-900 Haltech Nexus S3 catalog (sourced, high confidence)
  5. E-941 S3 engine harness availability (inferred, medium confidence)
  6. E-1444 Subaru MY06-07 Denso vs Hitachi (supported, medium confidence)
  7. E-1492 harness ECU xref: Subaru 2004 Impreza STI/WRX (verified, high confidence)
  8. E-1491 harness ECU xref: Subaru Impreza WRX/STI ECMs (USDM) (verified, high confidence)
  9. E-1493 harness ECU xref: Subaru 2006 Impreza (verified, high confidence)