Welcome to Just answer.
There is a 10 minute procedure this has to be done with a GM scan Tool,
There is a 30 minute procedure that doesn't require scanner.
Make sure battery is fully charged before attempting.
30 Minute Learn Procedure
Important: The vehicle learns the Passlock Sensor Data Code and/or password XXXXX the next ignition switch transition from OFF to CRANK. You must turn the ignition OFF before attempting to start the vehicle.
Any more questions just ask!