I was having troubles to burn code to the Arduino from the Wild Thumper Controller board.
-
Arduino Diecimila or Duemilanova w/ATmega 168 selected.
-
Proper port selected.
-
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.
-
Loaded Examples/ArduinoISP
-
Targeted Board/Arduino Uno
-
Selected Port
-
Uploaded
-
Connected the Arduino Uno to the Wild Thumper Controller following:
http://arduino.cc/en/Tutorial/ArduinoISP and using the ICSP pins from the WTC
-
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.
-
Selected Atmega168p
-
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x11
avrdude: stk500_cmd(): programmer is out of sync
-
Then I realized that was not going to work.
-
Updated avrdude to 5.11.1 (this version supports m168p)
-
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
- 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
- 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.