Conditions for Setting the DTC
WARNING: This page is about a different car, the 2019 Chevrolet Malibu. However, it is still accessible from the selected car via links, so may be relevant.
P0335
No signal from the crank sensor for more than 1.4 seconds.
P0336
The signal from the crank sensor is invalid for more than 1.4 seconds.
OR
15 crankshaft sensor resync events occur in less than 10 seconds.