stk500_getsync(): not in sync: resp=0x00 leonardo

Try this tutorial Gammon Forum : Electronics : Microprocessors : Atmega bootloader programmer