avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [patch #7604] new command line parameter -z, for snooze af


From: Brett Hagman
Subject: [avrdude-dev] [patch #7604] new command line parameter -z, for snooze after port open
Date: Wed, 24 Aug 2011 17:55:51 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0

URL:
  <http://savannah.nongnu.org/patch/?7604>

                 Summary: new command line parameter -z, for snooze after port
open
                 Project: AVR Downloader/UploaDEr
            Submitted by: bhagman
            Submitted on: Wed 24 Aug 2011 05:55:50 PM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Might seem odd at first, but this is a really handy parameter for
multi-layered programmers.

By multi-layered, I mean boards which have their OWN bootloader which talks a
specific protocol, but can be loaded with a programmer protocol to program a
separate target.

For example, any of the Wiring boards can be turned into a programmer via the
WiringISP sketch.  But unless there is a delay to bypass the board's own
bootloader, there is no way to access the programmer sketch that has been
uploaded.

example:

http://wiring.org.co/learning/tutorials/atmegaDIPbootloader/index.html

The -z command line parameter accepts a single integer parameter which is
passed to the programmer protocol handler, where, if implemented, will delay
the given number of milliseconds after the port has been opened.

Wiring, as well as Arduino and other offshoots, will benefit from this command
line parameter.

It must be noted that to take advantage of the new command line parameter, the
target protocol needs to implement the delay loop.  See the patched stk500v2.c
for details.

This addition has already been patched and used in Wiring 1.0 BETA versions,
and used by about 500 beta testers without any issue.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 24 Aug 2011 05:55:50 PM GMT  Name: snoozetime-r962-bh-20110824.patch
 Size: 5kB   By: bhagman
snooze command line parameter (-z) unified-diff patch against r962
<http://savannah.nongnu.org/patch/download.php?file_id=23862>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7604>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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