P0335 — Crankshaft Position Sensor A Circuit Malfunction — LB7 Duramax

Diagnostic reference for LB7 Duramax (2001–2004) P0335.

Updated October 15, 2026

What it means

The engine control module has detected an electrical or signal fault in the crankshaft position sensor circuit.1

Most likely causes

  1. Crankshaft position sensor A circuit electrical fault — ECM sees an electrical or signal fault in the crankshaft position sensor circuit.1
  2. Wiring/connector issue to crankshaft position sensor — Open, short, or high resistance in the sensor harness or connector can set the circuit malfunction.1
  3. ECM signal processing fault — ECM detection of abnormal crank sensor signal as defined by SAE J2012 generic OBD-II / GM enhanced.1

How to diagnose

  1. Verify code P0335 is present and review freeze-frame data.
  2. Inspect crankshaft position sensor connector and wiring for damage, corrosion, or loose terminals.
  3. Check sensor supply/reference voltage and signal circuit continuity per service information; compare to expected values.
  4. Inspect crankshaft position sensor mounting and air gap; look for contamination or damage to sensor tip.
  5. Clear codes, road test, and confirm if P0335 returns.
  6. If circuit tests normal, evaluate ECM inputs for crank sensor signal integrity.
  7. Document findings and retain freeze-frame for intermittent faults.

Parts and tools you may need

Tools you’ll need

Rough cost and difficulty

Likely repairPartsShop laborWho usually does it
ECM/PCM software update—0.5–1.5 hrsShop
Wiring or connector repair$10–$1001–4 hrsDIY with tools and a manual
Crankshaft or camshaft position sensor$40–$2000.5–2 hrsDIY with tools and a manual
ECM/PCM replacement (programmed)$600–$2,0001–3 hrsShop

Typical US independent-shop figures; labor runs about $120–$180 per hour (dealers charge more). Confirm the diagnosis before buying parts.

When to see a pro

If diagnosis points to ECM internal fault, high-pressure fuel system work, or requires removal of safety-critical components, have a qualified diesel technician perform the work. Do not attempt repairs to high-pressure fuel lines or other safety-critical systems without proper training and equipment.

Check for recalls

Recalls are tied to your truck’s VIN, so check yours directly: enter the VIN at NHTSA’s recall lookup. Open safety recalls are repaired free at a dealer.

Sources


  1. Curated DTC seed — LB7 Duramax (curated) ↩︎ ↩︎ ↩︎ ↩︎

Repair videos: P0335 on the LB7 Duramax

Third-party videos, not ours — picked for this engine. Confirm anything against the factory service information for your truck.

LB7 Crankshaft Position Sensor *Easy Access — CRuff · 16K views