1
Ардуино (Arduino) / "Arduino и "ATTiny 85"
« -: Март 26, 2012, 06:58:24 pm »
Problem with auto reset
Arduinos with auto reset capabilities(i.e. Diecimila, Duemilanove) will likely need to have the auto-reset functionality disabled. When a program(i.e. avrdude) connects to a serial port the DTR line is set and unset, which triggers a reset. Avrdude (as of v5.6) connects to the Arduino before it has booted. The problem may manifest itself with the error message "avrdude: stk500_getsync(): not in sync: resp=0x15". The problem may also manifest itself withe the error message "avrdude: verification error, first mismatch at byte 0x0000 0x3F != 0x00". This happens when Avrdude connects to the Arduino bootloader on the host. The Arduino bootloader supports a subset of the same STK500 protocol that Mega ISP uses but always returns 0x00 when reading the lock bits.
Arduinos with auto reset capabilities(i.e. Diecimila, Duemilanove) will likely need to have the auto-reset functionality disabled. When a program(i.e. avrdude) connects to a serial port the DTR line is set and unset, which triggers a reset. Avrdude (as of v5.6) connects to the Arduino before it has booted. The problem may manifest itself with the error message "avrdude: stk500_getsync(): not in sync: resp=0x15". The problem may also manifest itself withe the error message "avrdude: verification error, first mismatch at byte 0x0000 0x3F != 0x00". This happens when Avrdude connects to the Arduino bootloader on the host. The Arduino bootloader supports a subset of the same STK500 protocol that Mega ISP uses but always returns 0x00 when reading the lock bits.