eclipseavravr-gccavrdudewinavr

avarice from winavr not working with usb jtagice3


I am using win-avr with eclipse to build and debug my project with ATxmega256a3bu devie. when I tried to debug the code using avarice using following command:

avarice --part atxmega256a3bu -mkII --jtag usb --read-fuses

it shows the following error

AVaRICE version 2.9, Jan  7 2010 22:42:57

Defaulting JTAG bitrate to 250 kHz.

did not find any USB device "usb"
USB device not found

how to detect jtagice3 using avarice in windows?


Solution

  • If you don't have the libusb filter installed for that device avarice won't be able to find it.

    You probably already have the Windows libusb port installed (if not, you can get it at http://libusb-win32.sourceforge.net); go to its bin/< platform > path and run install-filter.exe; then select your JTAGICE3 device.

    Notice that once you have done this, your JTAGICE3 won't be visible to Atmel Studio anymore, unless you uninstall the libusb filter (using the same utility). If you need to go back and forth between avArICE and Atmel Studio, you'll have to repeat this cycle over and over (sorry...)

    Another problem is that JTAGICE3 is not supported at least until avarice 2.13 (which is the latest at the time I'm writing this). I had to download the head sources and build them in cygwin to be able to use it. the flag you're using (-mkII) is for another model and won't work because their USB IDs are different.