It's programmed into the ecu. Then when all the required conditions are met the stop start function will work. Any dme related fault codes stored will stop the function working. Other things that affect it are things like temperature, battery charge, etc