OBD-II reference

All 9.533 generic OBD-II codes, explained in detail.

Causes, inspection steps and sources — a comprehensive DIY archive. Created and maintained with love for the detail. Good luck and have fun!

Chassis generic / SAE

C0040

Brake Pedal Switch A

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.

SystemChassis
Typegeneric / SAE
GroupC0
Range / number– / 40

Possible causes

  • Brake switch out of adjustment (Mazda SA-062-23) high
  • Water or corrosion in the battery junction box (Ford TSB 22-2044) medium
  • Damaged switch or shift-interlock wiring medium
  • Brake switch failed internally low

Symptoms

  • Stop lamps stay on or do not light
  • Vehicle will not shift out of park
  • Push button start malfunction warning (Mazda)

Inspection / repair

  • Difficulty: easy
  • DIY: possible

What Pro shows you for C0040

Before you go to the garage: roughly what the repair costs, how long it takes and which components are involved.

  • Repair cost (estimate)(visible in Pro mode)
  • Labour time(visible in Pro mode)
  • 1 affected component(visible in Pro mode)
  • 1 warning for driving and inspection(visible in Pro mode)

See repair cost, labour time and components?

One key opens all tools by Fabian Brose.

Already have a key? · What is the workshop key?

Sources

References

How to read OBD-II codes

The first letter names the vehicle system, the second digit distinguishes generic from manufacturer-specific, the remaining digits group fault area and number.

PPowertrain: engine, transmission, emissions
BBody: chassis trim, comfort, interior
CChassis: suspension, brakes, steering
UNetwork: CAN, control modules, communication