Follow-up Comment #4, patch #7559 (project avrdude):
Another option would be to introduce
serial_toggle_dtr_rts();
and in 'arduino.c' use:
serial_toggle_dtr_rts(&pgm->fd);
usleep(50*1000);
serial_toggle_dtr_rts(&pgm->fd);
usleep(50*1000);
That way it would not matter (for the purpose of auto-reset) if the stuff in
'ser_posix.c' is inverted or not - as long as it is consistent! Also the
initial state of DTR is irrelevant.
It would either produce HIGH_LOW_HIGH or LOW_HIGH_LOW, both sequences reset
the chip.
I've attached the changes needed for this proposal. But it adds more changes.
The generated waveforms on DTR and reset are the same as with my initial patch
(trace #2)
(file #23663)
_______________________________________________________
Additional Item Attachment:
File name: 0003-Added-serial_toggle_dtr_rts__just_testing___.patch Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?7559>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev