Trouble codes › Known problems › Nissan 2.5L crankshaft and camshaft sensor stalling

Nissan 2.5L crankshaft and camshaft sensor stalling

Codes: P0335, P0340, P0339

On Nissans with the 2.5L QR25 four-cylinder (Altima, Sentra and others), crankshaft and camshaft position sensor problems (P0335, P0340) that make the engine stall are well documented, and Nissan ran recall campaigns on some 2002-2006 models.

Can I keep driving? Not if you can avoid it.

These sensors can make the engine stall suddenly, sometimes at speed, and you lose power steering assist and brake assist when it stalls. Get it fixed before relying on the car, and check recalls first.

Which vehicles

Why it happens

The engine computer needs the crankshaft sensor to run the engine. On QR25 engines, the sensors can overheat or develop internal faults, so the signal drops out when hot and the engine stalls, often restarting after cooling down.

Nissan recalled some 2002-2003 vehicles for a solder defect in the sensors (campaign 03V455) and reprogrammed the engine computer on some 2.5L 2002 and 2005-2006 vehicles because the crank sensor can overheat (campaign 07V527).

Symptoms

  • Stalling, often when warm, sometimes restarting after a few minutes
  • Cranks but won't start when hot
  • Check-engine light with P0335, P0340 or both

How to confirm it

  1. Check your VIN at nhtsa.gov/recalls for open campaigns first: recall repairs are free.
  2. Watch engine rpm on a scan tool while cranking: zero rpm points to the crank sensor circuit.
  3. Check the sensor connectors for oil and corrosion.
  4. Note whether it happens mostly when hot, which points to the sensor.

The repair

Recalls, bulletins and warranty programs

Nissan recall 03V455000
About 630,000 vehicles (filed November 2003) with a solder defect in the crank/cam position sensor circuit board; dealers replace the sensors. Coverage depends on VIN.
Nissan recall 07V527000
About 654,000 vehicles with the 2.5L engine (2007), where the crank sensor can overheat; dealers reprogram the engine computer free.

Programs can expire or depend on your VIN. Check nhtsa.gov/recalls and ask a dealer to run your VIN for open recalls, bulletins and extended coverage.

Is this what's happening to yours?

iRepair researches your exact year, engine and codes (service bulletins, recalls and owner reports) and tells you what to check first. Your first 3 questions are free.

Ask iRepair about your vehicle

Sources

Researched October 2026 from service bulletins, recall records and repair-industry reporting. Your vehicle may differ; confirm with your service information and a dealer before paying for major repairs.