I'm attempting to lengthen the delay between the DTR signal and the programming initiation signal by avrdude. Unfortunately, modifying the various delay options in avrdude.conf seems to have no effect.
Is there proper documentation for these options anywhere? (The available documentation doesn't go into much detail: http://www.nongnu.org/avrdude/user-manual/avrdude.html)
I've attached the DTR signal to a power supply, and it takes almost a second to power cycle the board. As a result, the board is still powered off when avrdude sends the first initialization signal. And unfortunately, optiboot times out before avrdude tries again!
As far as I can see, my software solutions are 1) Extend the delay between the DTR toggle and avrdude's first attempt (this question). 2) Modify avrdude to shorten the delay between attempts (I believe this requires recompilation). 3) Modify and recompile optiboot to have a longer timeout period :o
My current solution is to open the serial port half a second before attempting to program. This works (by moving DTR forward rather than avrdude back), but it's quite an ugly hack.
Any direction or thoughts you can provide are appreciated. Thanks for your help! Patton