Conditions for Setting the DTC
WARNING: This page is about a different car, the 2007 Cadillac DTS. However, it is still accessible from the selected car via links, so may be relevant.
The ECM detects a higher than normal voltage signal on the stop lamp switch signal circuit when the serial data message from the BCM indicates the brakes are either applied or not applied.