You will need a pin code from your original vehicle to program the used ECU…
Find a tool that can program keys to Hyundai which X100Pad2 can do it, because I use it... Or you can try your Autel but, you will need the pin code.....
Plug in your used ECU>>>Select model>>>Select Program Keys>>>Enter your Pin Code and follow the instruction on screen..... (You might need a new Transponder Chip) as your old one is locked to your old ECU...