Car Shuts Off While Driving: Find Solution here

Car Shuts Off While Driving
Car Shuts Off While Driving

Car Shuts Off While Driving: Causes, Fixes & Mercedes Case Study

Few things are more alarming than when your car shuts off while driving especially in a luxury vehicle like a Mercedes-Benz. This problem can feel unpredictable and unsafe, often pointing to faults in the engine’s control, fuel, or crankshaft sensor systems.

In this article, we’ll analyze a real-world case study involving a Mercedes-Benz C-Class equipped with the M272 Engine, where the vehicle would randomly shut off while driving. You’ll see how step-by-step diagnostics helped uncover a faulty ECU, even though the initial clues pointed to a sensor problem.

Customer Complaint

A Mercedes-Benz C-Class owner reported:

“My car suddenly shuts off while driving or idles fine, then stops without warning.”

This intermittent stalling raised serious safety concerns and required a comprehensive diagnostic process to isolate the fault.

Initial Diagnosis

1. Fault Code Retrieval

Using the Mercedes XENTRY diagnostic tool, the technician retrieved the following fault:

Fault CodeDescriptionStatus
P0335Crankshaft position sensor inaccurate or implausible signalStored, then became current

Initially, the fault appeared intermittent, but after repeated checks, it reappeared as an active code, suggesting a recurring issue in the crankshaft signal chain.

2. Waveform & Voltage Testing

XENTRY Wave Pattern

A live data review showed a correct waveform pattern however, the fault reappeared after clearing.
This inconsistency indicated that the problem was intermittent, not a permanent open circuit.

Sensor Socket Voltage Check

A multimeter confirmed proper voltage supply at the crankshaft sensor socket, ruling out a wiring power fault.

Car Shuts Off While Driving
Car Shuts Off While Driving

3. Continuity and Fuel Tests

  • – Continuity Check: The connection from the crankshaft sensor to the ECU pins tested OK no open or short circuits found.
  • – Fuel Pressure Test: Normal fuel pressure observed, confirming the fuel system was healthy and unrelated to the shutdowns.

Preliminary conclusion: Wiring and fuel system were not the cause.

Advanced Diagnosis

1. PicoScope Signal Analysis

The PicoScope was connected to monitor real-time crankshaft signal output.
A signal dropout was captured once, suggesting a possible sensor or ECU processing error, but not enough to confirm the sensor as defective.

Car Shuts Off While Driving
Car Shuts Off While Driving
Car Shuts Off While Driving
Car Shuts Off While Driving
Car Shuts Off While Driving
Car Shuts Off While Driving

2. ECU Integrity Check

Inspection of the ECU revealed it was non-original (aftermarket).
Given the random shutdowns and inconsistent fault logging, suspicion shifted toward an unstable ECU communication fault.

Solution & Repair Process

Step 1 : Crankshaft Sensor Replacement

The crankshaft sensor was replaced with a new OEM component of the same part number.
Result: Fault persisted the engine still shut off intermittently.
This ruled out the sensor as the primary cause.

Crankshaft Position Sensor Test
Car Shuts Off While Driving

Step 2 : ECU Replacement

A genuine Mercedes-Benz engine control unit (ME Control Module) was installed and coded to factory specification using XENTRY / STAR Diagnosis.

After installation:

  • The fault code P0335 no longer appeared.
  • The engine operated smoothly without unexpected shutdowns.

Root cause confirmed: Defective aftermarket ECU.

Diagnostic Summary

Test StepTool / MethodFindingConclusion
Fault code scanXENTRYP0335 stored/currentCrankshaft signal error
Wiring continuityMultimeterOKWiring intact
Fuel pressure testFuel gaugeNormalFuel system OK
Waveform analysisPicoScopeIntermittent signal lossPossible ECU or sensor fault
ECU inspectionVisualNon-OEM ECU installedRoot cause confirmed

Crankshaft Position Sensor ; Location & Replacement (M272 Engine)

ComponentLocationAccess Tip
Crankshaft Sensor (B70)Rear of engine block near transmission bell housingBest accessed from underneath the vehicle
Position Crankshaft Sensor
Position Crankshaft Sensor

Replacement Steps

  1. 1. Remove air filter housing and vacuum lines.
  2. 2. Detach the hot-film MAF sensor and air guide housing.
  3. 3. Remove the vacuum pump (if equipped).
  4. 4. Unlock the electrical connector on sensor B70.
  5. 5. Unscrew the retaining bolt and remove sensor.
  6. 6. Install new sensor and reconnect.
  7. 7. Perform ECU adaptation and calibration with STAR Diagnosis.

Testing a Crankshaft Position Sensor

Test TypeToolExpected Result
Resistance CheckMultimeter (Ω)Within manufacturer-specified range
Voltage OutputMultimeter (AC V) while crankingSmall AC voltage signal present
Signal PatternOscilloscopeConsistent sine wave pattern

A missing or irregular pattern indicates a failing sensor or corrupted ECU signal processing.

If you’re facing similar starting problems, explore our full troubleshooting hub:
Mercedes No Start Issues: Causes, Fixes & Case Studies : a complete guide covering electrical, fuel, and ECU-related no-start scenarios across multiple Mercedes models.

Key Takeaways

  • Intermittent shutdowns can mimic sensor failure but may stem from defective or non-original ECUs.
  • Always confirm OEM part authenticity before replacing key modules.
  • Combine PicoScope signal analysis with voltage and continuity tests for accurate fault isolation.

Preventive Maintenance Tips

ActionWhy It Helps
Use only genuine ECU unitsEnsures proper CAN communication
Periodically inspect connectors for corrosionPrevents signal interruptions
Perform ECU software updates via XENTRYFixes logic faults and improves reliability
Replace crankshaft sensor every 100 000 km (as preventive measure)Avoids random stalls and misfires

FAQ: Car Shuts Off While Driving

1. Why did my Mercedes shut off while driving but restart later?
This usually indicates an intermittent crankshaft sensor or ECU fault that temporarily interrupts ignition synchronization.

2. Can a faulty ECU cause random shutdowns?
Yes. A defective or non-OEM ECU can misinterpret signals, causing sudden engine cut-off even when sensors are working.

3. What are the symptoms of a bad crankshaft sensor?
Engine stalling, no-start conditions, rough idle, or erratic tachometer readings.

4. How can I confirm if my ECU is original?
Check the part number via XENTRY or EPC Net and compare it with the VIN-specific OEM number.

Author Bio

Written by Mercedes Expert
With years of hands-on experience diagnosing and repairing Mercedes-Benz systems, he brings technical depth and practical case studies to help car owners, technicians, and enthusiasts troubleshoot complex automotive issues. His work focuses on clear repair guides, OEM-level procedures, and knowledge-sharing to empower both professionals and drivers.
Last update: October 2025