I burn an Arduino Pro Mini 8 MHz bootloader on a ATmega328 chip using Arduino Uno (as ISP) and also an AVRISP MKII.
Bootloader burning process is ok.
I managed to upload the Blink sketch once and the board works.
But, on 2nd attempt to upload sketch (even the same Blink sketch with different blinking rate), it always fail to upload.
I would get the classic error:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I tried burning the bootloader again and even with a second unit, the outcome is the same.
Do you guys think this has something to do with the waiting time in the bootloading stage?