Re-Burning Wild Thumper Controller (WTC) Bootloader

I was having troubles to burn code to the Arduino from the Wild Thumper Controller board.

  1. Arduino Diecimila or Duemilanova w/ATmega 168 selected.

  2. Proper port selected.

  3. LD3 & LD4 blink.

4)avrdude: stk500_getsync(): can’t communicate with device: resp=0x41

So I decided to program the bootloader using an Arduino Uno as the ISP programmer.

  1. Loaded Examples/ArduinoISP

  2. Targeted Board/Arduino Uno

  3. Selected Port

  4. Uploaded

  5. Connected the Arduino Uno to the Wild Thumper Controller following:

http://arduino.cc/en/Tutorial/ArduinoISP and using the ICSP pins from the WTC

  1. Arduino IDE didn’t recognize the Atmega168pa so I edited boards.txt as suggested in http://www.arduino.cc/cgi-bin/yabb2/YaB … 76164280/0.

  2. Selected Atmega168p

  3. avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x11

avrdude: stk500_cmd(): programmer is out of sync

  1. Then I realized that was not going to work.

  2. Updated avrdude to 5.11.1 (this version supports m168p)

  3. Followed http://www.sparkfun.com/tutorials/247

  4. Instead of m328p used m168p as follows:

avrdude -P /dev/ttyACM0 -b 19200 -c avrisp -p m168p -v -e -U efuse:w:0x05:m -U hfuse:w:0xD6:m -U lfuse:w:0xFF:m

  1. Then selected the proper .hex file:

sudo avrdude -P /dev/ttyACM0 -b 19200 -c avrisp -p m168p -v -e -U flash:w:ATmegaBOOT_168_diecimila.hex -U -F lock:w:0x0F:m

  1. Finally got this message:

Reading | ################################################## | 100% 0.12s

avrdude: Device signature = 0x1e940b

avrdude: safemode: lfuse reads as FF

avrdude: safemode: hfuse reads as D6

avrdude: safemode: efuse reads as 5

avrdude: erasing chip

avrdude: reading input file “ATmegaBOOT_168_diecimila.hex”

avrdude: input file ATmegaBOOT_168_diecimila.hex auto detected as Intel Hex

avrdude: writing flash (16294 bytes):

Writing | ############################################ | 87% 0.00s

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x11

avrdude: stk500_cmd(): programmer is out of sync

I am out of bullets so I hope someone can help me. I guess I am doing something wrong with the Fuse Settings, but I don’t know how to properly configure this Bits for the Wild Thumper Controller Board.

I thought avrdude needs the file format specified.

your command line

sudo avrdude -P /dev/ttyACM0 -b 19200 -c avrisp -p m168p -v -e -U flash:w:ATmegaBOOT_168_diecimila.hex -U -F lock:w:0x0F:m

I would try this, put a “:i” after the filename

sudo avrdude -P /dev/ttyACM0 -b 19200 -c avrisp -p m168p -v -e -U flash:w:ATmegaBOOT_168_diecimila.hex:i -U -F lock:w:0x0F:m

not sure though if this is your problem, but worth trying.

Pete