P0335 Duramax Code: Crankshaft Sensor Circuit Causes and Fixes
6 min read · by Nicole Bennett · Last updated: November 14, 2026
A p0335 duramax code means the engine computer has found an electrical fault in the crankshaft position sensor “A” circuit. The computer no longer sees a normal signal that tells it where the crankshaft is.
The sensor itself, its open or shorted wiring, and a loose connector are the main suspects. Check the wiring and the sensor signal before you order a new sensor.
What the P0335 Code Means on a Duramax
P0335 is a generic code for the crankshaft position sensor “A” circuit. The engine computer uses that sensor to know the crankshaft position and speed, so a circuit fault can disrupt timing and starting.
Carcodefinder’s diesel P0335 page labels the Duramax version as Crankshaft Position Sensor “A” Circuit and rates it serious. It notes that GM’s exact setting conditions are in its service information. The code describes the circuit, not the failed part, so a test has to confirm the cause.
This code is different from the cylinder misfire codes. A P0335 does not mean one cylinder is weak. It means the signal the computer uses to time the engine is missing or wrong, which is why symptoms often include hard starting or stalling.
Symptoms listed on the Duramax page include the check engine light, hard starting, long cranking, a no-start condition, and possible stalling or rough running. A truck that cranks but will not start deserves this code first.
The Causes Behind a Crankshaft Sensor Fault
The sensor failure and the wiring fault are both rated as high likelihood, which makes them the first two checks. A loose connector sits behind them, and a damaged reluctor or tone wheel comes last.
- Failed crankshaft position sensor, rated as high likelihood
- Open or shorted wiring in the sensor circuit, rated as high
- Loose or corroded connector, rated as moderate
- Damaged reluctor or tone wheel, rated as low
The general P0335 guide from Mechanicbase lists the same core causes: damaged wiring or a connector, a failed sensor, and a broken reluctor ring. It also adds a timing belt or chain problem and a faulty control module, which it calls rare. Those extra items matter when the engine will not start, because a timing fault can look like a sensor fault.
Mechanicbase also warns that some automakers give P0335 a different meaning. That is one more reason to check GM service information for the exact circuit definition before you condemn the sensor.

How to Check the Sensor Circuit
Test the wiring first, because it is cheaper to fix and is one of the two most likely causes. Then confirm the sensor signal. If you need sensor swap steps on a different engine, see BMW N46 crankshaft sensor replacement. Do not replace the sensor until the test shows it is out of specification.
- Inspect the sensor connector and harness for chafing, corrosion, or a plug that is not fully seated.
- Scan for other codes that share the same reference voltage or ground, since a shared fault can point to a common wire.
- Check the sensor reference voltage, ground, and signal against the GM service specification.
A clean harness with a good reference voltage and ground, but a bad signal, points to the sensor. A wiring problem that shows up on the same reference line as other codes points to a shared circuit. A damaged reluctor is the last thing to check, because it needs the engine apart in most cases.
Do not probe a live connector with the engine running unless the service procedure says to. Check the connector pins with the key off, and keep leads clear of moving belts and fans.

Can You Drive With a P0335 Code?
The sources disagree. Carcodefinder says the Duramax can be driven with caution on short trips, while Mechanicbase advises against driving once the code appears, because the engine can stall or behave erratically. When the risk is a stall in traffic, follow the stricter advice.
Mechanicbase warns that a timing belt or chain can be damaged if the fault is ignored, which would mean a far larger repair. As of Nov 2026, that same guide estimates a wiring or connector repair at $50 to $550, a sensor at $100 to $375, and a timing belt or chain at $350 to $1,250.
Schedule the diagnosis soon. If the engine stalls, has trouble restarting, or runs erratically, have it towed rather than driven.
Why Live Sensor Data Matters for P0335
Live crankshaft data is the fastest way to see whether a p0335 duramax signal is steady. A scan tool that shows the sensor reading while the engine cranks can reveal dropouts that a static check misses.
Watch the reading during cranking and again at idle. A signal that drops out, jumps, or disappears at one point in the engine cycle points toward the sensor, its wiring, or the reluctor, and it narrows the search faster than swapping parts.
Compare the reading with the GM specification and note the outside temperature and engine state when the fault appears. Intermittent faults often show up only in certain conditions, and a log of those conditions helps the technician reproduce the fault. A related crankshaft sensor A code is covered in crankshaft sensor A circuit explained.
A p0335 duramax code that clears and returns often signals an intermittent wiring or connector fault. Do not assume the sensor failed until the wiring has been moved and checked under the same conditions. The Chevy version of this crankshaft code is in Chevy crankshaft sensor causes and checks.
Frequently Asked Questions
Is a p0335 duramax code an emergency?
It can become one. Carcodefinder rates it serious, and the symptoms can include stalling and a no-start. Get it diagnosed soon, and tow the truck if it stalls rather than driving on a failing signal.
Will the truck start with P0335?
It may not. Hard starting, long cranking, and a no-start condition are all listed symptoms. A truck that starts sometimes can still have a failing sensor or wiring, so do not assume it is safe to rely on.
Should I replace the crankshaft sensor first?
Not before testing. Wiring faults rank as high likelihood alongside the sensor itself. Check the connector and the reference voltage, ground, and signal first, so you replace a sensor only when the test shows it is out of specification.
Can clearing P0335 fix the problem?
No. Clearing the code turns off the light until the circuit fault returns. The sensor, wiring, or connector is still at fault, so the code will come back and the truck may stall again.
A p0335 duramax code is a circuit question before it is a parts question. Test the wiring and the sensor signal, and avoid driving a truck that may stall, because a timing fault costs far more than a diagnosis.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0306 Duramax Code: Cylinder 6 Misfire Causes and Fixes
LearnP0343 Duramax Code: Camshaft Position Sensor A Circuit High Input
LearnP0303 Duramax Code: Cylinder 3 Misfire Explained
LearnP0307 Duramax Code: Cylinder 7 Misfire Causes and Fixes
LearnP0340 Duramax Code: Camshaft Position Sensor A Circuit Explained
LearnSymptoms of a Bad ECM: What to Check Before Replacing It