Not sure of how to program an Arduino UNO R3 with a Pocket AVR Programmer

I have an Arduino project, and I have to flash the firmware of my Arduino UNO R3 16u2. I was unable to put it in DFU Mode, so i was recommended to use a programmer to flash it.

I bought a Pocket AVR Programmer (https://www.sparkfun.com/products/9825), and I'm not sure how to use it properly. I need to upload a .hex file to my Arduino, but with the programmer I'm not sure how to do it.

I appreciate some help or any hint!

Which part is unclear? You plug the programmer 6-pin cable into the 6-pin programming header adjacent to the 16u2 chip (top left in picture).

Then you upload the hex file you want.

how i upload it?

drkmai:
how i upload it?

Running the avrdude utility directly from the command line is the most straightforward way.

pico:

drkmai:
how i upload it?

Running the avrdude utility directly from the command line is the most straightforward way.

I don't know how to do it :confused:

drkmai:
I don't know how to do it :confused:

Google works.

http://www.ladyada.net/learn/avr/avrdude.html