eraj007 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Can't burn bootloaders with USBtinyISP. #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect a USBtinyISP and Arduino board.
2. Select correct entry from Tools > Board menu.
3. Try to burn bootloader.

What is the expected output? What do you see instead?

It should burn.  Instead, I get something like:

{{{
USB read error: expected 128, got -1
avrdude: WARNING: can't read memory for cycle count, rc=-1
USB write error: expected 128, got -1
USB write error: expected 128, got -1
USB write error: expected 128, got -1
USB write error: expected 128, got -1
USB write error: expected 128, got -1
...
USB read error: expected 128, got -1
USB read error: expected 128, got -1
USB read error: expected 128, got -1
USB read error: expected 128, got -1
USB read error: expected 128, got -1
USB read error: expected 38, got -1
avrdude: verification error, first mismatch at byte 0x3800
         0x0c != 0xff
avrdude: verification error; content mismatch
}}}

Apparently, the solution is to increase / specify the bitclock period with the 
-B option.  For 
example:

{{{
avrdude -c usbtiny -p m168 -B 5 -V -e -U lock:w:0x3F:m -U hfuse:w:0xDF:m -U 
lfuse:w:0xFF:m -U efuse:w:0xF8:m
avrdude -c usbtiny -p m168 -B 1 -V -D -U flash:w:ATmegaBOOT_168.hex:i
avrdude -c usbtiny -p m168 -B 5 -V -U lock:w:0xCF:m
}}}

Original issue reported on code.google.com by dmel...@gmail.com on 1 Aug 2009 at 9:15

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 15 Aug 2009 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 9 Jan 2010 at 5:07

GoogleCodeExporter commented 9 years ago
Maybe my USBtinyISP is just broken, because I don't have any problems with my 
FabISP (uses the same protocol).  Also, I haven't seen anyone else with this 
problem.

Original comment by dmel...@gmail.com on 11 Jul 2010 at 2:22