[SOLVED] Burning a bootloader takes a long time?

How long is it supposed to take to burn a bootloader?

I'm trying to burn some new ATmega168 chips using a AVRISP MKII (USB) and it's taking more than 5 minutes per chip. It works, but it's just really slow. This just doesn't seem right. I was kind of expecting that it would take 15-20 seconds.

I'm using arduino-0013 to burn the bootloader on OSX. The board is an Arduino NG with no connections other than the USB cable (for power) and the ICSP cable from the programmer. I've tried arduino-0011 and 0012 and get the same results.

It shouldn't take more than the ten seconds. It should probably be just a few seconds.
Check the Makefile that is used to burn the bootloader. If you set the bit clock to
1uS with the switch "-B 1" it should go a lot faster. If you get errors you may
have to increase this time.

(* jcl *)

Thanks!

Adding the -B 1 did the trick. Now it takes about 20 seconds overall including setting the fuses.

You're welcome.

One caveat -- the last few ATmega168s would not initially flash at a bit clock
of 1uS. After an initially flash -B 100 I was able to set the bit clock back to
1uS. Other ATmega's from the same batch did not have this problem.

After spending four hours on this problem I was satisfied with the work around
and did not investigate any further to find the root cause.

(* jcl *)