Loading code to Leonardo via Uno as ISP

I have a Leonardo board where the USB input got damaget.
So I hooked up an Arduino Uno as programmer. Uploaded the ArduinoISP example to it, and connected the 6 wires from the Leonardo's ISCP connectors to pin 10-13 on the Uno + 5V and GND.

Then I chose Arduino as ISP, and uploaded the boot loader to the Leonardo just fine.
Next I want to upload a program to the Leonardo e.g. just the blink code.
But then it fails and I receive the following error messages:

avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = "´ å"; type = ¸
Software Version = i. ; Hardware Version = .
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude: error: programmer did not respond to command: leave prog mode
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader
avrdude: error: programmer did not respond to command: exit bootloader

I have done it this way in the past with success, but now it does not work.
Ideas on things to try are most welcome

Best regards

What do you mean by "USB input got damaget"?

How are you trying to upload to the Leonardo? Are you trying to do a normal upload over a USB cable plugged directly into the Leonardo, or are you trying to upload to the Leonardo via the ICSP connection to the Uno?

I am trying to upload to the Leonardo via the ISCP connection connected to the Uno

Then you need to do a Sketch > Upload Using Programmer. The output you posted indicates you were trying to do a standard Upload.

1 Like

You solved it, that’s pretty good.
It was exactly what the issue was.
Now it uploads the programs just fine.
I am really happy.
Thanks a lot for your help!

You're welcome. I'm glad to hear it's working now. Enjoy!
Per