I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this error ...
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x11
avrdude: stk500_cmd(): programmer is out of sync
... when I run this command:
sudo avrdude -p t85 -c arduino -P /dev/ttyACM0 -b 19200 -U flash:w:src.hex\
Then I checked to see if the ATtiny was responding, I ran this command:
sudo avrdude -P /dev/ttyACM0 -p t85 -b 19200 -c avrisp -v
The results were successful.
EDIT:
Here are the time stamps (just in case):
15:24:29.502445729 E:
15:24:29.623628385 E: avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
15:24:29.761744829 E: avrdude: AVR device initialized and ready to accept instructions
15:24:29.766251405 E:
15:24:29.812810614 E: Reading | ################################################## | 100% 0.05s
15:24:29.821187588 E:
15:24:29.825324777 E: avrdude: Device signature = 0x1e930b
15:24:30.171341329 E: avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
15:24:30.180631410 E: To disable this feature, specify the -D option.
15:24:30.334997131 E: avrdude: erasing chip
15:24:30.495926604 E: avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
15:24:30.632387526 E: avrdude: reading input file "src.hex"
15:24:30.637210000 E: avrdude: input file src.hex auto detected as Intel Hex
15:24:30.641710226 E: avrdude: writing flash (98 bytes):
15:24:30.645806835 E:
15:24:30.712364458 E: Writing |
15:24:30.718291473 E: avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x11
15:24:30.752474103 E: avrdude: stk500_cmd(): programmer is out of sync
15:24:30.827210626 I: Finished with exitcode 1
I can't seem to figure out what is wrong. Any suggestions?
arduino
oravrisp
, they're the same thing. \$\endgroup\$stk500v1
instead ofarduino
, the same thing happened... \$\endgroup\$