PLEASE HELP!
this is driving me nuts.
I managed to get the arduino FTDI bitbang ISP programmer working over osx (i'll write a tutorial latter), I was able to successfully burn the diecimila bootloader into an Atmega 168 some time ago but now I bought some blank Atmega168 but I cant burn the boot loader.
The FTDI works fine, as well as avrdude. I'm able to change the fuse settings but when I try to burn the bootloader i get this:
roy-macdonalds-mac-pro:~ roy$ avrdude -c diecimila -P /dev/tty.usbserial-A4000TEB -p m168 -U flash:w:/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_ng.hex
avrdude: BitBang OK
avrdude: pin assign miso 3 sck 5 mosi 6 reset 7
avrdude: drain OK
ft245r: bitclk 230400 -> ft baud 115200
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9406
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
ft245r: bitclk 230400 -> ft baud 115200
avrdude: reading input file "/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_ng.hex"
avrdude: input file /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168_ng.hex auto detected as Intel Hex
avrdude: writing flash (16038 bytes):
Writing | ########## | 19% 1.72sSegmentation fault
The strange thing is that segmentation fault occurs at a random percentage that can span from 0% to 60%. It has never gone beyond 60%.
What is causing this Segmentation fault?
fuse settings are:
lock : 0x3F
efuse: 0x00
hfuse: 0xDD
lfuse: 0xFF
PLEASE HELP!