avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [patch #7559] 'arduino' programmer type DTR transition fix


From: Robert Spitzenpfeil
Subject: [avrdude-dev] [patch #7559] 'arduino' programmer type DTR transition fix
Date: Sat, 16 Jul 2011 15:34:21 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]