P1345 Mazda: Find the Camshaft Sensor Circuit Fault
17 min read · by Nicole Bennett · Last updated: November 25, 2026
The p1345 mazda trouble code indicates a manufacturer-specific camshaft position sensor signal or circuit problem on documented Mazda engine systems. The PCM may not receive the expected signal from the camshaft position (CMP) sensor. Depending on the engine and model year, this can result in hard starting, rough running, stalling, or a no-start condition. A defective sensor is one possibility, but damaged wiring, poor connector contact, and grounding problems can produce the same code.
P1345 does not have one universal meaning across all vehicle manufacturers. Mazda service information identifies it with a CMP sensor circuit malfunction on its ZM engine system, while other Mazda applications describe it as a missing camshaft position or SGC signal. The exact diagnostic procedure depends on the vehicle’s engine and PCM configuration. Replacing the sensor without checking its electrical circuit can lead to unnecessary repairs.
What P1345 Means on a Mazda
P1345 is a manufacturer-specific powertrain diagnostic trouble code. On documented Mazda applications, it identifies a missing or malfunctioning camshaft position sensor signal. The PCM uses this signal to determine camshaft position and coordinate engine operation with other timing information.
The generic SAE code structure helps explain why the exact definition matters. The first character P identifies the powertrain system. The second character 1 indicates a manufacturer-specific definition. Therefore, a P1345 displayed by a scanner should be interpreted using Mazda service information rather than a generic description intended for another manufacturer.
Mazda’s ZM engine service manual describes P1345 as a camshaft position sensor circuit malfunction. The PCM monitors the sensor input and determines that a fault exists when it does not receive the expected pulse signal during 12 crankshaft rotations. The manual classifies this as a continuous monitor fault and states that freeze-frame data is available.

Another documented application is the 1999-2001 Mazda MX-5. Its service manual describes P1345 as a missing SGC signal from the camshaft position sensor while the engine rotates. The troubleshooting procedure checks the sensor, connector, wiring, and PCM connections. This illustrates why the vehicle identification number, model year, and engine should be confirmed before applying a repair procedure.
The camshaft position sensor monitors the position of the camshaft as the engine runs. The PCM uses this information alongside crankshaft position data to manage ignition and fuel injection timing. If the expected signal disappears or becomes unreliable, the computer may have difficulty determining the correct engine position.
P1345 does not automatically mean that the camshaft itself is damaged. It also does not prove that the timing belt or timing chain has jumped. The fault may be electrical, mechanical, or related to the sensor’s signal generation. The appropriate diagnosis must separate these possibilities.
Symptoms of a Mazda P1345 Fault
The symptoms depend on how much camshaft position information the PCM loses and whether the problem is constant or intermittent. Some vehicles may continue running with reduced reliability, while others may become difficult to start or stop unexpectedly.
- Check engine light: The malfunction indicator lamp may illuminate when the PCM detects the missing or incorrect CMP signal.
- Extended cranking: The starter may turn the engine for longer than normal before combustion begins.
- Hard starting: The engine may require several attempts to start, especially when the sensor signal is inconsistent.
- Engine stalling: An intermittent loss of the camshaft signal can interrupt normal engine operation.
- Rough idle: Incorrect or unreliable engine position information can affect engine management and produce uneven running.
- Reduced acceleration: The engine may respond poorly to throttle input if the PCM cannot maintain normal control.
- Intermittent no-start: A failing sensor or loose connection may work sometimes and fail during other starting attempts.
- Reduced fuel economy: Poor engine operation can increase fuel consumption, although this symptom alone does not establish a CMP fault.
Not every Mazda with P1345 will experience all these problems. A vehicle with a signal that disappears briefly may continue running normally for several trips before the problem becomes more obvious. A completely failed sensor or disconnected circuit can create a more immediate starting problem.
How to distinguish an intermittent fault
Pay attention to when the symptoms occur. If the engine starts normally when cold but struggles after reaching operating temperature, an intermittent electrical or sensor problem deserves investigation. Heat can affect damaged wiring, internal sensor components, and weak electrical connections.
Also record whether the engine stalls while idling, accelerating, or slowing down. A fault that appears during vibration or movement may point toward a loose connector or damaged harness. These observations help a technician reproduce the problem instead of replacing parts based only on the stored code.
Check whether other powertrain codes are stored. A crankshaft position sensor code, ignition-related code, or additional engine timing fault may provide useful diagnostic context. Multiple codes do not necessarily mean multiple failed parts. They can result from one underlying electrical or timing problem. For a comparison on a different vehicle, see P1345 Toyota.
Common Causes of P1345 on Mazda Vehicles
The most common diagnostic starting points are the CMP sensor, its electrical connector, power supply, signal wiring, and ground. Mazda’s documented ZM troubleshooting procedure specifically identifies these areas rather than treating the sensor as the only possible failure.

1. Faulty camshaft position sensor
The CMP sensor may stop generating a reliable signal because of internal electrical failure or deterioration. Its signal can become intermittent before the component stops working completely. This can cause hard starting, stalling, or a stored P1345 code.
A sensor should be tested according to the specifications for the particular Mazda engine. Sensor designs differ, so resistance checks or voltage expectations from one engine should not automatically be applied to another. Some systems require a waveform test rather than a simple resistance measurement.
2. Damaged wiring or an open circuit
A broken wire can interrupt the signal between the sensor and PCM. Insulation damage, previous repairs, heat exposure, corrosion, and vibration can all contribute to wiring problems. Mazda’s ZM manual specifically identifies open circuits in the CMP power, signal, and ground connections.
A wire may also have internal damage that is not visible from the outside. The engine might run normally until movement causes the damaged conductor to lose electrical contact. A technician can check circuit continuity and inspect the harness using the applicable wiring diagram.
3. Shorted sensor wiring
A signal wire that contacts ground can prevent the PCM from receiving the expected information. Mazda’s ZM diagnostic documentation specifically lists short-to-ground conditions in the sensor power and signal circuits. Damaged insulation and incorrectly routed wiring are possible sources.
This is one reason replacing the CMP sensor without checking the harness may not solve the problem. A new sensor cannot correct a shorted wire or a missing power supply.
4. Corroded or loose electrical connector
A loose terminal, corrosion, moisture intrusion, or damaged connector housing can interrupt the sensor circuit. Mazda’s factory troubleshooting instructions specifically call for checking damaged and pulled-out terminals as well as poor electrical connections.
A connector can look normal from the outside while a terminal has lost its ability to grip the mating pin. Intermittent faults may become more frequent as the engine vibrates. Connector inspection should include the terminal condition and proper locking mechanism.
5. Poor ground connection
A weak ground can interfere with sensor operation and signal transmission. The ZM service procedure identifies an open circuit between CMP sensor terminal C and body ground as a possible cause. A ground problem should be checked before condemning the sensor or PCM.
6. PCM or mechanical timing problems
PCM failure is possible but should be considered only after the relevant sensor, power, signal, ground, and connector checks have been completed. The PCM is an expensive component to replace without evidence of an internal fault.
Mechanical timing problems can also deserve attention when other symptoms or diagnostic results support that possibility. A damaged timing belt, stretched timing chain, or incorrect camshaft timing may affect the relationship between engine position signals. However, P1345 alone does not establish that the timing system has failed.
| Possible cause | Possible symptom | Diagnostic check |
|---|---|---|
| Failed CMP sensor | Hard starting or no-start | Sensor output and waveform |
| Open signal wire | Intermittent or missing signal | Circuit continuity |
| Short to ground | Persistent sensor signal fault | Wiring insulation and circuit testing |
| Loose or corroded connector | Intermittent stalling or starting trouble | Terminal and connector inspection |
| Poor sensor ground | Unstable sensor operation | Ground continuity and voltage checks |
| Mechanical timing fault | Rough running or difficult starting | Mechanical timing inspection |
| PCM malfunction | Persistent signal monitoring fault | PCM circuit and control-system diagnosis |
How to Diagnose Mazda P1345 With an OBD2 Scanner
An OBD2 scanner can help establish when P1345 occurs and whether other faults are involved. However, reading the code is only the first step. A proper diagnosis combines scanner information with electrical testing and the correct Mazda service procedure.
Step 1: Confirm the vehicle and retrieve all codes
Connect the scanner to the 16-pin OBD-II diagnostic port, usually located beneath the driver’s dashboard. Turn the ignition on and establish communication with the PCM. Retrieve stored, pending, and permanent powertrain codes where the scanner supports those functions.
Record the exact code and scanner description. Confirm the Mazda model year, engine, and vehicle identification number before using a repair procedure. A basic scanner may display only P1345, while a more capable diagnostic tool may provide additional manufacturer-specific information.
Step 2: Save freeze-frame information
Freeze-frame data records operating conditions when a fault is detected. Depending on the vehicle and scanner, available information may include engine RPM, coolant temperature, vehicle speed, calculated load, and other operating parameters.
Save this information before clearing any codes. For example, a fault recorded during engine starting may require a different diagnostic approach from one that appears after the engine has warmed up. The ZM factory manual confirms that freeze-frame data is available for its documented P1345 application.
Step 3: Check live engine data
Look for camshaft position or synchronization data if the scanner supports the relevant Mazda PIDs. Compare available camshaft and crankshaft information while the engine is cranking or running, following the manufacturer’s test conditions.
A missing, frozen, or erratic CMP reading can help identify a signal problem. However, not every scanner displays the same manufacturer-specific data. An unavailable PID does not prove that the sensor has failed.
Check engine RPM during cranking as well. If the scanner shows no RPM, investigate the crankshaft position signal and related circuits rather than assuming the CMP sensor is the only problem. The crankshaft and camshaft signals provide different but related engine position information.
Step 4: Inspect the sensor connector and wiring
With the ignition switched off, inspect the accessible CMP sensor connector and wiring for corrosion, loose connections, damaged insulation, and pulled-out terminals. Look for signs of heat damage or previous wiring repairs. Use the correct Mazda wiring diagram to identify the applicable terminals.
The Mazda ZM procedure checks the power supply at terminal A, the signal circuit at terminal B, and the ground at terminal C. These terminal references apply to the documented ZM system and should not be assumed to match every Mazda engine.
Step 5: Perform electrical testing
A digital multimeter can help check the sensor’s power supply, wiring continuity, and ground circuit. The ZM service procedure checks for battery-positive voltage at terminal A with the ignition on and engine off. It also checks the signal circuit at terminal B and continuity between terminal C and body ground.
The next diagnostic stage involves checking the CMP sensor’s output. Mazda’s ZM procedure calls for checking the pulsation signal at the applicable PCM connection while cranking the engine. A suitable oscilloscope can provide a clearer view of the signal waveform and reveal intermittent dropouts.
Do not apply generic voltage or resistance specifications to an unidentified Mazda sensor. Follow the correct wiring diagram and test specifications. Incorrect probing can damage terminals or electronic components.
Step 6: Check related mechanical conditions
If the sensor and its electrical circuits pass testing, investigate mechanical timing and signal-generation components where appropriate. Check for other timing-related trouble codes and symptoms. A professional may need to compare camshaft and crankshaft waveforms or inspect the timing mechanism using the vehicle-specific procedure.
Step 7: Verify the repair
After repairing the identified fault, reconnect the relevant components and clear codes using an appropriate scanner. Start the engine and check whether P1345 returns. Recheck live data and confirm that the camshaft position signal is stable.
A successful repair should restore normal starting and running behavior. Complete the applicable Mazda after-repair procedure and check for pending or stored faults. Permanent OBD-II codes may remain until the PCM confirms that the relevant monitor has passed.
Tip: Save the original P1345 code, freeze-frame data, and related codes before disconnecting the battery or clearing memory. Never replace a camshaft position sensor solely because its name appears in the code description. Check the connector, power, signal, ground, and applicable Mazda wiring diagram first. Keep hands, tools, and test leads away from moving belts, pulleys, and cooling fans during engine-running tests. For the same trouble code on a different platform, read P1345 GMC.
For model-specific diagnostic information, consult the Mazda ZM engine control service manual. Its P1345 section provides the documented detection conditions, possible causes, connector checks, and electrical testing sequence. The 1999-2001 Mazda MX-5 service manual provides a separate example of Mazda’s SGC signal troubleshooting procedure.
Is It Safe to Drive With P1345?
Driving with P1345 is not recommended until the cause has been identified. A Mazda that starts and runs normally may still have an intermittent sensor or wiring problem that could become worse during a trip. An engine that stalls unexpectedly can create a serious traffic hazard.
The severity depends on the symptoms and the reliability of the camshaft signal. A steady check engine light with normal engine operation is less urgent than a vehicle that repeatedly stalls, misfires, or struggles to start. Even when the vehicle appears to operate normally, the fault should be diagnosed promptly.
When to stop driving
- Stop in a safe location if the engine stalls repeatedly.
- Do not continue driving if the engine becomes difficult to control or loses power unexpectedly.
- Arrange professional assistance if the vehicle will not start reliably.
- If the check engine light flashes, reduce engine load and stop driving as soon as it is safe. A flashing light indicates an active misfire that can damage the catalytic converter.
- Arrange towing if the engine repeatedly cuts out or the vehicle cannot be operated safely.
If the check engine light stays on and the engine runs smoothly, a short trip to a nearby repair facility may be possible. However, this is not a guarantee that the vehicle will remain operational. Avoid long journeys, heavy acceleration, and situations where an unexpected stall could create additional danger.
A no-start condition requires diagnosis rather than repeated cranking attempts. Excessive cranking can place unnecessary strain on the starter and battery. A technician can determine whether the missing CMP signal is preventing normal engine starting or whether another fault is also present.
Repair Options and Cost Factors for Mazda P1345
The repair cost for P1345 depends on which component or circuit has failed. A sensor replacement may be relatively straightforward on some Mazda engines, while an intermittent wiring fault or PCM-related problem can require substantially more diagnostic time.
A repair estimate should separate diagnostic labor, replacement parts, installation time, and verification. The presence of P1345 alone is not enough to establish a reliable repair price.
Camshaft position sensor replacement
If testing confirms a defective CMP sensor, replacing it may resolve the fault. The parts cost depends on the engine, sensor design, and component quality. Labor varies according to accessibility and whether other components must be removed to reach the sensor.
Some Mazda applications use a distributor assembly as part of the camshaft position sensing arrangement. The documented 1999-2001 MX-5 service procedure identifies distributor replacement as a possible repair when the camshaft position sensing function fails. This should not be generalized to other Mazda engines.
Connector and wiring repairs
A damaged terminal or corroded connector may require cleaning, terminal repair, or connector replacement. A broken wire may require harness repair or replacement depending on the damage and location. Labor depends on how difficult it is to access the affected section.
Electrical repairs can require more diagnostic time than replacing a sensor. The technician may need to trace several connections, check continuity, inspect grounding points, and reproduce an intermittent problem before confirming the faulty section.
Timing system repairs
If testing reveals a mechanical timing problem, the repair may involve inspection or replacement of timing components. The labor requirement depends on the engine design and the extent of the damage. A timing belt or chain problem can involve significantly more work than a simple sensor replacement.
PCM diagnosis or replacement
A PCM should be considered only after the sensor and its circuits have passed the relevant checks. Module diagnosis may require specialized equipment, manufacturer-specific software, and additional programming or configuration work. Replacement can involve immobilizer or vehicle security-system considerations depending on the Mazda application.
DIY versus professional repair
A mechanically experienced owner may be able to inspect an accessible connector or identify visibly damaged wiring. However, diagnosing the signal itself can require a multimeter, oscilloscope, correct wiring diagrams, and knowledge of Mazda electrical systems.
A repair shop may charge more for labor, but it can provide access to manufacturer-specific diagnostic information and testing equipment. This is particularly useful when the fault is intermittent or the engine uses a distributor-based camshaft sensing arrangement.
Before approving a repair, ask the technician what test confirmed the failed component. A useful estimate should explain whether the sensor, connector, wiring, timing mechanism, or PCM was identified as the actual problem. It should also include a post-repair scan and operating check. For tools that help with this kind of work, check Best Diagnostic Software for Mazda.
Frequently Asked Questions
Can a Mazda P1345 code appear without a pending code?
Yes. Mazda’s documented ZM engine service manual states that P1345 does not have a pending-code function in that application. The PCM can store the confirmed fault and provide freeze-frame information. Other Mazda systems may have different monitoring behavior.
Does clearing P1345 permanently remove the problem?
No. Clearing the code removes stored diagnostic information but does not repair a defective sensor or damaged circuit. If the original condition remains, the PCM may detect it again. Permanent codes also require the relevant onboard monitor to pass before they clear automatically.
Can a generic OBD2 scanner read Mazda P1345?
Most OBD-II scanners capable of reading powertrain codes can retrieve a P1345 code. However, access to Mazda-specific sensor data, freeze-frame parameters, enhanced diagnostics, and special tests depends on the scanner’s capabilities and vehicle compatibility.
Does P1345 always mean the same thing on every Mazda?
No. Mazda engine systems can use different diagnostic descriptions and procedures. Documented applications describe the fault as a CMP sensor circuit malfunction or a missing CMP/SGC signal. Always verify the definition against the service information for the exact engine and model year.
Can a weak battery cause Mazda P1345?
Low system voltage can interfere with electronic control and make diagnosis more complicated, but it is not listed as a primary P1345 cause in the documented ZM troubleshooting procedure. Check battery condition and charging performance when broader electrical symptoms are present. A healthy fully charged battery typically measures about 12.6 volts at rest, while a running charging system commonly measures approximately 13.5 to 14.7 volts.
The Mazda P1345 code points to a camshaft position sensor signal or circuit problem, but it does not automatically mean the sensor needs replacement. Check the freeze-frame data, connector, power supply, signal wiring, and ground before choosing a repair. Confirm the exact Mazda engine-specific procedure and verify the fault has been corrected with a follow-up scan.
-
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
LearnP1345 Code: Camshaft and Crankshaft Signal Out of Step
LearnP242F Mazda: Diagnose DPF Restriction and Restore Engine Performance
LearnP2237 Mazda: Diagnose the Air-Fuel Ratio Sensor Circuit
LearnP2138 Mazda: Causes, Symptoms, Diagnosis and Repair
LearnP2135 Mazda: Find the Throttle Sensor Fault and Restore Engine Response
LearnP2288 Code: Causes, Symptoms, Diagnosis, and Repairs