← Back to list

98 S10 2.2L Sputtering and Stalling with P0335 and P0342 Codes - Wiring or Sensor Issue?

Model: s10 Fault Code: P0335 Posted: 2015-04-28 20:40

My 1998 Chevrolet S10 2.2L truck has been driving fine for days or even a week at a time, but suddenly it starts sputtering while driving, then appears to stall completely—only to restart after about two minutes. I've used an OBD2 scanner and found fault codes P0335 (Crankshaft Position Sensor A Circuit Malfunction) and P0342 (Camshaft Position Sensor A Circuit Malfunction). I replaced both sensors, and the truck ran smoothly for two days before the issue returned. It also backfired during one incident, and the exhaust was damaged—clothes hanger pieces were left hanging from it after the backfire. The vehicle now stalls intermittently, sometimes only after a few minutes of driving. I'm wondering if this could be due to a shorted ground wire related to the starter or another wiring issue. I've tried cleaning and tightening all connections, but the problem persists. Since replacing both sensors didn't resolve it long-term, I suspect there may be an underlying circuit fault—especially in the wiring harness between the crankshaft position sensor (CKP) and ignition control module (ICM). The yellow wire is typically the CKP ground, and the purple wire carries the CKP signal. I'm looking for advice on what to check next: voltage levels, continuity, grounding issues, or possible shorts in the wiring. Any insight into how to diagnose this would be greatly appreciated—especially since I've already spent a significant amount of money on parts with no lasting fix.

Related fault codes
P0335P0342
Comments (5)
Anonymous 2015-04-29 06:51

There is no OBD2 diagnostic code that directly instructs you to replace the crankshaft or camshaft position sensors. Always scan and post all fault codes you're receiving. Based on your symptoms, a wiring issue—such as loose connections, corrosion, or short circuits—is more likely than faulty sensors.

Anonymous 2015-04-29 19:24

I re-scanned the vehicle and confirmed the exact codes: P0335 and P0342. The problem persists even after sensor replacement, which suggests a deeper issue in the circuit or wiring.

Anonymous 2015-04-30 06:43

Check the entire circuit from the crankshaft position (CKP) sensor to the ignition control module (ICM). Pay close attention to the yellow wire (CKP ground) and purple wire (CKP signal)—both are critical for proper engine operation. Corrosion, loose connections, or damaged insulation can cause intermittent stalling and misfires.

Anonymous 2016-02-03 10:03

I have an identical 1998 S10 with the same symptoms. I replaced both the camshaft position (CMP) sensor and crankshaft position (CPS) sensor, and it ran well during testing until about five minutes into a drive when it suddenly stalled. It restarted and I made it to AutoZone. At that point, no codes were present. The next morning, driving to work, it stalled again—this time without warning. What should I check in the wiring circuit? Are there specific components or connections I need to inspect?

Anonymous 2016-02-04 08:00

Always verify clean, tight electrical connections with proper voltage and ground continuity. Look for open circuits, shorts, or corrosion—especially at sensor connectors and grounding points. A poor ground connection can mimic sensor faults and cause intermittent stalling.