P0340 – Camshaft Position Sensor “A” Circuit Malfunction (GM)
| Code | Fault Location | Probable Cause |
|---|---|---|
| P0340 | Camshaft Position Sensor “A” Circuit Malfunction (Buy Part On Amazon) | Wiring, CMP sensor, ECM |
Where is the Camshaft position sensor? See our guide to the Camshaft position sensor – what it does, where it sits on the engine and how it fails.
We recommend Torque Pro
Table of Contents
- What Does Code P0340 Mean?
- Where is the P0340 sensor located?
- What are the common causes of code P0340?
- What are the symptoms of code P0340?
- Get Help with P0340
What Does Code P0340 Mean?
Special note on trouble code P0340 and GM vehicles: While DTC P0340 is a generic code that affects all OBD II compliant vehicles, the most common causes of this code sometimes vary between most vehicle makes. This article will therefore deal with code P0340 as it applies specifically to GM vehicles.
OBD II fault code P0340 is a generic trouble code that is defined as “Camshaft position (CMP) sensor A – Bank 1 – circuit malfunction” and is set when the PCM (Powertrain Control Module) detects a failure, defect, or malfunction in the control, signal, or reference voltage circuit(s) of the position sensor that is associated with the intake camshaft on Bank 1. Note that “Bank 1” refers to the bank of cylinders on V-type engines that contains cylinder #1.
While several details of the ignition systems on GM vehicles differ somewhat from the ignition systems of most other vehicle brands, GM ignition systems are not so radically different from other systems that they are problematic, or difficult to diagnose.
However, for a GM engine to start, it needs input data from both the crankshaft position sensor and the camshaft position sensor to determine the position of piston #1 relative to the position of the engine valves in cylinder #1.
What the PCM is looking for before engine start-up is verification that piston #1 is near the top of its compression stroke and that the intake valve(s) on cylinder #1 is about to close. In practice, the PCM uses this information to calculate the appropriate moment to a) deliver the ignition spark and b), to open injector #1 to inject fuel into cylinder #1. Therefore, to do this correctly and consistently, the positions of the crankshaft and camshaft must correlate exactly to a) ensure peak engine performance, and b) to reduce exhaust emissions by ensuring proper combustion of the air/fuel mixture.
We need not delve into the technical details of each type of camshaft position sensor in current use here, beyond saying that GM vehicles are typically fitted with Hall-effect sensors, which create electrical signals when a rotating reluctor ring or protrusion on the camshaft passes in front of the sensing element. In terms of operation, the camshaft position sensor is supplied with a 5-volt reference voltage that switches between “ON” and “OFF” states as the camshaft rotates.
Thus, by monitoring the state of the signal, the PCM can correlate the crankshaft’s position with that of the camshaft as a means to verify that the engine’s valve, ignition, and injection timing are all within a specified range before starting the engine. Therefore, if the position of the intake camshaft does not correlate with any other timing aspect because the PCM does not receive an input from the camshaft position sensor, or the PCM receives an implausible signal from the sensor, the PCM will recognize that it cannot control the fuel delivery and ignition systems effectively.
When this happens, the PCM on most GM applications will set code P0340 within a vehicle specific, predetermined time after an engine start-up attempt or within about 1.5 seconds after the engine has started, which brings us to-
What causes code P0340 on GM vehicles?
With the possible exceptions of abnormally low battery voltages that often set P0340 on GM vehicles made between 2002 and 2004, and the use of most aftermarket brands of camshaft position sensors on almost all GM vehicles, there is no other single cause of code P0340 or set of circumstances that will cause this code to set more often on GM vehicles than on any other brand of vehicle.
Thus, when a defective camshaft position sensor is suspected, the wisest course of action would be to replace it with an OEM part. See the section on Common Causes for more details on other possible causes of code P0340 on GM vehicles.
Where is the P0340 sensor located?
This image shows the location of the camshaft position senor on a Chevy Trailblazer. Note though that the location of this sensor varies greatly between different GM vehicles, so be sure to consult reliable service information for the affected vehicle to locate and identify the camshaft position sensor correctly.
What are the common causes of code P0340?
The most common causes of code P0340 on GM vehicles are largely similar across all GM applications, and could include one or more of the following, but note that possible causes are listed here in their order of prevalence, with the most prevalent causes listed first-
- Burnt, damaged, shorted, disconnected, or corroded wiring in the sensors’ reference and/or signal circuits
- Failed or failing camshaft position sensor, or the use of an unsuitable aftermarket sensor
- Failures, defects, or malfunctions in the variable valve or camshaft systems that prevent the camshaft from returning to its base position after engine shutdown. Note that this is more likely to be caused by low oil pressure and/or old, dirty, or degraded engine oil causing variable valve timing components to bind or stick than by actual failures of variable valve timing system components
- Damaged or worn valve timing components such as worn timing belts/chains, worn or damaged timing chain guides, or worn timing sprockets
- Failed or failing crankshaft position sensor, but note that this will usually be indicated by one or more dedicated crankshaft position sensor trouble codes
- Failed or failing PCM, but note that since this a rare event, the fault must be sought elsewhere before any control module is reprogrammed or replaced
What are the symptoms of code P0340?
Common symptoms of code P0340 on GM vehicles are largely similar across all GM vehicles and could include one or more of the following. Note, however, that depending on the vehicle and the nature of the problem, the severity of one or more symptoms listed here can vary substantially between applications-
- Stored trouble code and illuminated warning light
- Depending on the nature of the problem, multiple additional codes may be present along with P0340
- The engine may start, but shuts off again almost immediately
- The engine may only start after extended periods of cranking
- If the engine starts and runs, the idling quality may be poor, and persistent misfires may be present
- Varying degrees of power loss may be present- if the engine starts and runs at all
- The engine may stall repeatedly and/or unexpectedly at low engine speeds
- Fuel consumption may increase noticeably
Help Us Help You
Please comment below describing your issue as well as the specifics of your vehicle (make, model, year, miles, and engine). A mechanic reads these, and other owners often recognise the symptoms straight away.
Reading P0340 on your car
A basic adapter will show you P0340, but not the ABS, airbag or transmission modules, and not the bidirectional tests that confirm which part has actually failed rather than which circuit reported it.

To begin with the vehicle died suddenly like the key was shut off. It would crank just fine but never restarted. I used my OBD II tool and scanned but there were no codes. I repeated this with a friends scanner and confirmed no code. I tested fuel pressure first and it was on the mark. So, I replaced the ICM and it started right up and is running fine. But I drove it and a warning light came on. ‘Service Engine Soon’. I scanned for codes again. This time I got a code, P0340. This code states “Cam Position Sensor”. I checked the wires and the connections. All look great and the pins are shiny like new with dielectric grease. I read aftermarket sensors can cause this. The recommendation for top quality is Delphi so I ordered one. It changed nothing. I had also read this ICM is the Cam Position Sensor too on this model and engine. Then I searched more to find that a Crankshaft Position Sensor can cause this code because it works together with the ICM/Cam sensor to send readings to the PCM. So I replaced the Crankcase Position Sensor with a Delphi also. No change at all. It starts great and runs great at any speed under any conditions. But still P0340 and the dash light Service Engine Soon. NO code when it died. ICM installed and runs fine but now have that code P0340 that I can clear but it repeatedly comes right back. New Crankshaft sensor and still have P0340. Can’t blame anything else and never had a code saying Crankshaft sensor either. Does not make sense because it is running just great. Anyone ever have this?
Thanks,
Jack Foster
Camshaft position sensor location one person says front and one person says back of motor. Where is the right Camshaft position sensor location?
Hello Sam.It is on the front of the motor, just above the crankshaft/harmonic balancer