Help restoring Uno R2 firmware!

I'm new to the Arduino world, I just got my Uno in the mail earlier today. I managed to get the drivers and software installed without any issues, and I was even able to write up a simple program to blink the LED on pin 13 and upload it without any problems at all. However, when I wrote up a second simple program a while later to control several external LED's on a breadboard, I started running into problems after I tried uploading it. It kept failing with the message 'Programmer not responding." When I looked at the board, the TX LED was on, and refused to turn off, no matter how many times I pressed the reset button or unplugged/plugged in the uno.

In addition, the arduino seemed to be sending constant interrupts to the computer through usb, and the arduino program, as well as my usb mouse and keyboard would stop functioning until I unplugged the uno. I did some research online and saw that others with somewhat similar issues had solved them through updating the firmware. I followed the directions as best I could to update the firmware, but after using dmf-programmer to erase the old firmware, I am unable to reload the updated one. The message I get says "Error parsing the line. Something went wrong with creating the memory image."

I don't know where to go from here.The only instructions I was able to find were for the original Uno, not the Uno R2, but most of it seemed to work fine until the end. Can anybody help me get the firmware back on my arduino? And does anybody know what might have caused the strange behavior that made me try and update the firmware in the first place?

I'm still not sure what caused it to go wacky in the first place, but it looks like I wasn't downloading the hex file for the firmware correctly somehow. I tried the hex file that downloaded with the arduino software and everything went smoothly. So happy my uno is back to normal now!

So what did you actually do?

The stuff I've found talks hardware resetting boards by link points together, but the descriptions aren't accurate enough .. well at least for me and my fear of breaking it! :wink:

Never mind .. I thought bugger it, what else is there to do on the Sunday afternoon.

The UNO R2 board has a different layout than the ones that most of the instructions talk about. The most obvious difference is a 3x2 breakout header. http://wardyprojects.blogspot.com/2011/05/arduino-uno-form-factor-has-changed.html

I connected the two pins closest to the USB connector (where the image in the above posting is pointing to).

cd /usr/share/arduino/hardware/arduino/firmwares
sudo dfu-programmer at90usb82 erase
sudo dfu-programmer at90usb82 flash UNO-dfu_and_usbserial_combined.hex --suppress-bootloader-mem
sudo dfu-programmer at90usb82 reset

I'm using Ubuntu Natty 11.04 that has the 0022 version of the Arduino software as apt-get installable packages.

The instructions about don't mention the --suppress-bootloader-mem but I get an error if I run with out it.

Bootloader and code overlap.
Use --suppress-bootloader-mem to ignore

After a unplug and plug back in, I was able to push the Blink code to the device. So far so good.