Atmel ICE with AVRDUDE, cannot find device.

Go To Last Post
43 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

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

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

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix 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

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

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

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix 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 Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 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 Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 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!

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

Hello

If anyone is still wondering...

I had the same problem and slove it by filtering ALL the USB device listed with the Atmel VID 0x03EB and PID 0x2141. Not only the one called "Atmel ICE":

- USB Input pheriperal

- Composite USB pheripheral

(Not sure about the name, French translation... ;-) )

 

The filter USB device, I use the install-filter-win.exe in the libusb directory.

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

I have your same dilemma,
I want to be able to rewrite the bootloader of the Mega2560 using the ICE but Avrdude of the IDE 1.8.5 responds like this:

 

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cjtag3isp -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD8:m -Ulfuse:w:0xFF:m

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : jtag3isp
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2110, 0x2140

avrdude done.  Thank you.

Error while burning bootloader.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
`
Verifying the card driver, however, I find that the VID 0x03eb and PID 0x2140 are correct.

 

On the Arduino forum recommend using Zadig for the management of the drivers, what do you think?

Arduino's Programer

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

With zadig I managed to show the ICE to Avrdude of the Arduino IDE and I could restore the bootloader.
The problem is that I do not know how to go back to show the ICE to AS7...

Arduino's Programer

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

Zadig should let you use avrdude and AS7.

 

I assume that you have a JTAGICE-3 and not an ATMEL-ICE.

You should see the device in the Device Manager and in AS7

 

David.

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

Hi David,
I have a Atmel-ICE, the proof is here:

 

When I whant reinstall the old driver, Zadig didn't find this in the windows system.

 

 

 

 

Arduino's Programer

Last Edited: Wed. May 9, 2018 - 02:31 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have storage the old state only in jpeg but no on files:

Arduino's Programer

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

I wold like to find the old Winusb V1.0.0.0 and the HidUsb V10.0.13299.251

I didn't replace the Usbccgp on the composite device

Arduino's Programer

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

Simone72 wrote:
Hi David, I have a Atmel-ICE, the proof is here:
I think David was questioning this:

Simone72 wrote:
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cjtag3isp -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD8:m -Ulfuse:w:0xFF:m
I wondered about that too.

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

Thanks, Clawson,
But now the AVRdude works to put everything back in the Mega.
I have to go over to the old drivers if I want to use the ICE with the AS7.
The latter does not want to use it with the Winusb v6.1.7600.16385 which restores Zadig

 

Arduino's Programer

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

Did the system save a "restore point" when you installed Zadig. If it did, it's done its job and it's now getting in the way I'd just do a system restore to wind back.

 

(that's why a lot of this kind of thing is often better done in a virtual machine as you just discard the VM image when you are done).

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

Simone72 wrote:
The problem is that I do not know how to go back to show the ICE to AS7...

Microchip

Atmel Studio 7

User Guide

Feb 9, 2018

http://www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en594569 (PDF, 13.8MB)

(page 349)

11.4 Driver and USB Issues

11.4.1 How do I get my Tool to be recognized by Atmel Studio?

This should happen automatically, but sometimes the Windows driver does not recognize the tool correctly. To correct this, you have to check that the tool is listed under the Atmel node in the device manager in Windows. If your tool is not listed, try to find it under Unknown devices. If it is located there, try to reinstall the driver by double-clicking the tool, click the Driver tab and choose Update Driver. Let Windows search for the driver. The driver should be reinstalled and the tool should be displayed under Atmel. Now, the tool should be usable from Atmel Studio.

via

Microchip Technology Inc

Microchip Technology

Atmel Studio 7

http://www.microchip.com/avr-support/atmel-studio-7

Atmel-ICE is a composite USB device (HID for programming and debugging, DGI)

fyi, the forthcoming AVRDUDE 6.4 adds libhidapi so won't need libusb from Zadig.

http://svn.savannah.gnu.org/viewvc/avrdude/trunk/avrdude/NEWS?revision=1425&view=markup

...

* Major changes compared to the previous version:

...

- use libhidapi as (optional) transport for CMSIS-DAP compliant
14 debuggers (JTAGICE3 with firmware 3+, AtmelICE, EDBG, mEDBG)

...

"Dare to be naïve." - Buckminster Fuller

Last Edited: Wed. May 9, 2018 - 06:17 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Unfortunately Zadig is an Exe who runs locally.
Even with the control panel of the devices you can not get back to the starting point.

Arduino's Programer

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

At this moment I am completely reinstalling AS7.
I saw too late that in the Atmel folders there was that driver ...

Arduino's Programer

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

gchapman wrote:

Simone72 wrote:
The problem is that I do not know how to go back to show the ICE to AS7...

Microchip

Atmel Studio 7

User Guide

Feb 9, 2018

http://www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en594569 (PDF, 13.8MB)

(page 349)

11.4 Driver and USB Issues

11.4.1 How do I get my Tool to be recognized by Atmel Studio?

This should happen automatically, but sometimes the Windows driver does not recognize the tool correctly. To correct this, you have to check that the tool is listed under the Atmel node in the device manager in Windows. If your tool is not listed, try to find it under Unknown devices. If it is located there, try to reinstall the driver by double-clicking the tool, click the Driver tab and choose Update Driver. Let Windows search for the driver. The driver should be reinstalled and the tool should be displayed under Atmel. Now, the tool should be usable from Atmel Studio...

After reinstalling AS7 I was hoping to recover the ICE but it is not so ...
Now the ICE is under the Atmel node but not only ... it also appears elsewhere


I have disassembled the Jumbo drivers that had left the other version, will I be wrong?

Arduino's Programer

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

Simone72 wrote:
I have disassembled the Jumbo drivers that had left the other version, will I be wrong?
No

Jungo was replaced by WinUSB in Atmel Studio 7.0.1416 and subsequent.

 

 

"Dare to be naïve." - Buckminster Fuller

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

@ gchapman:

 

Now that I've put the new version back I'll see these programs:

 

 

After that I check in the device manager and seeing the same state:

 

 

Absent Atmel-ICE on my tools:

 

Fortunately it's remain with me wink

 

Arduino's Programer

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

I'm at a loss.

Reboot?

 

"Dare to be naïve." - Buckminster Fuller

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

Whit the reboot same thing...angry

Arduino's Programer

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

Atmel-ICE is the debug USB endpoint, and should be using HID (in windows, USB Input device). The Data Gateway is using WinUSB but it is NOT used in Atmel Studio.

:: Morten

 

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

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

From your original post in this thread, it's Windows 10.

And from your other posts, it's ... which WinUSB?

 

Are you able to roll-back to a previous Windows 10 build?

Are you able to try earlier versions of Windows 10?  (1703, 1709, current release is 1803)

Reason :

Windows 10 sometimes has USB issues (USB was a major rework on Windows 10)

 

https://www.microsoft.com/en-us/itpro/windows-10/release-information

 

"Dare to be naïve." - Buckminster Fuller

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

Simone72 wrote:
The latter does not want to use it with the Winusb v6.1.7600.16385 which restores Zadig
A guess is the functional WinUSB from Windows 10 was overridden by an older WinUSB from Zadig.

In Zadig, would be surprised if the WinUSB driver (.sys) was replaced instead of the WinUSB DLL (.dll)

Hopefully, Cliff's system restore point idea is the solution.

Cliff has also written about Windows DLL hell.

If no joy then restore a backup.

 

"Dare to be naïve." - Buckminster Fuller

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

I want to set the fuse bits first, and after I run as it was told, the ICE still couldn't be found in Device Manager, so how to write in the P argument of this instruct:

avrdude -P ??? -b 19200 -c avrisp -p m328p -v -e -U efuse:w:0x05:m -U hfuse:w:0xD6:m -U lfuse:w:0xFF:m

 

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

I want to set the fuse bits first

This should be LAST, ie you don't want to set the lock bits and then try to program the chip.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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


MianQi wrote:
how to write in the P argument

 

So "-P usb"