Conditions for Setting the DTC
WARNING: This page is about a different car, the 2017 Cadillac ATS. However, it is still accessible from the selected car via links, so may be relevant.
The ECM detects the Park/Neutral signal is less than 1 V, when the transmission internal mode switch reports a drive range.