Atmel ICE with AVRDUDE, cannot find device.

Go To Last Post
19 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I decalared my old AVR-ISPMKII dead a couple of weeks ago. Replaced it with an Atmel ICE that arrived today. It connected and worked just fine on my Win7 Pro / Atmel Studio 6 coding station with no problem. On my bench I have Win10 and avrdude 6.1 for programming, but it cannot find the device. Not really sure where or what to look for. AS6 forced a firmware update that went just fine. I am definitely not an expert with avrdude since I cheat a little using AVRDUDESS to build the arguments. 

 

error:

jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2141

using -c atmelice_isp

 

Am I missing something simple? Thank you in advance for any guidance.

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why not simply install Studio and end the headache?

 

Jim

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jgmdesign wrote:

Why not simply install Studio and end the headache?

 

Jim

 

I had it setup for easy one-button production programming. Studio will certainly get a program in there, but it is quite a few mouse clicks and I have to have the project open. 

 

AVRDUDESS has convenient presets that make things quick and relatively foolproof when all I need is to do is set fuses-send flash and be done.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ahhh Ok, that makes sense.

 

I am afraid I am of no assistance on this as I know nothing about AVRDUDE or his sister. cheeky

 

Jim

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have searched the bowels of the internet and turned up nothing so far. Seems odd, but maybe I am the only one with trouble. 

 

I don't have any affinity to avrdude, if there is any basic utility for programming 8bit AVR with Atmel ICE that would be fine too. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ooooooook.......

 

Success!! Super happy.

 

In windows:

libusb needed filters to be installed. To do this, go to the bin folder in the libusb folder. Run install-filter-win.exe and select the first instance of your device. It will come up as input device, data gateway, and composite device with hex Id's: 03EB and 2141.

Pick one, select install and repeat for the other two. They will be removed from the list when they are installed. TIP: The AMD and Intel folders were switched on my install so pick the opposite.

 

Afterward, run the testlibusb-win.exe and it should list the Atmel ICE. After you confirm that, you can run avrdude with the Atmel ICE. 

 

 

If your TestLibUsb looks like this, your filters were not installed.

 

 

 

It should look like this.....

 

 

 

It took quite a while to figure that out. Hope this helps someone save some time and frustration getting their Atmel ICE to work with avrdude

 

 

 

 

Last Edited: Wed. Dec 16, 2015 - 06:26 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Go on. You had to do exactly the same process with your AVRISP-2. i.e. add the libusb filter.

The same applies to every Atmel USB device. Atmel talks through Jungo. Avrdude talks through libusb.
The filter wizard lets you access the AVRISP or ATMEL-ICE via Studio or avrdude.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It may be obvious after you know it. I dont remember having to do this with AVRISP2. Did I miss some obvious directions for this configuration? I never knew how avrdude interfaced with programmers or that I needed to know. AS6 makes this transparent so much that it is optional information to learn.

Maybe I was searching for the wrobg things.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From memory, WinAvr would enable the libusb drivers. AS4 would enable the Jungo drivers. The libusb-filter was not available,
So if you had just installed Studio you would lose avrdude. If you had just installed WinAvr, you would lose Jungo.

With the libusb Filter Wizard, you can use both styles.

I bet that you used the Filter Wizard for the AVRISP-2 in the past. Just forgotten.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also, you just have to add filter driver to the USB Input Device. The other endpoint should not have a filter added to it...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the clarification. I guess the good news is that I need one station to work with libusb and the other to be Jungo - they never need to do both. and yes, it is entirely possible that I forgot. In the past couple of years since I setup the AVRISP2, I have been on a learning rampage 15 hours/day. Some knowledge may be pushed out the other side of my brain. 

 

Take aways:

 

AS uses Jungo

AVRDUDE uses libusb

 

I had no idea how it was working underneath or what the filters were for. It is now added to my never ending list of things to read about. 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:

Also, you just have to add filter driver to the USB Input Device. The other endpoint should not have a filter added to it...

 

Thank you the notes. What do you mean by the 'other endpoint'?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can use both styles on the same PC.   That is the whole point of the Filter.

 

The historic situation was: installing a new device automatically killed the other style of interface.

With the Filter Wizard this is no longer a "feature".

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The Data Gateway and the Composite Device (and the CDC on the EDBG). The fewer filters the better smiley

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:

The Data Gateway and the Composite Device (and the CDC on the EDBG). The fewer filters the better smiley

 

Oh, I see now. Only the USB input device is needing the filter so don't bother with the other two. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm also trying to run Avrdude on AVR Ice, but I couldn't find the libusb folder.  I did a search on my entire c drive, couldn't find testlibusb-win.exe.  Is this obsolete now?  Can't seem to find anything on google.  Do you have a libusb folder as a result of installing Atmel Studio ? I'm on Amel studio 7, Windows 7.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Pairajacks, welcome to AVR Freaks.

 

Libusb-win32 can be downloaded from https://sourceforge.net/projects/libusb-win32/.

 

Upon checking the wiki page I noticed that libusb-win32 is now in bug-fix only mode.

It is recommended new project should migrate to libusb-1.0 API and use libusb Windows (http://libusb.info) instead.

I personally haven't tried the one at http://libusb.info but I can vouch for libusb-win32.

.: Daniel :.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I can't get avrdude on windows 10 to work with the atmel ice..

 

I have it added via libusb wizard the same way as I did for the AVR ISP mkII (which works).

 

Avrdude 6.1 and 6.3 both give me the following error(s):

C:\>avrdude -pm1281 -catmelice_isp -v -B10

avrdude: Version 6.1, compiled on Mar 13 2014 at 00:09:49
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Jesper\Downloads\avrdude-6.1-mingw32\avrdude.conf"

         Using Port                    : usb
         Using Programmer              : atmelice_isp
         Setting bit clk period        : 10.0
avrdude: usbdev_open(): Found Atmel-ICE Data Gateway, serno: J41800068250
avrdude: usbdev_send(): wrote -22 out of 7 bytes, err =
avrdude: jtag3_send(): failed to send command to serial port
avrdude: sign-on command: timeout/error communicating with programmer (status -1)
avrdude: failed to sync with the JTAGICE3 in ISP mode

 

Has anybody seen this before/knows how to fix it?

 

Cheers!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Let me guess:

-you din't install the USB Composite device

...you only installed the Atmel ICE Data gateway

 

 

Many thanks to the OP!