C0040
C0040 fault code
What does C0040 mean?
C0040 reports a fault on brake pedal switch A, the first of two switch signals that tell the brake, engine and transmission modules the pedal is pressed. Mazda defines C0040:24 as a circuit malfunction of brake switch signal no. 1; on the 2024 CX-90 it appears with P0504 and a push button start warning, and service alert SA-062-23 cures it by moving the switch one adjustment notch. Ford sees C0040 with P0504 on 2020-2022 F-Super Duty trucks that cannot be moved out of park, pointing to corrosion inside the battery junction box or a damaged shift-interlock circuit. Typical effects are stop lamps that stay lit (Ford TSB 22-2044), a start system warning and a shift interlock that will not release. Older GM vehicles use C0040 for a wheel speed sensor circuit in their own scheme.
This is a standard OBD-II fault code. Some makers have their own code with a more exact meaning. Causes may differ slightly depending on the make, model and engine.
What the code is made of
- C
- Chassis: brakes, steering, suspension
- 0
- Standard code: means the same for every make
- 040
- Number of the specific fault
Can I drive?
Usually yes, but have it checked at the next service.
Possible causes
- Brake switch out of adjustment (Mazda SA-062-23)
- Water or corrosion in the battery junction box (Ford TSB 22-2044)
- Damaged switch or shift-interlock wiring
- Brake switch failed internally
How often each cause occurs depends on the make, model and engine.
Most common symptoms
- Stop lamps stay on or do not light
- Vehicle will not shift out of park
- Push button start malfunction warning (Mazda)
What to check and do
- Labour
- 0.3-1 h
- Difficulty
- easy, can be done at home
Often appears together with:
What to do now
- Write down all the codes, not just this one: one fault often sets several codes.
- Do not clear the code before writing it down: the garage sees from it and the stored data when and how the fault appeared.
- If the code comes back after clearing, the cause is still there: check it instead of clearing again.
- If a red light is on, the engine runs unevenly or the car goes into limp mode, do not drive on.
Maker code meanings may differ. The information is general and does not replace professional diagnostics.
Look up another code
Check a listing
Paste an ss.lv listing link and we will check the car's price, mileage and possible risks.
VIN check
Check the car's factory data by VIN.