Error flashing Arduinome *serial number* via DFU

Hi there,

This is my first post and my first project with an Arduino, and I am building an Arduinome based on the original guide by flipmu (http://flipmu.com/work/arduinome/instructions/uno-atmega-8u2-serial-number/).

I am on OSX 10.10 have an Uno R3 and I have followed all instructions for creating and programming the firmware, entering DFU mode, etc, and everything works perfectly until the last step when I get this message after entering $ sudo make dfu in Terminal:

Creating load file for Flash: Arduino-usbserial.hex
avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock Arduino-usbserial.elf Arduino-usbserial.hex
dfu-programmer at90usb82 erase
dfu-programmer: no device present.
make: *** [dfu] Error 1

I think this means an unsuccessful flash, and when I open serialosc.maxpat my board doesn't show up. Can anyone offer any insight as to what might be the problem? Thanks a lot!

-Andy

Also, I should note I am using DFU-programmer 0.6.2, which supports the at90usb82. However, the chip on my UNO is an ATmega16u2...could this somehow be the problem? If it is, what's the fix? I am very new to all of this so please help! I appreciate any advice, thank you!

And I might have actually been using incorrect nomenclature here, but I guess what I am really having trouble with is flashing the ATMega16u2 with the serial number, basically making a modified arduino usb serial file. Not the firmware. I think I can just upload the firmware via the IDE. The process
i am having trouble with is in the link above. Thanks, hope someone can give me a clue.

Just change the chip to "atmega16u2", version 0.6.2 supports it.

Thank you oqibidipo! How/where do I do that?

Figured it out! I had to edit the line in the makefile that specified the chip from "at90usb82" to "atmega16u2"...definitely kind of confusing, but thanks to your help I was at least able to understand what I needed to do, after that I just had to figure out where. Everything looks like it's going as planned now.