mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 14:35:27 +00:00
patch #7437 modifications to Bus Pirate module
patch #7686 Updating buspirate ascii mode to current firmware, use AUX as clock generator, and setting of serial receive timeout * buspirate.c: added paged_write, changed binary mode setup/detection, added clock output on AUX pin * avrdude.1: updated documentation * doc/avrdude.texi: updated documentation git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1052 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -919,35 +919,51 @@ good candidates with the latches driven by the appropriate reset pin (cs,
|
||||
aux or aux2). Otherwise the SPI traffic in one active circuit may interfere
|
||||
with programming the AVR in the other design.
|
||||
|
||||
@item @samp{speed=@var{0..7}}
|
||||
@table @code
|
||||
@item 0
|
||||
30 kHz (default)
|
||||
@item 1
|
||||
125 kHz
|
||||
@item 2
|
||||
250 kHz
|
||||
@item 3
|
||||
1 MHz
|
||||
@item 4
|
||||
2 MHz
|
||||
@item 5
|
||||
2.6 MHz
|
||||
@item 6
|
||||
4 MHz
|
||||
@item 7
|
||||
8 MHz
|
||||
@end table
|
||||
@item @samp{spifreq=@var{0..7}}
|
||||
@multitable @columnfractions .05 .3
|
||||
@item @code{0} @tab 30 kHz (default)
|
||||
@item @code{1} @tab 125 kHz
|
||||
@item @code{2} @tab 250 kHz
|
||||
@item @code{3} @tab 1 MHz
|
||||
@item @code{4} @tab 2 MHz
|
||||
@item @code{5} @tab 2.6 MHz
|
||||
@item @code{6} @tab 4 MHz
|
||||
@item @code{7} @tab 8 MHz
|
||||
@end multitable
|
||||
|
||||
@item @samp{ascii}
|
||||
Use ASCII mode even when the firmware supports BinMode (binary mode).
|
||||
Attempt to ASCII mode even when the firmware supports BinMode (binary mode).
|
||||
BinMode is supported in firmware 2.7 and newer, older FW's either don't
|
||||
have BinMode or their BinMode is buggy. ASCII mode is slower and makes
|
||||
the above
|
||||
@samp{reset=}
|
||||
and
|
||||
@samp{speed=}
|
||||
parameters unavailable.
|
||||
@samp{spifreq=}
|
||||
parameters unavailable. Be aware that ASCII mode is not guaranteed to work
|
||||
with newer firmware versions, and is retained only to maintain compatability
|
||||
with older firmware versions.
|
||||
|
||||
@item @samp{nopagedwrite}
|
||||
Firmware versions 5.10 and newer support a binary mode SPI command that enables
|
||||
whole pages to be written to AVR flash memory at once, resulting in a
|
||||
significant write speed increase. If use of this mode is not desirable for some
|
||||
reason, this option disables it.
|
||||
|
||||
@item @samp{cpufreq=@var{125..4000}}
|
||||
This sets the @emph{AUX} pin to output a frequency of @var{n} kHz. Connecting
|
||||
the @emph{AUX} pin to the XTAL1 pin of your MCU, you can provide it a clock,
|
||||
for example when it needs an external clock because of wrong fuses settings.
|
||||
This setting is only available in ASCII mode. (The lower limit was chosen so
|
||||
the CPU frequency is at least for four times the SPI frequency which is in
|
||||
ASCII mode 30kHz.)
|
||||
|
||||
@item @samp{serial_recv_timeout=@var{1...}}
|
||||
This sets the serial receive timeout to the given value.
|
||||
The timeout happens every time avrdude waits for the BusPirate prompt.
|
||||
Especially in ascii mode this happens very often, so setting a smaller value
|
||||
can speed up programming a lot.
|
||||
The default value is 100ms. Using 10ms might work in most cases.
|
||||
|
||||
@end table
|
||||
|
||||
@item Wiring
|
||||
|
Reference in New Issue
Block a user