Is anyone out there experiencing the same problem?
Uploading a sketch from the Arduino IDE (v0018) gives me this error message:
Binary sketch size: 16080 bytes (of a 30720 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x02
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x02
If I re-flash the bootloader, I can upload a sketch just fine.
But it works only once. The second time I want to upload a sketch,
I get the above error again.
It looks as if the sketch upload erases the bootloader somehow.
I use Adafruit's USBtinyISP to burn the bootloader.
Any clue?
-- Prof Shadoko
You need to be a member of diydrones to add comments!
Replies
There are fuse bits which should be set when a bootloader is used to prevent the bootloader memory space being overwritten. It sounds like these may not be set correctly in your case.
A guide to avr fuses is here. A google search will get you the correct fuse values for an Arduino with ATMega328 and various guides for reading and setting fuses. Some caution is required as it is possible to effectively 'lock yourself out' if you get lock bit or reset fuse settings wrong.
All the best.