// empty the input stream while (0<Serial.available()) getch();
This... http://code.google.com/p/arduino/issues/detail?id=730 ...plus this... http://forum.arduino.cc/index.php?topic=88649.msg673833#msg673833 ...except using @westfw's strategy of clearing initSent on all successful commands... http://forum.arduino.cc/index.php?topic=88649.msg673869#msg673869
June 2011 Haven't tried it, but perhaps the fastest way to get ArduinoISP working on the UNO is to disable the bootloader. Then when the board resets it goes right into ArduinoISP. Note: you will want some way to re-enable the bootloader.
I have a mega 2560 and wish to programme a ATmega644PA chip.
I have contacted the ... mega-isp team and hope to get the bug fixes included at some point in the main code.
For the record, your solution has a race condition that makes it unreliable.
it would be better (for avrdude) to try, try till it comes up
Please provide a code fix for the observation that you make:QuoteFor the record, your solution has a race condition that makes it unreliable.
In my opinion the fix detailed above does not introduce any additional race condition that was not already present.