Note : You will need to have the dump from the CAS4 ready. (Read with a suitable programmer )
Also if EWS5 is active you may also need the DME ISN.
Go to coding/programming
Go to key learning
Select option 2
Note the frequency of the key. (Make sure you have the correct key.)
Load the cas4 dump previously saved with your programmer.
Make sure the file is saved as a .bin file.
Now select the key slot you want yo use.
Then press next
It will ask are you sure, press yes.
Now insert key into hitag programmer.
Make sure your key is unlocked and blank.
Press the tick button.
(Our ECU has encrypted data so we need to enter the ISN from the DME.)
Now remove key from hitag programmer and put near the emergency coil, which is near the steering column.
Press next
Do not move key from coil.
Until key learning is complete and you get a message.
Press ok.
Now press exit and test key.