BMW 3 G20 M340i Wiring Diagram. Electrical System

Complete wiring diagrams for the BMW G20 M340i (B58 engine). An indispensable resource for diagnosing and troubleshooting the complex electrical system of this sports sedan. Includes detailed wiring diagrams for:

  • B58 engine management (DME) and the high-pressure fuel system (HPFP).
  • CAN bus and LIN bus diagrams for troubleshooting communication errors.
  • Integrated electronic modules and data bus.
  • Location of all electronic units (ECU/Control Modules)
  • M Performance systems (brakes, suspension).

Contains precise data on the locations of fuses, relays, and pinouts of all connectors.

General vehicle electrical system, check Download
Wiring harness Download
Auxiliary cable Download
Plug connection, terminal Download
Power distribution box, current terminals Download
Battery. Battery with holder Download
High-voltage accumulator system Download
Switch, sensor. Horn Download
Control Units, Modules Download
Windscreen wipers. Windscreen washer system Download
Lights. headlight. Removing and installing left LED fog light. Number plate lights Download
Audio, navigation, information systems. Distance system, Cruise control Download
Electric motor Download

B58 Engine Electrical System

Engine electrical system Download
Ignition lead, spark plugs Download
Ignition coil.  Replacing an ignition coil Download
Electronic Shift Units or Control Units Download
Alternator with Drive and Mounting Parts Download
Starter motor with mounting. Starter line Download
Engine wiring harness. Remove and install Download
Oil pressure, oil temperature, oil level display. Replacing engine oil level sensor Download
Switches and relays. Replacing power distribution box Download
Control unit box. Remove and install/replace control unit box Download

BMW G20 M340i (B58) Electrical & Wiring Issues

Electrical Issue Affected System/Component Symptom (Sign)
iDrive 7 Software Glitches Infotainment Control Unit (MGU) Screen Freezing (unresponsive display); Wireless CarPlay/Android Auto drops connection intermittently.
Brake Wear Sensor Failure Brake Pad Wear Sensors (PWS) False "Brake Pad Wear" warning on iDrive, despite pads having sufficient life left.
Active Grille Shutter Failure Front Air Flaps/Actuators "Drivetrain Malfunction" message or persistent CEL (Check Engine Light) due to failure of the electric motor controlling the grille shutters.
Comfort Access Sensor Failure Door Handles/Exterior Sensors Keyless entry or locking fails on one or more doors; often caused by moisture affecting the integrated sensor within the handle.
Wiring Harness Chafing Trunk/Boot Lid Wiring Harness Intermittent failure of the Reverse Camera, Trunk Release Button, or Rear Lighting due to damaged wires from constant flexing.
Battery Discharge/IBS Intelligent Battery Sensor (IBS) / Battery Management Random non-critical error messages appearing upon startup; issues with the Start/Stop function; battery requires frequent recharging.
PDC Sensor Malfunction Parking Distance Control Sensors Permanent Warning Tone or failure of the display to show objects when parking; often caused by moisture/dirt damaging a specific PDC sensor in the bumper.
Fuel Tank Sensor Drift (N58) Fuel Level Sensor Inaccurate or erratic fuel level readings on the dashboard, leading to unreliable range estimates.
Comments: 0