Uno to upload sketches to atmega 328

Hey so I have a standalone atmega 328P with all the external components to work but I'm using an Arduino duemilanove connected as seen here : to upload sketches to it.

This works, but I'm trying to do the same thing with an Arduino Uno, using the atmega 16u2 instead of the FTDI chip but that doesn't work. Is there anything I'm missing or it can't be done using the arduino Uno? I'm using the exact same connections shown with the duemilanove.


Ok so with a quick search I came up with

I'm doing the exact same but sketches are always failing to upload, giving an error stating that the programmer did not respond.

Is your standalone '328P bootloaded already? Try putting a bootloader on to start. Use Nick Gammon's bootload installer sketch.

Yes, the standalone atmega 328 has the bootloader already. I used the avrisp mkII to burn the bootloader there. And no, I don't want to use the programmer to upload sketches to the standalone chip, I want to use the atmega 16u2 to upload the sketches !

Anything please?

One way to tell if the problem is hardware or software:

Swap the ATmega328P between the UNO and the breadboard. If an upload to the UNO then fails the bootloader on the chip isn't working right and you should re-burn it. If an upload to the UNO works the chip and bootloader are fine and the problem is probably with your breadboard hardware. I would try removing the Reset pull-up on the breadboard because when you have the Reset pin hooked to the Reset on the UNO that already has a pull-up. The double pull-ups might be preventing auto-reset.