What P0340 means on this engine
Cam sensor.
The camshaft sensor tells the computer which cylinder is next to fire. Its signal is missing or doesn't line up with the engine. It's usually the sensor or its wiring, and less often a timing problem behind it.
- The usual suspects
- Sensor or wiring.
- What you'll notice
- Long cranking before the engine starts, rough running, less power, sometimes stalling.
Can you keep driving?
On this engine: you can drive gently, but get it checked this week.
Usually yes, for a short time. The engine can run without this signal but starts poorly and may stall, so fix it soon.
The part behind it: Crankshaft and camshaft sensors
- What it does
- Tell the computer engine speed and position.
- Why it fails
- Sensor or wiring faults.
- Other signs you'll notice
- Stalls, hard start, no start.
In the full guide for this engine
- How to check it yourself, step by step
- What fixes it, and who should fix it: you, a shop or a mechanic
- Where the part sits on a 3D engine you can turn
- The exact part to ask for
Know this about your engine
The one rule for this engine: check the oil level between changes, especially on 2011–2015 engines. Early FB engines had a piston-ring problem that made some burn a lot of oil; Subaru issued bulletins and a class settlement covered ring/short-block repairs for 8 years or 100,000 miles on many of them.
Cars with this engine
- Subaru Crosstrek 2013–2027 · 2.0 (FB20); 2.5 on some 2021+.
- Subaru Forester 2011–2027 · 2.5 non-turbo. Turbo XT models use other engines.
- Subaru Impreza 2012–2027 · 2.0 (FB20); 2.5 on some 2024+.
- Subaru Legacy 2013–2025 · 2.5 non-turbo.
- Subaru Outback 2013–2027 · 2.5 non-turbo.