Engine: M50 / M52 / S50 / S52
Part of the BMW M50 / M52 / M54 family.
Modeled power and torque
Modelled estimate, not a dyno result.
Modeled estimate, not a dyno measurement. Real results vary with fuel, weather, dyno type and build.
Stock is anchored to the factory rating (190 hp at 5500 rpm, 207 lb-ft at 3950 rpm); the curve shape between peaks is modeled. Intake + exhaust + tune (pump fuel): Typical NA gains come mostly above mid-rpm.
M50 / M52 / S50 / S52 data
- Load sensing
- MAF (hot-wire / hot-film)
- O2 sensor
- narrowband (Siemens pre-cat sensors on MS41; described as varying in resistance - element type not stated)
- Closed loop
- narrowband closed loop (ECM corrects injection time); open loop under load not described
- Block
- M50, S50, S52 and North-American M52: cast iron; RoW M52 (and US Z3 M52B28): aluminium
- Rods / pistons
- Not yet sourced
- Reported limit
- ~450-500 hp on stock rotating assembly with an upgraded head gasket (tuning-blog/forum consensus; low confidence)
- Factory
- Bosch EV1 top-feed
- Impedance
- high (saturated)
- Direct-fit upgrades
- 13 maker-listed
- Knock
- BMW 12141703276 (M52/S52 US: 323i/328i/528i/M3/Z3) | 12141738667 (M50/S50: 325i/525i/M3)
- MAP / MAF
- hot-film air mass meter (HFM)
- O2 (upstream)
- narrowband zirconia heated (Siemens, resistive type)
Factory ECU
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.
- ECU family
- Bosch Motronic M3.3.1 (inferred)
- Applies to
- 1995 US E36 M3; manual
- Not for
- 1996+ S52 (MS41); Euro M3
- Supplier
- Bosch
Source says M3.3 family ran the S50 3.0 M3, but does not explicitly confirm the 1995 US car; low.
- ECU family
- Siemens MS41.1 / MS41.2
- Applies to
- US E36 M3 S52 01/1996-1999; manual
- Not for
- Euro M3 3.2 (MSS50); 1995 S50 (BF29175-S3)
- Supplier
- Siemens
Remanufacturer cross-reference.
Factory ECU pinout
Each connector face drawn from the OEM service manual's pin data, with every terminal's function and wire colour where the manual prints it.
BMW Bosch DME M3.3 (E36 M3 S50B30, Canada, 88-pin)
The Bosch DME M3.3 is the engine control module of the S50B30 six-cylinder in the Canadian-market E36 M3 covered by BMW's 1996 wiring manual. It uses one 88-pin harness connector, X6000, and talks over CAN to a separate VANOS control module. This page transcribes all 88 cavities with function, wire colour and the connector face layout.
1996 model year E36 M3, Canadian market (pinout as documented) · Canada (BMW of North America manual, section marked CDN) · 1 connector, 88 cavities · 88 terminals sourced
Looking into the harness plug's mating face (mirror of the ECU face).
How the OEM figure is oriented
BMW's figure (Connector Views 8500.0-06, Fig. 1, B880001.00) is not labelled with a viewing side. It draws pin 28 top-left, 1 top-right, 55 middle-left, 29 middle-right, 88 bottom-left and 56 bottom-right, with a lever/extension at the left and latch tabs at the right. The figure carries BMW's female-terminal (socket) icon, which indicates the harness-side plug; whether the face is the mating face or the wire side is not stated, so it is stored here as the harness plug as drawn. Check the numbers moulded on the housing before wiring.| Pin | Function | Type | Wire | Notes |
|---|---|---|---|---|
| 1 | Fuel pump relay control | relay coil driver | BR/GN (0.5 mm²) | Schematic 1210.14-02: fuel pump/start identification relay K6307 pin 85 (X6307 pin 8). |
| 2 | Close winding control, idle speed control valve | idle valve winding driver | WS/GE (0.5 mm²) | Idle speed control valve Y6130 pin 1; pins 2 (close) and 29 (open) drive the two windings, common feed RT/WS on pin 2 of the valve. |
| 3 | Cyl. 1 fuel injection valve control | low-side injector driver | BR/WS (0.75 mm²) | Injectors fed from the DME relay (RT/WS) via splice X6820. |
| 4 | Cyl. 3 fuel injection valve control | low-side injector driver | BR/GE (0.75 mm²) | |
| 5 | Cyl. 2 fuel injection valve control | low-side injector driver | BR/RT (0.75 mm²) | |
| 6 | Ground, fuel injection output stages | DME power ground | BR (1.5 mm²) | The BMW table prints "full injection output stages". |
| 7 | Not used | Other / not used | — | |
| 8 | "Check engine" indicator control | lamp driver | GR (0.5 mm²) | Instrument cluster X16 pin 16 via X20 pin 8. |
| 9 | Not used | Other / not used | — | |
| 10 | Not used | Other / not used | — | |
| 11 | Not used | Other / not used | — | |
| 12 | Oxygen sensor II signal | O2 sensor signal | GE (0.5 mm²) | Heated oxygen sensor 2 B5028 pin 2; shield W5028. |
| 13 | Oxygen sensor I signal | O2 sensor signal | GE (0.5 mm²) | Heated oxygen sensor B6200 pin 2; shield W6200. |
| 14 | Ground, hot film air mass meter | sensor ground | GR/WS (0.5 mm²) | Hot film air mass meter B6217 pin 4. |
| 15 | Ignition control signal (connection: ground) | ground | — | Printed as type E "Ignition control signal" with connection "Ground"; the schematic 1210.14-04 draws pin 15 dashed to ground X6454 with no colour. |
| 16 | Crankshaft position/RPM sensor signal | crank sensor signal | GE (0.5 mm²) | Crankshaft sensor B6203 pin 1; the ETM draws the sensor with the magnet-and-coil (N S) symbol; shield W6203. |
| 17 | Camshaft position sensor signal | camshaft sensor signal | SW (0.5 mm²) | Pin table connection: Hall effect camshaft sensor B6204 (cylinder identification), pin 1 per schematic; shield W6204. |
| 18 | Not used | Other / not used | — | |
| 19 | Secondary air pump (double relay) | relay coil driver | BR/WS (0.5 mm²) | Double relay K5029 pin 85 (X5029 pin 10). |
| 20 | Not used | Other / not used | — | |
| 21 | Not used | Other / not used | — | |
| 22 | Not used | Other / not used | — | |
| 23 | Cyl. 2 ignition coil control | coil primary drive (ignition output stage inside the DME) | SW/RT (1.5 mm²) | Coil-primary wires run in shield W6150 up to 10 mm before the coils. |
| 24 | Cyl. 3 ignition coil control | coil primary drive (ignition output stage inside the DME) | SW/GE (1.5 mm²) | |
| 25 | Cyl. 1 ignition coil control | coil primary drive (ignition output stage inside the DME) | SW/WS (1.5 mm²) | |
| 26 | Battery voltage (jump start junction point) | 12 V permanent (terminal 30) | RT (0.5 mm²) | |
| 27 | DME relay signal (engine control module relay) | relay coil driver | BR/BL (0.5 mm²) | Engine control module relay K6300 pin 85 (X6300 pin 4). |
| 28 | Ground | DME ground | BR/OR (1.5 mm²) | To splice X6463 and ground X6454 (schematic 1210.14-06). |
| 29 | Opening winding control, idle speed control valve | idle valve winding driver | WS/GN (0.5 mm²) | Idle speed control valve Y6130 pin 3. |
| 30 | Not used | Other / not used | — | |
| 31 | Cyl. 5 fuel injection valve control | low-side injector driver | BR/GN (0.75 mm²) | |
| 32 | Cyl. 6 fuel injection valve control | low-side injector driver | BR/VI (0.75 mm²) | |
| 33 | Cyl. 4 fuel injection valve control | low-side injector driver | BR/BL (0.75 mm²) | |
| 34 | Ground, output stages | DME power ground | BR (1.5 mm²) | |
| 35 | Not used | Other / not used | — | |
| 36 | Evaporative emission valve control | solenoid driver | BR (0.5 mm²) | Evaporative emission valve Y6120 pin 2. |
| 37 | Oxygen sensor heater control (double relay) | relay coil driver | BR/GN (0.5 mm²) | Double relay K5029 pin 85 (X5029 pin 5); the relay switches the oxygen sensor heaters. |
| 38 | Not used | Other / not used | — | |
| 39 | Ground, oxygen sensor II | O2 signal ground | SW (0.5 mm²) | Heated oxygen sensor 2 B5028 pin 1. |
| 40 | Ground, oxygen sensor I | O2 signal ground | SW (0.5 mm²) | Heated oxygen sensor B6200 pin 1. |
| 41 | Air mass meter signal | analog voltage input | GR/BL (0.5 mm²) | Hot film air mass meter B6217 pin 2; the meter is fed 1.5 RT/WS from the DME relay on its pin 3. |
| 42 | Vehicle speed signal (instrument cluster) | vehicle speed input | SW/WS (0.5 mm²) | From instrument cluster X17 pin 2 (vehicle speed output) via X20 pin 14. |
| 43 | Ground, crankshaft sensor | sensor ground | SW (0.5 mm²) | Crankshaft sensor B6203 pin 2. |
| 44 | Ground, camshaft sensor | sensor ground | GE (0.5 mm²) | Camshaft sensor B6204 pin 2. |
| 45 | Not used | Other / not used | — | |
| 46 | Ti-measurement signal (fuel consumption) | injection-time (Ti) output | WS/SW (0.5 mm²) | Instrument cluster X16 pin 21 and on-board computer X1071 pin 6 via X20 pin 24. |
| 47 | Crankshaft RPM speed signal TD | engine-speed (TD) output | SW (0.5 mm²) | Instrument cluster X16 pin 20 via X20 pin 20; also to climate control and the data link (splice X1047). |
| 48 | A/C compressor signal (compressor control relay) | relay coil driver | SW/BL (0.5 mm²) | Compressor control relay K19 pin 85 (X51 pin 5); the table lists type E. |
| 49 | Not used | Other / not used | — | |
| 50 | Cyl. 4 ignition coil control | coil primary drive (ignition output stage inside the DME) | SW/BL (1.5 mm²) | |
| 51 | Cyl. 6 ignition coil control | coil primary drive (ignition output stage inside the DME) | SW/VI (1.5 mm²) | |
| 52 | Cyl. 5 ignition coil control | coil primary drive (ignition output stage inside the DME) | SW/GN (1.5 mm²) | |
| 53 | Not used | Other / not used | — | |
| 54 | Battery voltage (DME relay output) | 12 V from DME relay (terminal 87) | — | The pin table connection reads "Engine control module (DME)"; schematic 1210.14-00 feeds pin 54 from relay K6300 terminal 87 through splice X6821 (6 RT/WS printed on the relay-to-splice segment; the pin-54 lead itself is not labelled). |
| 55 | Ground, ignition | ignition output stage ground | — | Drawn dashed to ground X6454; no colour printed. |
| 56 | Voltage, terminal 15 (ignition switch) | 12 V switched (terminal 15) | GN (0.5 mm²) | |
| 57 | Not used | Other / not used | — | |
| 58 | Not used | Other / not used | — | |
| 59 | 5 V voltage supply, throttle position sensor | 5 V sensor supply | RT/GE (0.5 mm²) | Throttle position sensor R6252 pin 1. |
| 60 | Programming voltage (data link connector) | programming voltage input (PGSP) | GN/BL (0.5 mm²) | Data link connector X6002 pin 18. |
| 61 | Not used | Other / not used | — | |
| 62 | Not used | Other / not used | — | |
| 63 | Not used | Other / not used | — | |
| 64 | A/C signal (integrated climate regulation control module) | digital input from climate control | VI/GR (0.5 mm²) | IHKR A87y X18156 pin 18 via X20 pin 6. |
| 65 | A/C pressure signal (pressure switch / auxiliary fan stage I) | switch input | SW/GR (0.5 mm²) | Pressure switch B9508 via X10261 pin 4; also to normal speed relay K21. |
| 66 | Drive-away protection signal (EWS II) | immobiliser code input | SW/VI (0.5 mm²) | Electronic immobilizer control module A636 X1659 pin 4 via X20 pin 7 (0.35 GN on the EWS side). |
| 67 | Not used | Other / not used | — | |
| 68 | Knock sensor signal, cyl. 5-6 | knock sensor input | SW (0.35 mm²) | Knock sensor B6243 pin 1; shielded. |
| 69 | Knock sensor signal, cyl. 3-4 | knock sensor input | SW (0.35 mm²) | Knock sensor B6242 pin 1; shielded. |
| 70 | Knock sensor signal, cyl. 1-2 | knock sensor input | SW (0.35 mm²) | Knock sensor B6241 pin 1; shielded. |
| 71 | Ground, knock sensors and shields | sensor ground / shield | BR (0.5 mm²) | Splice X5018 to the knock sensor returns (pin 2) and shields. |
| 72 | Not used | Other / not used | — | |
| 73 | Throttle position | potentiometer input | BR/WS (0.5 mm²) | Throttle position sensor R6252 pin 2; sensor ground (pin 3) goes to splice X6475. |
| 74 | Not used | Other / not used | — | |
| 75 | Not used | Other / not used | — | |
| 76 | Not used | Other / not used | — | |
| 77 | Engine intake air temperature | NTC thermistor input | GR (0.5 mm²) | Intake air temperature sensor B6205 pin 1; return via splice X6475. |
| 78 | Engine coolant temperature | NTC thermistor input | BR/RT (0.5 mm²) | Coolant temperature sensor B6236 pin 1; return via splice X6475. |
| 79 | Not used | Other / not used | — | |
| 80 | Not used | Other / not used | — | |
| 81 | Not used | Other / not used | — | |
| 82 | Start revolution signal (ignition switch, terminal 50) | 12 V start input | SW/GE (0.5 mm²) | Schematic 1210.14-02: from the EWS II terminal 50 output (X1659 pin 1) via X20 pin 18 and splice X6811, which also feeds relay K6307. |
| 83 | Not used | Other / not used | — | |
| 84 | Shield (ground) | shield ground | — | Shield W9110 around the CAN pair to the VANOS module. |
| 85 | CAN-Low signal (variable camshaft control module) | CAN low | SW (0.5 mm²) | VANOS control module A5024 X5024 pin 12. Colour printed at the VANOS-module end of the shielded pair. |
| 86 | CAN-High signal (variable camshaft control module) | CAN high | GE (0.5 mm²) | VANOS control module A5024 X5024 pin 4. Colour printed at the VANOS-module end of the shielded pair. |
| 87 | RxD diagnostic data link | diagnostic serial (RxD) | WS/GE (0.5 mm²) | Data link 0670.5. |
| 88 | TxD diagnostic data link | diagnostic serial (TxD) | WS/VI (0.5 mm²) | Data link 0670.5. |
Our drawing from published pin data; not an OEM drawing. Layout from the OEM face view (medium confidence). Confirm against the factory manual for your exact year and market before cutting or pinning wires.
Coverage, year splits and safety
Scope: BMW of North America's 1996 model-year E36 manual (cars built 9/95 to 8/96), section 1210.14 "Engine control system (DME M3.3, 6-cylinder S50 B30)", every page marked CDN (Canada). Other years and markets were not compared pin by pin; check each wire colour at the connector before cutting.
Year and market split on the linked catalog row (E36 M3, 1992-99): this pinout covers only the S50B30 car documented here. BMW training ST055 lists Siemens MS41.2 for the 1996-1999 E36 M3 (S50B32 in BMW NA naming, the US S52); that pin table was not transcribed and European M3 variants were not checked, so do not use this table for them.
VANOS is run by a separate variable camshaft control module A5024 (15-pin connector X5024) that drives the two VANOS valves, reads two camshaft sensors and talks to the DME over CAN (pins 85 and 86). That module's connector is not covered here.
Safety: disconnect the battery before unplugging the DME and never back-probe through the connector seals with sharp probes; use a break-out adapter between the DME and harness.
Plug-and-play harness
No Haltech S3 plug-in harness is listed for this vehicle, but a Boomslang adapter harness is: it plugs into the factory ECU connector on one side and the S3 pinout on the other, so the ECU2 replaces the factory ECU without cutting the loom. Nothing is written to the factory ECU. Pin-compatible per the published S3 pinout, not yet fit-tested.
| Maker | Harness | Fits | Link | |
|---|---|---|---|---|
![]() | Manual 1995 - 1995 BMW M3BF29175-S3 | 1995 US E36 M3; manual | $1,080Lowest | Maker ↗ |
![]() | Manual 1996 - 1999 BMW M3BF29212-S3 | US E36 M3 S52 01/1996-1999; manual | $1,080Lowest | Maker ↗ |
| Wire-in | Universal flying lead or re-terminated factory harness | Any engine (terminate to ECU2's two Superseal 34 connectors) | Universal harness from $405 | Maker ↗ |

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 1995 - 1995 BMW M3
- Plugs into
BMW DME, 1995 E36 M3 (S50B30US)
- ECU
- Bosch · Bosch Motronic M3.3.1 (inferred)
- Confidence
- low
Source says M3.3 family ran the S50 3.0 M3, but does not explicitly confirm the 1995 US car; low.
- Fits
- 1995 US E36 M3; manual
- Exclusions
- 1996+ S52 (MS41); Euro M3
- SKU
- BF29175-S3
- Maker fitment
- BMW M3 (Manual); selector years 1995-1995; SKU label: Manual 1995 - 1995 BMW M3
- Maker notes
- separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); USDM M3 1995; Haltech coil drivers required (BMW)

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 1996 - 1999 BMW M3
- Plugs into
BMW DME, 1996-99 E36 M3 S52 (Siemens MS41)
- ECU
- Siemens · Siemens MS41.1 / MS41.2
- Confidence
- medium
Remanufacturer cross-reference.
Sources: E-1459
- Fits
- US E36 M3 S52 01/1996-1999; manual
- Exclusions
- Euro M3 3.2 (MSS50); 1995 S50 (BF29175-S3)
- SKU
- BF29212-S3
- Maker fitment
- BMW M3 (Manual); selector years 1996-1999; SKU label: Manual 1996 - 1999 BMW M3
- Maker notes
- separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); USDM M3 1996-99; Haltech coil drivers required (BMW)
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 M3 E36
Planned with the same rules as the configurator for this car's 6 cyl · port injection · cable throttle. The factory ECU is unplugged and replaced; nothing is written to it.
- Price TBA
ECU2Engine controller
6 cyl · port injection · cable throttle
Full sequential fuel and spark for this 6-cylinder on a cable throttle, with the wideband built in.
in designEst. availability: April 2027
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.
- 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
- Haltech S3 plug-in harnessNone listed for this car
- Factory-connector → S3 adapter2 listed · from $1,080 USD listBF29175-S3
- 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 M3 E36
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.
- 1Base 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.
- 2Lambda 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.
- 3Cam 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.
- 4Drivability 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.
- 5Factory load sensingfactory reference
What the factory ECU measures load with: MAF (hot-wire / hot-film) (medium confidence)
- 6Wideband sensorhardware
Add a wideband: the factory narrowband only tells rich from lean around stoichiometric, so it cannot close the loop at power or economy targets; fit a Bosch LSU 4.9 for the GAINS ECU's built-in controller
- 7Bottom end and head sealingfactory reference
Reported: On turbo builds the head gasket is usually cited as the first failure, with stock rods/pistons/ring lands becoming a concern around 450-550 hp (tuning blog and forum consensus); aluminium Nikasil M52 is generally regarded as less suited to boost than the iron M50 block. (medium confidence) Limits depend on tune quality, fuel, rpm and condition and are not guaranteed.
GAINS on the M3 E36
ECU2
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.
Catalog data and evidence
- Catalog data, not yet expert-reviewed.
- No vehicle photos: illustrations only until licensed imagery is available.
- E-934 Boomslang identity (sourced, high confidence)
- E-935 Boomslang S3 catalog size (sourced, high confidence)
- E-900 Haltech Nexus S3 catalog (sourced, high confidence)
- E-941 S3 engine harness availability (inferred, medium confidence)
- E-1459 E36 M3 S52 DME (supported, medium confidence)


