Using arduino-uno to upload a bootloader to atmegau4

Hi guys, I made a mistake and ordered a PCBA service with atmegaU4RC which comes without a bootloader. Right now I am trying to upload the atmegaU4 hex file that I have on my pc.

As I understand, the first part should be compiling the ISP code into my arduino uno, I opened the example ISP file from the arduino IDE but when I try to compile it, I get back:


avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = "�"; type = �
    Software Version = i.

Also, assuming that I will manage to compile it. What I plan to do is this:

Arduino pin 13 (SCLK) to atmegau4 pin 9(SCLK)
Arduino pin 12 (MISO) to atmegau4 pin to atmegau4 pin 11(Miso)
Arduino pin 11 (MOSI) to atmegau4 pin 10(Mosi)
Arduino pin 10 (reset) to atmegau4 pin 13 (reset)

And then I'm going to connect 5V to 5V, GND to GND, and reset to gnd through a 10u capacitor just like here:

And then, I am going to try to open AVRDUDE and burn the hex file. Should it work?
Sorry for the weird question, it is the first time I'm doing so and I really don't want to damage my PCB

You're compiling for (and uploading to) an 32U4; you should compile ArduinoISP for an Uno and upload to an Uno. Next you can connect the Uno to your PCB, select Arduino as ISP for the programmer, select e.g. the Leonardo as the board and use tools -> burn bootloader.

Really? Is it possible to just install the leonardo? Shouldn't I first install the actual chip's bootloader?

What do you call the actual chip? The 328P on the Uno or the 32U4 on your PCB?

He is right,you must select the board you wish to bootload not the onboard chip you are essentually bypassing the onboard chip and just using the uno as you would a ch340 chip or a ftdi programer