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.
P0506
The actual engine speed is at least 91 RPM less than the commanded engine speed.
P0507
The actual engine speed is at least 182 RPM greater than the commanded engine speed.