P0340 GMC: Diagnose a Camshaft Sensor Circuit Fault
20 min read · by Nicole Bennett · Last updated: November 25, 2026
The p0340 gmc trouble code means the engine computer has detected a problem with the camshaft position sensor circuit. The fault can involve a failed camshaft position (CMP) sensor, damaged wiring, a poor electrical connection, a missing reference voltage, or a problem with the camshaft reluctor wheel. It does not automatically mean the sensor needs replacement.
GMC vehicles use camshaft position information to help the engine control module (ECM) coordinate fuel injection and ignition timing. When the expected signal disappears or becomes unreliable, the engine computer may have difficulty determining the position of the camshaft relative to the crankshaft. Depending on the engine, this can cause extended cranking, rough running, reduced performance, or stalling.
The correct repair depends on the GMC model, engine, and electrical system design. A scanner, digital multimeter, and vehicle-specific wiring diagram can help separate a defective sensor from a circuit problem. Start by recording the fault information before clearing anything or purchasing replacement parts.
What P0340 Means on a GMC
P0340 is a generic SAE powertrain diagnostic trouble code for a Camshaft Position Sensor Circuit malfunction. It indicates that the engine computer is not receiving the expected camshaft position signal. The exact monitoring conditions and electrical specifications depend on the GMC engine and model year.
The code begins with the letter P, which identifies a powertrain fault. Its second character is 0, identifying it as a generic SAE code rather than a manufacturer-specific P1xxx code. The remaining digits identify the particular circuit or system being monitored. In this case, the affected system is the camshaft position sensor circuit.
How the camshaft position sensor works
The camshaft position sensor monitors the rotational position of the camshaft. It sends electrical signals to the ECM as the camshaft turns. The computer compares this information with crankshaft position sensor signals to determine engine position and coordinate important engine operations.
On the documented 2009 GMC Sierra 4.8L application, the CMP sensor is a digital-output device that detects changes in magnetic flux as teeth on a four-tooth reluctor wheel pass the sensor. The resulting signal consists of electrical pulses. The ECM monitors these pulses to determine whether the expected camshaft information is available.
That particular GMC application uses three electrical circuits: a 5-volt reference, a low reference, and a signal circuit. Other GMC engines can use different sensor arrangements, reference voltages, connector configurations, and diagnostic procedures. Do not assume that every GMC uses the same sensor design or terminal layout.
Why the ECM stores P0340
The ECM expects camshaft position pulses under specified operating conditions. If those pulses are missing, interrupted, or outside the expected monitoring criteria, it can store P0340 and illuminate the check engine light.
GM’s OBD diagnostic documentation identifies P0340 as a Bank 1 Sensor A camshaft position circuit fault. The actual monitoring strategy checks whether the expected camshaft sensor pulses arrive during particular engine operating conditions. This is different from a camshaft-to-crankshaft correlation fault. For example, P0016 identifies a camshaft and crankshaft position correlation problem rather than simply an absent CMP signal. P0340 Toyota Prius walks through the same code on another vehicle, which helps if the usual fix does not work.
For vehicle-specific information, consult the applicable GMC service procedure rather than relying on a universal sensor location or pinout. The documented GMC Sierra P0340 diagnostic procedure provides a useful example of the electrical checks required for one specific engine.

Symptoms of a GMC P0340 Fault
A GMC with P0340 may have anything from a check engine light with no noticeable driving symptoms to serious starting and running problems. The symptoms depend on whether the signal is completely missing or intermittently unreliable, as well as how the particular engine responds to the fault.
A sensor circuit that fails completely may prevent the ECM from obtaining the information needed to synchronize engine operation. An intermittent connection can produce unpredictable problems that appear during starting, acceleration, or normal driving.
Common warning signs
- Check engine light: The malfunction indicator lamp illuminates after the computer detects a qualifying fault. A stored P0340 code confirms that the monitoring system detected a problem, not that the sensor itself is necessarily defective.
- Long cranking: The starter may turn the engine for longer than usual before it starts because the ECM is not receiving the expected camshaft position information.
- Hard starting: A weak or intermittent CMP signal can make starting inconsistent, particularly when the engine is hot or the electrical connection is affected by vibration.
- Engine stalling: A signal that disappears while the engine is operating can interrupt synchronization. GMC service information for certain Acadia applications identifies stalling as a possible result of an intermittent CMP signal.
- Rough idle: Incorrect or missing position information can affect how the engine computer coordinates fuel injection and ignition.
- Hesitation during acceleration: An unreliable signal can contribute to inconsistent engine response, especially if the fault appears intermittently.
- Reduced engine performance: Some engines may use a backup operating strategy when camshaft information is unavailable. The driver may notice reduced power or changes in engine response.
- Failure to start: If the engine computer cannot obtain the required position information during starting, the engine may crank without starting.
Symptoms can change with operating conditions
A GMC that starts normally in the morning but stalls after warming up may have an intermittent electrical fault. Heat can affect a failing sensor or an already damaged connection. Engine vibration can also move a loose connector or damaged wire enough to interrupt the signal.
A vehicle with a completely failed sensor may behave differently from one with a partially damaged signal wire. The first may have consistent starting trouble, while the second may operate normally for several trips before the check engine light returns.
Pay attention to other stored codes. A P0340 appearing with a crankshaft position sensor code or a 5-volt reference circuit code may indicate a shared electrical problem. Replacing the camshaft sensor without investigating those related faults can lead to an unsuccessful repair.
Common Causes of P0340 on GMC Vehicles
The most common diagnostic areas are the CMP sensor, its wiring, electrical connections, reference supply, and the mechanical components that produce the sensor signal. The code identifies a circuit problem, so each part of the signal path should be checked before a replacement decision is made.
1. Failed camshaft position sensor
An internally damaged CMP sensor may stop producing the required electrical pulses. Electronic components can deteriorate with age, heat, vibration, and exposure to engine contamination. A sensor can also work intermittently before failing completely.
A defective sensor becomes more likely when its reference and ground circuits are correct but its output does not respond as expected. However, the sensor should not be condemned until its connector, wiring, installation, and mechanical target have been examined.
2. Damaged wiring or a poor connector
The CMP wiring carries the reference voltage, ground, and position signal between the sensor and ECM. A broken conductor, corroded terminal, loose connector, or damaged insulation can interrupt one of these circuits.
Look for connector locks that do not hold securely, backed-out terminals, moisture, corrosion, and wires rubbing against nearby engine components. Previous repairs, aftermarket electrical equipment, and engine work can also leave wiring incorrectly routed or connected.
3. Missing or incorrect reference voltage
Some GMC applications supply the CMP sensor with a regulated 5-volt reference. An open circuit, short to ground, damaged connector, or problem elsewhere on a shared reference circuit can prevent the sensor from operating correctly.
A reference voltage that is outside the specified range needs further circuit testing. It does not automatically mean the ECM is defective. A shorted sensor or another component sharing the reference supply can also affect the reading.
4. Poor low-reference connection
The low-reference circuit provides the sensor’s electrical return path. Excessive resistance, a broken wire, or a poor ground connection can prevent the sensor from generating a reliable output.
GMC’s documented 2009 Sierra 4.8L diagnostic procedure checks for less than 1 ohm between the CMP low-reference circuit and ground. This is an application-specific test specification, not a universal value for every GMC engine.
5. Damaged camshaft reluctor wheel
The reluctor wheel provides the magnetic changes that allow the CMP sensor to produce position pulses. Damaged teeth, incorrect installation, excessive movement, or foreign material between the sensor and target can interfere with the signal.
GMC service information for certain Sierra applications specifically identifies reluctor-wheel damage, improper installation, and excessive looseness or endplay as possible causes of camshaft position signal problems. Mechanical inspection may therefore be necessary when the electrical tests do not identify the fault.
6. Incorrect sensor installation
A sensor that is not fully seated or has a damaged sealing O-ring may not be positioned correctly. Contamination around the mounting area can also interfere with proper installation. Inspect the sensor body and mounting surface when the applicable service procedure permits removal.
7. ECM or shared circuit problems
An ECM fault is possible, but it should be considered only after the sensor, reference supply, low-reference circuit, signal wiring, and related components have passed the required tests. Module replacement may also require programming and setup procedures.
Other diagnostic codes can help identify shared electrical problems. A reference voltage fault or crankshaft position sensor fault deserves attention before assuming the CMP sensor is responsible. The same code can behave differently on other vehicles, so it helps to compare it with P0340 Dodge Grand Caravan.
| Possible cause | Typical diagnostic finding | Recommended investigation |
|---|---|---|
| Failed CMP sensor | Missing or irregular sensor output | Verify supply, ground, and sensor response |
| Damaged signal wire | Signal does not reach the ECM correctly | Check continuity and shorts using the correct wiring diagram |
| Reference circuit fault | Reference voltage outside specification | Check for opens, shorts, and shared circuit problems |
| Poor ground connection | Excessive resistance in low-reference circuit | Test the low-reference path |
| Damaged reluctor wheel | Incorrect or missing magnetic pulses | Inspect the mechanical target and installation |
| ECM problem | Circuit tests pass but the control module does not process the signal correctly | Complete manufacturer-specific module tests |
How to Diagnose P0340 With an OBD2 Scanner
A good diagnosis begins with the complete fault information, followed by live sensor data and electrical checks. A basic code reader can identify P0340, but a scanner with manufacturer-specific live data is more useful because it may display camshaft position counters and additional engine information.
The OBD-II diagnostic connector is normally located beneath the driver-side dashboard, within reach of the steering column. Connect a compatible scanner with the ignition in the appropriate position for the vehicle and read all available powertrain codes.
Step 1: Record all stored and pending codes
Read stored, pending, and permanent codes before clearing anything. Record whether P0340 appears by itself or alongside codes for the crankshaft position sensor, reference voltage, camshaft actuator, or camshaft-to-crankshaft correlation.
A pending code means the computer has detected a fault that has not yet met all the conditions for confirmation. A stored or confirmed code indicates that the fault has met the applicable setting criteria. A permanent code cannot simply be erased with a scanner. It clears after the underlying problem is repaired and the relevant monitor passes.
Step 2: Check the freeze-frame information
Freeze-frame data records operating conditions associated with a qualifying emissions-related fault. Depending on the vehicle and scanner, it can include engine RPM, coolant temperature, calculated load, vehicle speed, and system voltage.
Use this information to determine when the failure occurred. A fault recorded during cranking suggests a different diagnostic direction from one recorded while driving at highway speed. If the engine was hot when P0340 appeared, an intermittent heat-related sensor or wiring fault deserves attention.
Step 3: Inspect the CMP sensor and connector
With the ignition off, inspect the sensor connector and accessible wiring. Look for damaged insulation, oil contamination, corrosion, bent pins, loose terminals, and broken connector locks. Check whether the harness is stretched, trapped, or rubbing against nearby components.
Follow the wiring diagram for the exact GMC engine. Do not guess the sensor location, connector terminal numbers, or wire colors. Different engines can have different arrangements, even within the same GMC model range.
Step 4: Monitor camshaft position live data
If the scanner supports GMC-enhanced data, locate the CMP Active Counter, Cam Signal Present, or the corresponding camshaft position parameter. Start the engine if it is safe to do so and observe whether the counter increases as the engine runs.
GMC’s 2010 Sierra 5.3L diagnostic procedure specifically calls for checking the Camshaft Position Active Counter while the engine idles. The counter should increment. If it remains stationary, the next step is circuit testing rather than automatically replacing the sensor.
A scan tool that displays only generic engine RPM may not provide enough information to confirm CMP operation. In that situation, use a compatible enhanced scanner or the manufacturer-specific electrical diagnostic procedure.
Step 5: Check reference voltage and ground
A digital multimeter can help test the sensor circuits. For the documented 2009 GMC Sierra 4.8L procedure, the specified reference voltage is 4.8-5.2 volts. The low-reference circuit should measure less than 1 ohm to ground under the specified test conditions.
These figures apply to that particular service procedure. Confirm the correct terminal identification and test conditions for the vehicle being diagnosed. A reading outside the specified range can indicate an open, short, high resistance, or another problem in the circuit.
Step 6: Check the signal circuit
Once the supply and low-reference circuits have been checked, investigate the signal wire. Look for an open conductor, high resistance, short to ground, or short to voltage. A wiring fault can prevent a working sensor from communicating with the ECM.
Some GMC procedures use a fused jumper and scan-tool data to verify whether the ECM recognizes a changing signal. These tests must follow the exact manufacturer procedure and terminal identification. Incorrectly connecting a jumper to an unknown terminal can damage electronic components.
Step 7: Check sensor operation and mechanical condition
If the electrical circuits pass, test the sensor according to the applicable service instructions. Certain GMC procedures use a flat steel object passed across the sensor tip while observing the CMP Active Counter. The counter should increment with each pass on the documented application.
If the sensor responds correctly but the installed system still loses its signal, inspect the reluctor wheel and sensor installation. A damaged target, incorrect sensor seating, damaged O-ring, or foreign material can prevent reliable operation.
Useful diagnostic readings
| Test or parameter | Reference or expected result | What it indicates |
|---|---|---|
| CMP 5V reference, documented 2009 Sierra 4.8L | 4.8-5.2 volts | Checks the reference supply |
| CMP low reference, documented 2009 Sierra 4.8L | Less than 1 ohm to ground | Checks the low-reference path |
| CMP Active Counter, documented 2010 Sierra 5.3L | Should increment at idle | Confirms that the scan tool is receiving camshaft activity data |
| Battery at rest | About 12.6 volts when healthy and fully charged | Provides general battery condition information |
| Charging system, engine running | About 13.5-14.7 volts | Provides general charging-system information |
The battery and charging readings are general electrical checks, not P0340 pass-or-fail specifications. Low system voltage can complicate electronic diagnosis, so check battery condition if the scanner shows unusual voltage or several unrelated electrical codes are present.
Tip: Save the original codes and freeze-frame data before disconnecting the battery or clearing faults. Use the exact GMC wiring diagram and service specifications for your engine. Never apply battery voltage to a sensor terminal or use an unfused jumper unless the manufacturer procedure explicitly calls for that test. Owners of this model also ask about P0308 GMC.

Is It Safe to Drive a GMC With P0340?
Driving with P0340 is not always immediately dangerous, but it can become unsafe if the engine stalls, struggles to start, or loses power. The decision depends on the symptoms and whether the fault is intermittent or continuously present.
A GMC with a steady check engine light and normal engine operation may be driven a short distance to a repair facility if there are no other warning signs. However, a vehicle that stalls, misfires severely, or has difficulty maintaining engine speed should not be driven normally.
When limited driving may be possible
If the engine starts normally, idles smoothly, responds normally, and has no additional warning lights, a short trip to a nearby repair facility may be reasonable. Avoid towing heavy loads, hard acceleration, high speeds, and unnecessary trips until the cause has been identified.
Keep in mind that an intermittent camshaft position signal can disappear without much warning. A vehicle that appears normal in a driveway may still stall during a longer trip. Do not treat the absence of symptoms as proof that the fault has disappeared.
When to stop driving
- The engine stalls while driving or repeatedly fails to restart.
- The engine runs extremely rough or has severe misfires.
- The vehicle loses power to the point that it cannot maintain a safe speed.
- The check engine light flashes, indicating an active misfire that can damage the catalytic converter.
- Other critical warning lights or abnormal engine noises appear.
A flashing check engine light requires immediate attention. Reduce engine load and arrange prompt diagnosis. If the engine stalls or cannot maintain safe operation, pull over somewhere safe and arrange towing rather than attempting to continue the journey.
The most important risk is unexpected loss of engine power. This can be particularly dangerous in traffic, at intersections, and when merging onto a highway. An intermittent sensor circuit should be repaired before it creates a more serious driving problem. P0302 GMC covers another issue owners of this vehicle run into.
P0340 Repair Options and Cost Factors
The repair for P0340 depends on which part of the camshaft position signal system has failed. A sensor replacement may solve the problem when the sensor itself is defective, but wiring repairs, connector replacement, or mechanical inspection may be necessary in other cases.
There is no reliable single repair price for every GMC. The vehicle model, engine configuration, component accessibility, diagnostic time, labor rate, and parts required all affect the final bill.
Camshaft position sensor replacement
If testing confirms that the sensor is defective and its electrical supply and signal wiring are correct, replacement may be appropriate. Labor depends on sensor accessibility. Some engines allow relatively direct access, while others require additional components to be removed.
The technician should verify the correct replacement application using the vehicle identification number, engine information, and service data. The new sensor must be installed correctly, with attention to its mounting surface and sealing O-ring where applicable.
Wiring and connector repairs
A damaged wire or corroded connector may require terminal repair, connector replacement, or harness repair. The work can involve more diagnostic time than expected because the fault may be hidden inside insulation or occur only when the harness moves.
A repair should restore the original electrical connection and protect the wiring from heat, vibration, moisture, and abrasion. Poorly routed replacement wiring can cause the same fault to return.
Reluctor wheel or mechanical repairs
A damaged reluctor wheel or mechanical alignment problem can require more extensive work. Access may involve removing engine covers or other components. The amount of labor depends on the engine design and the location of the damaged part.
Mechanical repairs should not be attempted solely because P0340 appears. Confirm the signal problem and inspect the relevant components using the manufacturer’s diagnostic instructions first.
ECM diagnosis or replacement
ECM replacement is generally a last-resort option after the sensor and its circuits have passed the required tests. A replacement control module may require programming, configuration, security procedures, and additional setup work.
What determines the final repair bill?
- Diagnostic labor: Time needed to read codes, review freeze-frame data, test live signals, and isolate the failed circuit.
- Parts required: A sensor, connector, wiring section, reluctor component, or control module may be necessary.
- Engine accessibility: The time required to reach the sensor varies between GMC models and engines.
- Shop labor rate: Independent repair shops and dealerships may charge different labor rates.
- Programming and setup: Some electronic control module repairs require additional procedures.
- Additional faults: Related crankshaft sensor, wiring, or mechanical problems can increase the scope of the repair.
DIY owners with suitable tools may be able to replace an accessible sensor after confirming the fault. However, electrical circuit diagnosis requires the correct wiring diagram, multimeter, and service specifications. If testing involves ECM terminals, complex harness repairs, or engine timing components, professional diagnosis is often the better option.
Preventing P0340 From Returning
Preventing another P0340 fault starts with proper electrical connections and correct sensor installation. Regular inspections can identify damaged wiring or connector problems before they interrupt the camshaft position signal.
Although a sensor can fail without warning, many circuit problems develop through corrosion, vibration, heat exposure, or previous repair work. Paying attention to these areas can reduce the chance of recurring faults.
Inspect wiring after engine work
After repairs involving the cylinder head, timing components, engine harness, or nearby accessories, check that connectors are fully seated and wiring is routed correctly. A harness trapped beneath a bracket or stretched across a hot surface can develop an intermittent fault.
Protect connectors from contamination
Inspect accessible electrical connectors for corrosion, moisture, and damaged seals. Do not force a connector into place or pull on its wires when disconnecting it. Follow the correct service procedure when cleaning or repairing electrical terminals.
Use the correct replacement parts and installation method
A replacement sensor must match the exact GMC engine application. Installation should follow the specified mounting, sealing, and connector procedures. Incorrect installation can create an air or oil leak, damage the sensor, or prevent it from reading the reluctor wheel correctly.
Verify the repair rather than simply clearing the code
After the repair, clear codes only when appropriate and perform the manufacturer’s diagnostic verification procedure. Check the CMP Active Counter or other available live data, confirm that the check engine light does not return, and repeat the operating conditions recorded in the original freeze-frame information where safe.
A permanent P0340 code may remain visible until the relevant monitor completes successfully. This does not necessarily mean the repair failed. The computer must complete its own verification before removing a permanent emissions-related code. For the equipment used in these checks, see Best Code Readers Without Subscription.
GM’s OBD engine diagnostic documentation illustrates how the ECM monitors camshaft position signals and distinguishes circuit faults from camshaft-to-crankshaft correlation problems. Understanding that difference helps prevent unnecessary sensor replacement.
Frequently Asked Questions
Can P0340 cause a GMC to fail an emissions inspection?
Yes. A confirmed P0340 can illuminate the malfunction indicator lamp and cause an OBD-based emissions inspection failure. A vehicle may also fail if required readiness monitors are incomplete, even after the original fault has been repaired.
Will disconnecting the battery permanently remove P0340?
No. Disconnecting the battery does not repair the underlying circuit problem and may reset some learned information or readiness monitors. Permanent diagnostic trouble codes also require the appropriate onboard monitor to pass before they clear.
Is P0340 the same as P0341?
No. P0340 identifies a camshaft position sensor circuit malfunction, while P0341 generally identifies a camshaft position sensor performance or range problem. The precise diagnostic criteria and naming depend on the manufacturer’s implementation.
Can a GMC have P0340 without turning on the check engine light?
Yes. A pending P0340 may be recorded before the fault meets the conditions needed to illuminate the malfunction indicator lamp. Some scanners can display pending diagnostic codes even when the dashboard warning light is off.
Can P0340 appear together with P0016?
Yes. P0340 and P0016 can appear together when the computer detects both a camshaft position circuit problem and a camshaft-to-crankshaft correlation problem. The two codes require separate diagnostic checks, and a missing CMP signal should be investigated before drawing conclusions about mechanical timing.
The GMC P0340 code identifies a camshaft position sensor circuit problem, not necessarily a failed sensor. Check the connector, wiring, reference voltage, ground, signal activity, and reluctor wheel before choosing a repair. A scanner with GMC-specific live data and the correct engine service procedure can help identify the actual cause and prevent unnecessary parts replacement.
-
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
LearnP0328 GMC: Diagnose Knock Sensor Circuit Problems and Restore Engine Protection
LearnP0308 GMC: Find the Cause of a Cylinder 8 Misfire
LearnP0306 GMC: Diagnose Cylinder 6 Misfires and Find the Right Repair
LearnP0301 GMC: Find the Cylinder 1 Misfire and Fix It
LearnP0332 GMC: Diagnose the Bank 2 Knock Sensor Problem
LearnP0729 Duramax Code: Gear 6 Incorrect Ratio