ashtian01 / optiboot

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

isp targets and Arduino "burn bootloader" fail to work with AVR Dragon as programmer. #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Apparently AVRDude causes programmers to "reset", and the AVR Dragon programmer 
takes so long to reset that it is not ready by the time the second phase of the 
"burn bootloader" process comes along.
(we do "set fuses for reprogramming", "burn bootloader", "reset fuses for 
bootloading" as two or three separate AVRDude commands.)  This is especially a 
problem on linux systems.

http://arduino.cc/forum/index.php/topic,64105.msg546502.html#msg546502

This problem can be eliminated by introducing (and/or lengthening) the delay 
between the AVRDude commands, or by stringing the whole process together into a 
single AVRDude invoation with multiple fuse-programming steps.

Original issue reported on code.google.com by wes...@gmail.com on 30 Oct 2011 at 8:07

GoogleCodeExporter commented 8 years ago
Much more information on this here:
http://code.google.com/p/arduino/issues/detail?id=650&q=dragon

Original comment by bperry...@gmail.com on 30 Oct 2011 at 11:03

GoogleCodeExporter commented 8 years ago
Just another comment to say that this is also a problem on Windows
so it is not confined to Linux.

I posted an AVRDUDE code patch to solve the issue on in the Savannah bug report
and there are also proposed IDE and Makefile arounds in the Arduino
issue link above.

Current summary is that I can't seem to get AVRDUDE maintainers to agree that it
is an AVRDUDE issue that needs to be addressed even though it is only about 6 
lines of code in AVRDUDE to fix it.

Original comment by bperry...@gmail.com on 30 Oct 2011 at 11:12

GoogleCodeExporter commented 8 years ago

Original comment by wes...@gmail.com on 27 Jun 2014 at 6:28

GoogleCodeExporter commented 8 years ago
https://code.google.com/p/optiboot/source/detail?r=a10ef5c935a11a0e656927cd5e9b3
06937203f52
(Version 6.0)
the _isp targets now use a single avrdude command to erase, program fuses, 
program bootloader, and set lock bits.  This is also faster.

Original comment by wes...@gmail.com on 28 Jun 2014 at 9:11

GoogleCodeExporter commented 8 years ago

Original comment by wes...@gmail.com on 28 Jun 2014 at 9:11