The purpose of this tutorial is to enable the AVR toolchain based debugging using AVaRICE + AVR-GDB combination in newer debian based versions. The avarice version 2.13+svn which is installed using the apt repository seems to broke the debugging. So we would be using 2.12 version of Avarice for continuing the JTAG debugging in newer linux.
Uninstall the avarice version first if already installed.
sudo apt-get remove avarice
Download the Avarice 2.12 version from
http://avarice.sourceforge.net/ — Home page
Compiling Avarice from source
Use the following command to compile and install avarice.
cd <path to avarice 2.12>
sudo make install
If there is issue in the compilation, please add the error log in the comment box. We will try to share our experience on this.
Using Avarice 2.12 for debugging
By default, the avarice program will be installed in /usr/local/bin folder
Make a symlink to /usr/bin/avarice with the following command
ln -s /usr/local/bin/avarice /usr/bin/avarice
Make sure you have the correct version in the path as
Compatible jtag can be purchased from our store.
Now you can continue to use the avarice for debugging as normal
For quick testing use our previous blogs as reference.
Following command can be used if you are using AVR Dragon debugger instead of JTAGICE
avarice -d –ignore-intr –erase –program –file <filename>.elf -g -j usb :4242