Ludzie pragną czasami się rozstawać, żeby móc tęsknić, czekać i cieszyć się z powrotem.
4. It is not available as an installation package, thus on have to build it by oneself. Download source from a sourceforge mirror site. Configure and and compile the tool with following commands:
# tar xvjf avarice-2.4.tar.bz2
# cd avarice-2.4
# ./configure
# make
# make install
By default, AvaRICE looks for a device /dev/avrjtag. It is recommended to create a symbolic link from the actual device where JTAG-adapter is connected.
Give users permissions to access the device. Change the ttyS0 to correspond your setup.
# chmod a+rw /dev/ttyS0
# ln -s /dev/ttyS0 /dev/avrjtag
13
avr-gdb
delivered with Linux packages doesn’t seems to cooperate with avarice properly. Thus it must be compiled from sources. In order to compile gdb, termcap library is required. The termcap is not available as a packaget, thus it must be compiled too. Fetch sources for gdb and termcap. Notice that gdb version must be 6.4 or greater!
ftp://ftp.gnu.org/pub/pub/gnu/termcap
ftp://ftp.gnu.org/pub/pub/gnu/gdb
Build and install termcap with following commands:
# tar xvjf termcap-1.3.1.tar.gz
# cd termcap-1.3.1
# ./configure
# make
# make install
# ldconfig
Build and compile gdb with following commands:
# tar xvjf gdb-6.4.tar.bz2
# cd gdb-6.4
# ./configure --target=avr --prefix=/usr/avr
# make
# make install
In the configure command, change the prefix argument to the destination folder of your choise, /usr/avr is the default in Debian.
14