⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 avrdude.texi

📁 AVR的USB文件
💻 TEXI
📖 第 1 页 / 共 3 页
字号:
@appendix Platform Dependent Information@menu* Unix::                        * Windows::                     @end menu@c@c Node@c@node Unix, Windows, Platform Dependent Information, Platform Dependent Information@section Unix@menu* Unix Installation::           * Unix Configuration Files::    * Unix Port Names::             * Unix Documentation::          @end menu@c@c Node@c@node Unix Installation, Unix Configuration Files, Unix, Unix@subsection Unix Installation@noindentTo build and install from the source tarball on Unix like systems:@example$ gunzip -c avrdude-@value{VERSION}.tar.gz | tar xf -$ cd avrdude-@value{VERSION}$ ./configure$ make$ su root -c 'make install'@end exampleThe default location of the install is into @code{/usr/local} so youwill need to be sure that @code{/usr/local/bin} is in your @code{PATH}environment variable.If you do not have root access to your system, you can do the thefollowing instead:@example$ gunzip -c avrdude-@value{VERSION}.tar.gz | tar xf -$ cd avrdude-@value{VERSION}$ ./configure --prefix=$HOME/local$ make$ make install@end example@menu* FreeBSD Installation::        * Linux Installation::          @end menu@c@c Node@c@node FreeBSD Installation, Linux Installation, Unix Installation, Unix Installation@subsubsection FreeBSD Installation@noindentAVRDUDE is installed via the FreeBSD Ports Tree as follows:@example% su - root# cd /usr/ports/devel/avrdude# make install@end exampleIf you wish to install from a pre-built package instead of the source,you can use the following instead:@example% su - root# pkg_add -r avrdude@end exampleOf course, you must be connected to the Internet for these methods towork, since that is where the source as well as the pre-built package isobtained.@c@c Node@c@node Linux Installation,  , FreeBSD Installation, Unix Installation@subsubsection Linux Installation@noindentOn rpm based linux systems (such as RedHat, SUSE, Mandrake, etc), youcan build and install the rpm binaries directly from the tarball:@example$ su - root# rpmbuild -tb avrdude-@value{VERSION}.tar.gz# rpm -Uvh /usr/src/redhat/RPMS/i386/avrdude-@value{VERSION}-1.i386.rpm@end exampleNote that the path to the resulting rpm package, differs from systemto system. The above example is specific to RedHat.@c@c Node@c@node Unix Configuration Files, Unix Port Names, Unix Installation, Unix@subsection Unix Configuration Files@noindentWhen AVRDUDE is build using the default @option{--prefix} configureoption, the default configuration file for a Unix system is located at@code{/usr/local/etc/avrdude.conf}.  This can be overridden by using the@option{-C} command line option.  Additionally, the user's home directoryis searched for a file named @code{.avrduderc}, and if found, is used toaugment the system default configuration file.@menu* FreeBSD Configuration Files::  * Linux Configuration Files::   @end menu@c@c Node@c@node FreeBSD Configuration Files, Linux Configuration Files, Unix Configuration Files, Unix Configuration Files@subsubsection FreeBSD Configuration Files@noindentWhen AVRDUDE is installed using the FreeBSD ports system, the systemconfiguration file is always @code{/usr/local/etc/avrdude.conf}.@c@c Node@c@node Linux Configuration Files,  , FreeBSD Configuration Files, Unix Configuration Files@subsubsection Linux Configuration Files@noindentWhen AVRDUDE is installed using from an rpm package, the systemconfiguration file will be always be @code{/etc/avrdude.conf}.@c@c Node@c@node Unix Port Names, Unix Documentation, Unix Configuration Files, Unix@subsection Unix Port Names@noindentThe parallel and serial port device file names are system specific.The following table lists the default names for a given system.@multitable @columnfractions .30 .30 .30@item @strong{System}  @tab @strong{Default Parallel Port}  @tab @strong{Default Serial Port}@item FreeBSD  @tab @code{/dev/ppi0}  @tab @code{/dev/cuaa0}@item Linux  @tab @code{/dev/parport0}  @tab @code{/dev/ttyS0}@end multitableOn FreeBSD systems, AVRDUDE uses the ppi(4) interface foraccessing the parallel port and the sio(4) driver for serial portaccess.On Linux systems, AVRDUDE uses the ppdev interface foraccessing the parallel port and the tty driver for serial portaccess.@c@c Node@c@node Unix Documentation,  , Unix Port Names, Unix@subsection Unix Documentation@noindentAVRDUDE installs a manual page as well as info, HTML and PDFdocumentation.  The manual page is installed in@code{/usr/local/man/man1} area, while the HTML and PDF documentationis installed in @code{/usr/local/share/doc/avrdude} directory.  Theinfo manual is installed in @code{/usr/local/info/avrdude.info}.Note that these locations can be altered by various configure optionssuch as @option{--prefix}.@c@c Node@c@node Windows,  , Unix, Platform Dependent Information@section Windows@menu* Windows Installation::        * Windows Configuration Files::  * Windows Port Names::          * Using the parallel port::     * Documentation::               * Credits.::                    @end menu@c@c Node@c@node Windows Installation, Windows Configuration Files, Windows, Windows@subsection Installation@noindentA Windows executable of avrdude is included in WinAVR which can be found at@url{http://sourceforge.net/projects/winavr}. WinAVR is a suite of executable, open source software development tools for the AVR for the Windows platform.To build avrdude from the source You must have Cygwin (@url{http://www.cygwin.com/}).To build and install from the source tarball for Windows (using Cygwin):@example$ set PREFIX=<your install directory path>$ export PREFIX$ gunzip -c avrdude-@value{VERSION}.tar.gz | tar xf -$ cd avrdude-@value{VERSION}$ ./configure LDFLAGS="-static" --prefix=$PREFIX --datadir=$PREFIX --sysconfdir=$PREFIX/bin --enable-versioned-doc=no
$ make$ make install@end example@c@c Node@c@node Windows Configuration Files, Windows Port Names, Windows Installation, Windows@subsection Configuration Files@menu* Configuration file names::    * How AVRDUDE finds the configuration files.::  @end menu@c@c Node@c@node Configuration file names, How AVRDUDE finds the configuration files., Windows Configuration Files, Windows Configuration Files@subsubsection Configuration file names@noindentAVRDUDE on Windows looks for a system configuration file name of@code{avrdude.conf} and looks for a user override configuration file of@code{avrdude.rc}.@c@c Node@c@node How AVRDUDE finds the configuration files.,  , Configuration file names, Windows Configuration Files@subsubsection How AVRDUDE finds the configuration files. @noindentAVRDUDE on Windows has a different way of searching for the system anduser configuration files. Below is the search method for locating theconfiguration files:@enumerate@itemThe directory from which the application loaded.@itemThe current directory.@itemThe Windows system directory. On Windows NT, the name of this directoryis @code{SYSTEM32}.@itemWindows NT: The 16-bit Windows system directory. The name of thisdirectory is @code{SYSTEM}.@itemThe Windows directory.@itemThe directories that are listed in the PATH environment variable.@end enumerate@c@c Node@c@node Windows Port Names, Using the parallel port, Windows Configuration Files, Windows@subsection Port Names@menu* Serial Ports::                * Parallel Ports::              @end menu@c@c Node@c@node Serial Ports, Parallel Ports, Windows Port Names, Windows Port Names@subsubsection Serial Ports @noindentWhen you select a serial port (i.e. when using an STK500) use theWindows serial port device names such as: com1, com2, etc. @c@c Node@c@node Parallel Ports,  , Serial Ports, Windows Port Names@subsubsection Parallel Ports@noindentAVRDUDE will only accept 3 Windows parallel port names: lpt1, lpt2, orlpt3.  Each of these names corresponds to a fixed parallel port baseaddress:@table @code@item lpt10x378@item lpt20x278@item lpt30x3BC@end tableOn your desktop PC, lpt1 will be the most common choice. If you areusing a laptop, you might have to use lpt3 instead of lpt1. Select thename of the port the corresponds to the base address of the parallelport that you want.@c@c Node@c @node Using the parallel port, Documentation, Windows Port Names, Windows@subsection Using the parallel port@menu* Windows NT/2K/XP::            * Windows 95/98::               @end menu@c@c Node@c@node Windows NT/2K/XP, Windows 95/98, Using the parallel port, Using the parallel port@subsubsection Windows NT/2K/XP@noindentOn Windows NT, 2000, and XP user applications cannot directly access theparallel port. However, kernel mode drivers can access the parallel port.giveio.sys is a driver that can allow user applications to set the stateof the parallel port pins.Before using AVRDUDE, the giveio.sys driver must be loaded. Theaccompanying command-line program, loaddrv.exe, can do just that.To make things even easier there are 3 batch files that are alsoincluded:@enumerate@item install_giveio.batInstall and start the giveio driver.@item status_giveio.batCheck on the status of the giveio driver.@item remove_giveio.batStop and remove the giveio driver from memory.@end enumerateThese 3 batch files calls the loaddrv program with various options toinstall, start, stop, and remove the driver.When you first execute install_giveio.bat, loaddrv.exe and giveio.sysmust be in the current directory. When install_giveio.bat is executed itwill copy giveio.sys from your current directory to your Windowsdirectory. It will then load the driver from the Windows directory. Thismeans that after the first time install_giveio is executed, you should be able to subsequently execute the batch file from any directory and haveit successfully start the driver.@c@c Node@c@node Windows 95/98,  , Windows NT/2K/XP, Using the parallel port@subsubsection Windows 95/98@noindentOn Windows 95 and 98 the giveio.sys driver is not needed.@c@c Node@c@node Documentation, Credits., Using the parallel port, Windows@subsection Documentation@noindentAVRDUDE installs a manual page as well as info, HTML and PDFdocumentation.  The manual page is installed in@code{/usr/local/man/man1} area, while the HTML and PDF documentationis installed in @code{/usr/local/share/doc/avrdude} directory.  Theinfo manual is installed in @code{/usr/local/info/avrdude.info}.Note that these locations can be altered by various configure optionssuch as @option{--prefix} and @option{--datadir}.@c@c Node@c@node Credits.,  , Documentation, Windows@subsection Credits.@noindentThanks to:@itemize @bullet@itemDale Roberts for the giveio driver.@itemPaula Tomlinson for the loaddrv sources.@itemChris Liechti <cliechti@@gmx.net> for modifying loaddrv to be commandline driven and for writing the batch files.@end itemize@bye

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -