The capacitor shouldn't be necessary on the Leonardo because it doesn't have an auto-reset circuit that you need to disable. The native USB boards have a different mechanism for triggering the reset during uploads (serial connection at 1200 baud).
I'm not sure if the boot loader's load will work because you're doing it between two different microcontrollers. You are trying to load the 32u4 boot loader into a 328P and I think that is not possible. I'm not an expert on this, but I've already tried it and I was not able to, it only worked when I did it among the same microcontrollers.
In any case, add a 1uF capacitor between reset and gnd, if it does not work, replace it with a 10uF capacitor. If it does not work with any, this operation will not be possible.
You definitely can load the bootloader to a 328P using the leonardo as the programmer, just have to select the proper target in the IDE to get the correct bootloader. You will need to take the connections from the ISP header on the leonardo, except for the reset, because the ISP lines are seperate from the I/O ports on the leonardo. I use a tinkerkit lcd module, which is 32u4 based, as a programmer.
Salikas_91:
I'm not sure if the boot loader's load will work because you're doing it between two different microcontrollers. You are trying to load the 32u4 boot loader into a 328P and I think that is not possible. I'm not an expert on this, but I've already tried it and I was not able to, it only worked when I did it among the same microcontrollers.
In any case, add a 1uF capacitor between reset and gnd, if it does not work, replace it with a 10uF capacitor. If it does not work with any, this operation will not be possible.
I tried it with my nano, and i got the same results. I am also specifying in the tools tab that I am burning the bootloader for the Uno.
Never had to use a capacitor on my leonardo clone.
Only problem I ever had was with an older version of linux, that appeared to be resetting the usb port after the bootloader burning process was complete. Bootloader still burnt successfully, but the board reset after completion when the usb power was cut.
Is the uno the first board you have tried to burn a bootloader to, or have you used the leonardo as a programmer successfully in the past?
I noticed in he arduinoISP example that on line 81 uncommenting that line will allow the programmer to use 11-13 as the pins instaid of mosi, miso, and sck.
The connections are:
leonardo uno
10 icsp_reset
11 icsp_mosi
12 icsp_miso
13 icsp_sck
Just to make sure, although I doubt you would make a mistake like this, pin 10 (reset) on the leonardo goes to either the ISP header reset pin on the uno, or to RESET on the uno, NOT to pin 10 on the uno.
david_2018:
Could you possibly post a picture of your wiring?
Just to make sure, although I doubt you would make a mistake like this, pin 10 (reset) on the leonardo goes to either the ISP header reset pin on the uno, or to RESET on the uno, NOT to pin 10 on the uno.
David, I think you aren't reading the comments completely.
Allspice101:
David, I think you aren't reading the comments completely.
I see that I did mis-read your earlier comment.
Something I haven't seen mentioned, how are you powering the uno? Do you have the power and ground lines connected between the leonardo and uno? Normally I just run a cable from the leonardo ISP header to the ISP header on the uno, with the reset line broken out on the leonardo end and connected to the appropriate output pin. That way, I have the leonardo powering the uno and don't need any other power source for the uno.