Conditions for Setting the DTC
WARNING: This page is about a different car, the 2007 GMC Yukon XL and 2007 Chevrolet Suburban. However, it is still accessible from the selected car via links, so may be relevant.
The TCM detects the brake switch circuit is open 8 times during acceleration cycles and the brake switch voltage is high for 900 seconds (15 minutes) or greater.