Car shuts off while driving and malfunction light comes on
Have the codes read.
There might not be any “real” codes. If the car is stalling all of the warning lights come on automatically. @Mitza can you provide us some more information? How many miles on your car, are there any particular conditions that happen when the car shuts off (ie always raining, when you’re making a turn, etc), is your car up to date on required maintenance?
The problem might be caused by a faulty Crankshaft Position sensor.
This sensor informs the computer whether or not the crankshaft is rotating.
If the computer loses the signal from this sensor, the computer thinks the crankshaft isn’t rotating. The computer then see’s no reason to operate the fuel and ignition systems and the engine shuts off.