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

📄 avarice.1

📁 avrrice软件用于AVR单片机的JTAG调试.
💻 1
字号:
.igCopyright (C) 2001 Scott FinneranCopyright (C) 2003 Intel CorporationCopyright (C) 2003, 2004 Theodore A. RothPermission is granted to make and distribute verbatim copies of thismanual provided the copyright notice and this permission notice arepreserved on all copies.Permission is granted to copy and distribute modified versions of thismanual under the conditions for verbatim copying, provided that theentire resulting derived work is distributed under the terms of apermission notice identical to this one.Permission is granted to copy and distribute translations of thismanual into another language, under the above conditions for modifiedversions, except that this permission notice may be included intranslations approved by the Free Software Foundation instead of inthe original English.$Id: avarice.1,v 1.4 2004/11/25 19:58:59 troth Exp $...TH avarice 1 "February 6, 2004".LO 1.SH NAMEavarice \- Provides an interface from avr-gdb to Atmel's JTAGICE box..SH SYNOPSIS.B avarice[\fIOPTIONS\fR]... [[\fIHOST_NAME\fR]:\fIPORT\fR].SH DESCRIPTION.PPAVaRICE runs on a POSIX machine and connects to gdb via a TCP socket andcommunicates via gdb's "serial debug protocol". This protocol allows gdb tosend commands like "set/remove breakpoint" and "read/write memory"..PPAVaRICE translates these commands into the Atmel protocol used to control theAVR JTAG ICE. Connection to the AVR JTAG ICE is via a serial port on the POSIXmachine..PPBecause the GDB <---> AVaRICE connection is via a TCP socket, the two programsdo not need to run on the same machine. In an office environment, this allowsa developer to debug a target in the lab from the comfort of their cube (oreven better, their home!).HP 6.B NOTE:Even though you can run \fBavarice\fR and \fBavr\-gdb\fR on different systems,it is not recommended because of the security risk involved. \fBavarice\fR wasnot designed to be a secure server. There is no authentication performedwhen a client connects to \fBavarice\fR when it is running in gdb server mode..SS Supported Devices.B avaricecurrently has support for the following devices:.RS 4atmega16.bratmega162.bratmega169.bratmega323.bratmega32.bratmega64.bratmega128.brat90can128 (experimental).RE.SS Supported File Formats.B avariceuses libbfd for reading input files. As such, it can handle any file formatthat libbfd knowns about. This includes the Intel Hex, Motorola SRecord andELF formats, among others. If you tell \fBavarice\fR to read an ELF file, itwill automatically handle programming all of the sections contained in thefile (e.g. flash, eeprom, etc.)..SH OPTIONS.TP.BR \-h ,\  \-\-helpPrint this message..TP.BR \-d ,\  \-\-debugEnable printing of debug information..TP.BR \-D ,\  \-\-detachDetach once synced with JTAG ICE.TP.BR \-C ,\  \-\-captureCapture running program..brNote: debugging must have been enabled prior to starting the program. (e.g.,by running avarice earlier).TP.BR \-I ,\  \-\-ignore-intrAutomatically step over interrupts..brNote: EXPERIMENTAL. Can not currently handledevices fused for compatibility..TP.BR \-f ,\  \-\-file \ <filename>Specify a file for use with the --program and --verify options. If --file ispassed and neither --program or --verify are given then --program is implied..TP.BR \-j ,\  \-\-jtag \ <devname>Port attached to JTAG box (default: /dev/avrjtag)..TP.BR \-B ,\  \-\-jtag-bitrate \ <rate>Set the bitrate that the JTAG box communicates with the avr target device.This must be less than 1/4 of the frequency of the target. Valid values are1MHz, 500KHz, 250KHz or 125KHz. (default: 1MHz).TP.BR \-p ,\  \-\-programProgram the target. Binary filename must be specified with --file option..br.B NOTE:The old behaviour of automatically erasing the target beforeprogramming is no longer done. You must explicitly give the --erase optionfor the target to be erased..TP.BR \-v ,\  \-\-verifyVerify program in device against file specified with --file option..TP.BR \-e ,\  \-\-eraseErase target..TP.BR \-r ,\  \-\-read-fusesRead fuses bytes..TP.BR \-W ,\  \-\-write-fuses \ <eehhll>Write fuses bytes. \fBee\fR is the extended fuse byte, \fBhh\fR is the highfuse byte and \fBll\fR is the low fuse byte. The fuse byte data must be givenin two digit hexidecimal format with zero padding if needed. All three bytesmust currently be given..br.B NOTE:Current, if the target device doesn't have an extended fuse byte(e.g. the atmega16), the you should set ee==ll when writing the fuse bytes..TP.BR \-l ,\  \-\-read-lockbitsRead the lock bits from the target. The individual bits are also displayedwith names..TP.BR \-L ,\  \-\-write-lockbits \ <ll>Write lock bits. The lock byte data must be given in two digit hexidecimalformat with zero padding if needed..TP.BR \-P ,\  \-\-part \ <name>Target device name (e.g. atmega16).PP\fIHOST_NAME\fR defaults to 0.0.0.0 (listen on any interface) if not given..PP:\fIPORT\fR is required to put avarice into gdb server mode..SH EXAMPLE USAGEavarice --erase --program --file test.bin --jtag /dev/ttyS0 :4242.SH DEBUGGING WITH AVARICEThe JTAG ICE debugging environment has a few restrictions and changes:.IP \(bu 4No "soft" breakpoints, and only three hardware breakpoints. The breakcommand sets hardware breakpoints. The easiest way to deal with thisrestriction is to enable and disable breakpoints as needed..IP \(buTwo 1-byte hardware watchpoints (but each hardware watchpoint takes awayone hardware breakpoint). If you set a watchpoint on a variable which takesmore than one byte, execution will be abysmally slow. Instead it is betterto do the following:.IP.RS 6watch *(char *)&myvariable.RE.IPwhich watches the least significant byte of.BR myvariable ..IP \(buThe Atmel AVR processors have a Harvard architecture (separate code anddata buses). To distinguish data address 0 from code address 0,.B avr-gdbadds 0x800000 to all data addresses. Bear this in mind when examiningprinted pointers, or when passing absolute addresses to gdb commands..SH SEE ALSO.BR gdb (1),.BR avr\-gdb (1),.BR insight (1),.BR avr\-insight (1),.BR ice\-gdb (1),.BR ice\-insight (1).SH AUTHORSAvarice (up to version 1.5) was originally written by Scott Finneran with helpfrom Peter Jansen. They did the work of figuring out the jtagice communicationprotocol before Atmel released the spec (appnote AVR060)..PPDavid Gay made major improvements bringing avarice up to 2.0.

⌨️ 快捷键说明

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