Au7o mascotAu7o
Known IssuesGet Started
  1. Au7o
  2. /
  3. Known Issues
  4. /
  5. DTC Codes
  6. /
  7. P0340
  8. /
  9. GMC
GMC · Engine · Critical code

P0340 on GMC: How to Diagnose & Fix

Camshaft Position Sensor Circuit Malfunction

1 GMC model · 1 documented issue · 1 critical · $80-$300 repair

Share:@au7o.io

P0340 by GMC model

  • 2002-2009Envoy1
  • FAQ

P0340 on other makes

  • Acura
  • Chevrolet
  • Dodge
  • Ford
  • Honda
  • Hyundai
  • Infiniti
  • Jeep
  • Kia
  • Mazda
  • Mitsubishi
  • Nissan
Diagnose my car
Back to top

P0340 by GMC model

  • 2002-2009Envoy1
  • FAQ

P0340 on GMC by model: symptoms, diagnosis and fix

Community reported
540 owners
Link to this issueError Codes:P0335P0340P0345P0336

The 4.2L LL8 inline-6 engine in the 2002-2009 GMC Envoy is notorious for crankshaft position sensor failures that cause intermittent stalling and no-start conditions. The sensor is located on the side of the engine block and is exposed to heat soak from the exhaust manifold, accelerating its failure. A failing sensor causes the PCM to lose track of crank position, resulting in the engine cutting out without warning — often at highway speed. The issue tends to be intermittent at first, making diagnosis challenging. Replacement is straightforward and the part is inexpensive.

Common Symptoms

  • Engine stalls without warning at any speed
  • Hard start or no-start after hot soak
  • Check engine light with code P0335 or P0336
  • Engine cranks but won't fire when hot
  • Intermittent stall that restarts after cooling down
  • Rough idle followed by stall

How to Fix

Replace crankshaft position sensor (ACDelco 213-3521 or Delphi SS11378). Clear codes and test. If stalling continues, inspect camshaft position sensor (ACDelco 213-3522) as secondary cause. Verify PCM software is current — older PCM calibrations make the engine overly sensitive to sensor signal dropout.

What you need to fix it

Only diagnosis- and fitment-reviewed repair parts are linked here.

  • Engine Crankshaft Position Sensor
    Cross-ref235-1078

    Fitment confirmed against the ShowMeTheParts catalog for this vehicle's year and engine.

    eBayAmazon

As an Amazon Associate, we earn from qualifying purchases; other part links may also earn au7o a commission. Confirm fitment by VIN before buying.

Typical repair cost:$80 - $300
Sources for this issue (1)
  • NHTSA Campaign 01V126 - Envoy Control-Arm Bracketsrecall

Research This Issue

Based on 540 owner reports

GoogleRedditYouTubeNHTSA
Community Reported
High Confidence540 owner reportsLast reported by owners Feb 2026Reviewed Feb 2026
All GMC Envoy known issues →

P0340 code reference

General diagnostic-code context. The code alone does not confirm a cause for your vehicle; use the applicable issue card and its sources.

Frequently asked questions

What does P0340 mean on a GMC?

P0340 stands for "Camshaft Position Sensor Circuit Malfunction." This code means the engine computer lost or received an erratic signal from the camshaft position sensor. That sensor tells the computer the exact position and speed of the camshaft, which it uses together with the crankshaft sensor to time fuel injection and spark precisely. When the camshaft signal is missing, intermittent, or out of range, the computer sets P0340. Symptoms often include hard starting, stalling, rough running, or a no-start because the engine can't time itself correctly. On GMC it is documented across 1 model: Envoy.

What are the most common causes of P0340?

The most common causes of P0340 are: Failed camshaft position sensor, Corroded or loose sensor connector, Damaged or shorted sensor wiring, Bad reluctor/tone ring on the camshaft, Loose timing chain/belt or jumped timing, Metal debris or oil contamination on the sensor tip, Poor sensor power or ground supply, Faulty PCM/ECM (rare). The specific cause varies by vehicle.

How much does it cost to fix P0340 on a GMC?

Published repair estimates on GMC range from $80 to $300 depending on the model and root cause. If an issue mentions a recall or campaign, check your VIN with the manufacturer or NHTSA and confirm eligibility and coverage with a dealer.

Related codes

  • P0341 · Camshaft Position Sensor Circuit Range/Performance (Bank 1)
  • P0344 · Camshaft Position Sensor 'A' Circuit Intermittent (Bank 1 or Single Sensor)
  • P0345 · Camshaft Position Sensor Circuit Malfunction (Bank 2)
  • P0346 · Camshaft Position Sensor A Circuit Range/Performance (Bank 2)
  • 00522 · Engine Coolant Temperature Sensor (G62): Open Circuit / Short to Positive (B+)
  • 16500 · Engine Coolant Temp. Sensor (G62): Implausible Signal
  • 16502 · Engine Coolant Temperature Sensor (G62): Signal too High
  • 16566 · Mass Air Flow Sensor Signal Too Low (VAG)

Looking for P0340 on a different make?

View P0340 across all makes →
🔧
A mechanic who knows YOUR exact car
Answers tuned to your year, make, model & trim — not generic advice. Save your garage so it always has the right context.
Get notified about P0340 fixes on GMC
We add new causes, fixes and affected GMC models for P0340 regularly — drop your email and we'll keep you posted. You can also diagnose your own car free.

Content compiled with AI assistance using NHTSA complaints, TSBs, and owner reports. May contain errors. Always verify with your vehicle's service manual.

Known IssuesMotorcycle IssuesDTC LookupDrivePricingAboutTermsPrivacyCookiesConsentData rightsCopyrightFeedback
Share:@au7o.io

Vehicle data and repair guidance on this site are compiled with AI assistance and may contain errors. Always verify with your service manual or a qualified mechanic.

Data protection representation

DataRep representative in the United KingdomDataRep representative in the European Union
Au7o · 2026
Built for DIY mechanics. Privacy-first.
Explore free Hub demo