Conditions for Setting the DTC
WARNING: This page is about a different car, the 2004 Pontiac Grand Prix. However, it is still accessible from the selected car via links, so may be relevant.
The PCM detects an open or short to ground on the stop lamp voltage supply circuit when the voltage should be present.