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: use good fuel and drive it properly warm now and then. It's a simple, reliable engine, but its very high compression and direct injection make it sensitive to poor fuel and to endless short cold trips, which build carbon on the intake valves.
Cars with this engine
- Mazda CX-3 2016–2021 · 2.0 Skyactiv.
- Mazda CX-3 2016–2025 · 1.5 or 2.0 Skyactiv versions.
- Mazda CX-30 2020–2025 · 2.0 Skyactiv-G versions (the 2.5 has its own guide).
- Mazda CX-5 2013–2016 · 2.0 versions (base FWD; others have a 2.5).
- Mazda MX-5 Miata 2016–2025 · 2.0 (US); 1.5 or 2.0 elsewhere.
- Mazda Mazda2 2015–2025 · 1.5 Skyactiv (US Mazda2 2011–2014 used an older 1.5).
- Mazda Mazda3 2012–2018 · 2.0 Skyactiv versions (others have a 2.5).
- Mazda Mazda3 2014–2018 · 1.5 or 2.0 Skyactiv versions.
- Scion iA 2016–2016 · 1.5 (Mazda-built).
- Toyota Yaris 2017–2020 · US Yaris iA / Yaris sedan and hatchback built by Mazda (1.5).