Burning Bootloader to 168 avrisp mk2 and OSX

OK, but is there any way to put the "sck 10" into a command line option for a script?

If I understand correctly, issuing that command causes it to be written to EEPROM in the avrispmkII, so it should be a one shot deal.

FYI, on a recent project I flashed and verified a 7k program in a few seconds from a PPC powerbook, so what you are seeing isn't normal (but I think you already knew that :slight_smile: ). I was burning directly from the powerbook's USB port, while on battery even.

You may also want to check the firmware on your avrispmkII.

-j

ALL RIGHT!!!!!! Now we have it ..... under 1 sec burn, under 8 seconds verify .... 22 seconds ... start to finish .... the "sck 10" did the trick. Dave, should I write this up for the Playground???????


Golem:/Applications/arduino-0008/bootloader-usb brian$ ./bin/avrdude -p m168 -b 115200 -P usb -c avrispmkII -t

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.10s

avrdude: Device signature = 0x1e9406
avrdude> sck

sck
Usage: sck
avrdude> sck 10
sck 10
avrdude> q
q

avrdude: safemode: Fuses OK

avrdude done. Thank you.

Golem:/Applications/arduino-0008/bootloader-usb brian$ ./burn.command
Sun Aug 5 16:55:52 EDT 2007

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9406
avrdude: erasing chip
avrdude: reading input file "0x3f"
avrdude: writing lock (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0x3f:
avrdude: load data lock data from input file 0x3f:
avrdude: input file 0x3f contains 1 bytes
avrdude: reading on-chip lock data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of lock verified
avrdude: reading input file "0xdf"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xdf:
avrdude: load data hfuse data from input file 0xdf:
avrdude: input file 0xdf contains 1 bytes
avrdude: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0xff"
avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xff:
avrdude: load data lfuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: reading input file "0x00"
avrdude: writing efuse (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0x00:
avrdude: load data efuse data from input file 0x00:
avrdude: input file 0x00 contains 1 bytes
avrdude: reading on-chip efuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of efuse verified
avrdude: reading input file "ATmegaBOOT_168.hex"
avrdude: writing flash (15916 bytes):

Writing | ################################################## | 100% 0.73s

avrdude: 15916 bytes of flash written
avrdude: verifying flash memory against ATmegaBOOT_168.hex:
avrdude: load data flash data from input file ATmegaBOOT_168.hex:
avrdude: input file ATmegaBOOT_168.hex contains 15916 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 7.16s

avrdude: verifying ...
avrdude: 15916 bytes of flash verified
avrdude: reading input file "0x0f"
avrdude: writing lock (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0x0f:
avrdude: load data lock data from input file 0x0f:
avrdude: input file 0x0f contains 1 bytes
avrdude: reading on-chip lock data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of lock verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.

Sun Aug 5 16:56:14 EDT 2007
Golem:/Applications/arduino-0008/bootloader-usb brian$