P1540 on BMW vehicles indicates that the engine control module (DME) has detected an implausible or missing signal from the pedal position sensor, which is part of the electronic accelerator pedal assembly. The computer compares the two redundant sensor tracks inside the pedal and flags the code when their voltages do not correlate as expected or when the signal falls outside the valid range.
If the vehicle is in limp mode, drive only to a safe location or workshop at low speed and avoid highways. If the warning light is on but the car drives normally, you can continue driving cautiously, but have the fault diagnosed soon to prevent an unexpected loss of power.
Tools we recommend are in the Auto Veteran shop on Amazon. As an Amazon Associate we earn from qualifying purchases.
Guidance is general and written for BMW vehicles. Exact tests and values vary by model, so confirm the fault before replacing parts.
Get the app
Quick access from your home screen.