Burning the bootloader back onto a Duemilanove

After fiddling around with my arduinos using the eclipse IDE and my AVRISPv2 programmer, I wanted to get back to the arduino IDA. Problem of re-burning the bootloader back onto my boards was solved by this article :

http://ntsdt.net/2009/08/22/burning-the-arduino-bootloader/

Here are the commands which worked for me (for posterity)

# start in the correct location.

cd /opt/arduino/hardware/arduino/bootloaders/atmega

# check we can talk to it all ok.

avrdude -p m328p -P /dev/ttyACM0 -c stk500v2 -b 19200

# un-lock

avrdude -p m328p -P /dev/ttyACM0 -c stk500v2 -b 19200 -e -U lock:w:0x3F:m

# burn :

avrdude -p m328p -P /dev/ttyACM0 -c stk500v2 -b 19200 -D -U flash:w:ATmegaBOOT_168_atmega328.hex

# re-lock :

avrdude -p m328p -P /dev/ttyACM0 -c stk500v2 -b 19200 -U lock:w:0x0F:m

Advertisements
This entry was posted in Electronics and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s