P0345 Camshaft Position Sensor A Circuit (Bank 2)
How the System Works & When the Code Sets
The cam sensor reads teeth or lobes on a trigger wheel fixed to the camshaft. The most common Hall-effect sensors send square-wave pulses to the computer.
The computer compares these pulses with the crankshaft position (CKP) sensor signal to know which cylinder is on its compression stroke, so it can time the injectors and spark, and on variable valve timing (VVT) systems it also measures the cam angle. Engines with two banks have at least one sensor per bank, and there can be as many as four.
The computer sets P0345 when it sees crankshaft pulses while the Bank 2 sensor pulses are missing or incomplete. On GM V6 engines, for example, it is set if cranking continues for more than 4 seconds without a cam pulse, or if the pulses are missing in 800 out of every 1000 revolutions.
Symptoms
- The engine cranks longer than usual before starting, because the computer needs extra time to work out the cylinder order.
- Hard starting or occasional no-start, often worse when the engine is hot.
- Sudden stalling at idle or while driving, then the engine restarts after it cools a little.
- Weak torque and acceleration because the computer disables variable valve timing (VVT) control on Bank 2.
- Rough idle or misfire, especially on the Bank 2 cylinders.
- Check engine light on, sometimes with no other symptom.
Most Common Causes
- The Bank 2 camshaft sensor itself has failed, usually from heat; it may work with the engine cold and fail once it warms up.
- Corroded or loose connector, or oil leaking from the sensor O-ring or the valve cover into the connector.
- Broken signal wire or a wire rubbing on the engine, or a short in the sensor supply wire (5 or 12 volts depending on design), which may be shared by more than one sensor.
- A mechanical timing problem: a loose timing chain or one that has jumped a tooth, a failed cam phaser, or a damaged trigger wheel on the camshaft.
- Low or dirty engine oil that upsets the cam phasers, so the signal appears out of its expected position.
- Electrical interference from failed alternator diodes that distorts the signal on some cars.
- Rarely: a fault in the engine computer.
Diagnostic Steps
- Identify Bank 2 from the engine's cylinder numbering diagram: it is the bank that does not contain cylinder 1. Do not identify it by driver or passenger side, because this differs between manufacturers.
- Read all stored codes and the freeze frame data. P0340 together with P0345 points to a shared cause such as the sensor supply, the crankshaft sensor or timing, while P0018 suggests a mechanical timing offset on Bank 2.
- Check the oil level and condition, then visually inspect the sensor and its connector for oil inside the connector or loose pins.
- With the key on, measure supply voltage and ground at the sensor connector. The reference voltage should match the manufacturer's design (usually 5 or 12 volts) and the voltage drop on the ground should be minimal.
- View the signal on an oscilloscope while cranking: a healthy Hall sensor gives a clean square wave between zero and roughly the reference voltage. It is best to display both cam signals together with the crank signal to spot any shift in synchronisation.
- If both bank sensors have the same part number, swap them: if the code moves to P0340, the sensor is confirmed faulty.
- Check signal wire continuity to the computer and make sure there is no short to ground or battery voltage, while moving the harness to reveal an intermittent open.
- If the signal and electrics are good and the code returns, check the timing marks, chain slack and cam phaser condition, and test alternator AC ripple.
How to Fix It
- Clean or repair the connector, and deal with the source of the oil by replacing the sensor O-ring or the valve cover gasket.
- Replace the Bank 2 sensor with a genuine or specification-matched part, with a new seal.
- Repair a broken or chafed signal or supply wire with a soldered joint and suitable heat-resistant insulation instead of temporary connectors.
- Repair the timing when a mechanical problem is proven: replace the chain, tensioners and guides or the cam phaser according to the test results.
- After the repair: clear the code and monitor cranking time and cam angle in live data, and perform any relearn the manufacturer requires.
Notes by Vehicle Make
- Nissan/Infiniti: cam sensors on VQ engines such as the VQ35DE (Altima, Maxima, Murano, 350Z, G35) are known to fail, usually showing up as long cranking or stalling. On the FX45 with the VK45DE engine, cases have been documented of stalling when hot and restarting once the engine cools.
- Ford: on the 4.6 and 5.4 liter three-valve (3V) V8 in the F-150, Expedition and Mustang GT, P0345 is often linked to the cam phasers and timing chain, so if the code returns after replacing the sensor, check the synchronisation of both bank signals. Bank 2 on a Ford V8 is the cylinder 5 to 8 bank.
- Chevrolet/GMC/Cadillac (GM): on V6 engines with four sensors, such as the 3.0 liter (LF1), GM names this code 'intake camshaft sensor circuit – Bank 2', while P0390 covers the exhaust cam on the same bank. GM documentation notes that cranking may be longer when the code is present.
- Chery/Jetour: the Chery and Jetour engines common in the region are inline engines, so there is no Bank 2 in the usual sense. If a generic scan tool shows P0345 on them, verify the definition with a tool that supports the make, and watch the intake and exhaust cam sensor data before buying any part.
Common Mistakes
- Replacing the Bank 1 sensor by mistake because the technician assumed Bank 2 is the driver's side without checking cylinder numbering.
- Replacing the sensor two or three times while the signal is being spoiled by oil inside the connector or a chafed wire.
- Skipping a timing check when P0345 appears with P0018 or with a rattling noise from the front of the engine, and only replacing electrical parts.
- Buying a cheap sensor that does not match the original part number, so the code returns within days or the cam angle reading becomes inaccurate.
- Clearing the code and declaring the repair successful without a hot-engine start test, even though many cam sensors fail only when hot.
Severity & Repair Priority
High. The engine may keep running using the crankshaft sensor and the other bank's sensor, but a sudden stall or a no-start far from home is a real possibility, and ignoring a mechanical timing cause can end in greater damage. Have it checked within days.
P0345 FAQ
What is the difference between P0345 and P0340?
Both are for camshaft sensor A, but P0340 is for Bank 1 (the cylinder 1 bank) and P0345 is for Bank 2. If both appear together, a shared cause such as the sensor supply or timing is more likely than two sensors failing at the same time.
Does the letter A always mean the intake camshaft?
On most engines yes, but some manufacturers define A and B differently, so check the service manual before identifying the sensor.
Why did P0345 appear on a four-cylinder car?
An inline engine normally has no Bank 2, so the definition may be manufacturer-specific, or a generic scan tool may be showing a standard name that does not match the actual sensor. The answer is to read the code with a tool that supports the make and watch live sensor data.