Atmel ICE: what is the incantation to use it?

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

I recently used JTAG through an Atmel ICE on a board with an ATmega2560.

Since then, I've not been able to get another debug session started.

AVR Studio 7 keeps telling me that it can't find the ICE.

 

What tool can I use on Windows 10 to bypass AS to tell whether the ICE is correctly connected?

If the ICE is correctly connected, what is the incantation to use it through AS7?

 

I'd be happy to tell you what I've done already,

but I've done rather a lot and don't remember most of it.

In case it helps, on the ICE, from edge in, the LEDs are green, red and off.

 

Does avrdude do Atmel ICEs?

Can I get avrdude without installing WinAVR?

This topic has a solution.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

Last Edited: Fri. Oct 27, 2017 - 03:45 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

skeeve wrote:
I'd be happy to tell you what I've done already, but I've done rather a lot and don't remember most of it.

I can relate to that, being of a certain age.

 

skeeve wrote:
AVR Studio 7 keeps telling me that it can't find the ICE.

Yet another symptom of global warming -- disappearing ICE.  Unless you are a denier.

 

skeeve wrote:
what is the incantation to use it through AS7?

"Dilly-Dilly"?  https://www.youtube.com/watch?v=... (but be careful of the Urban Dictionary meaning https://www.urbandictionary.com/... )

 

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

Also, when I pull the USB connection,

AS7 tells me that I have selected a tool that is not connected.

The message goes away after reconnecting.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

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

skeeve wrote:
What tool can I use on Windows 10 to bypass AS to tell whether the ICE is correctly connected?
Windows Device Manager

https://support.microsoft.com/en-us/help/4026149/windows-open-device-manager

If before Atmel Studio 7.0.1416 then Jungo is between Atmel Studio and Windows; may need some Jungo operations to restore function.

Atmel Studio

Driver and USB Issues

http://www.atmel.com/webdoc/GUID-ECD8A826-B1DA-44FC-BE0B-5A53418A47BD/index.html?GUID-033A42FD-C88B-4874-AC33-7807B5F9C91F

skeeve wrote:
Does avrdude do Atmel ICEs?
Yes

skeeve wrote:
Can I get avrdude without installing WinAVR?
Yes

 


AVR Downloader/UploaDEr - News: AVRDUDE 6.3 released

http://savannah.nongnu.org/forum/forum.php?forum_id=8461

http://download.savannah.gnu.org/releases/avrdude/ (...mingw32.zip)

 

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

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

skeeve wrote:
... Windows 10 ...
Be wary of Windows 10 updates of device drivers as these have a tendency to cause nonfunctional USB devices.

 

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

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

Thanks folks.

I'll try later.

Late for other job.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

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

The device manager claims that the Atmel ICE is functioning correctly.

Absent another suggestion,

my next step is to discover whether avrdude agrees.

 

Avrdude does not agree.

It claims it cannot find the vid and pid of the device the device manager says is functioning properly.

This is driving me nuts.

It's basically a show-stopper.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

Last Edited: Fri. Oct 27, 2017 - 01:55 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

But avrdude has issues with Atmel tools if the jungo driver is also installed. You need libUSB with the filter driver, see this thread:

http://www.avrfreaks.net/forum/a...

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

Hi Skeeve, When you go to "Tools/Device Progamming" can you see the Atmel-ICE under Tool and is the correct Device selected? You should be able to read the Target Voltage at least judging by the LED indicators you mentioned.

 

Example from my current setup:

Tool: Atmel-ICE

Device: ATMega328P

Interface: ISP

 

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

I can read device voltage, 4.5, but not device signature.

I get no jtag device found.

I've had this running before and have no idea what I'm doing different.

 

I'm reluctant to install any USB stuff for avrdude.

I'm not planning to use avrdude and previous experience tells me

that getting programs with different USB needs to run is tricky at best.

My recollection is that I did it, but it followed experiences like what I'm having now.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

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

When will we stop involving Jungo and winusb for the Atmel-ICE? Nothing since the early jtagice3 used it. Everything newer uses HID!

:: Morten

 

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

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

The solution was another pair of eyes.

I had the ICE plugged wrong into the target.

It works now that all ten pins are connected into the right places.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

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

Oops.  I'm glad I have never done such a thing.  wink

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

Excellent! Just read that you got it working. If you can read the voltage but can't talk to the device then your wires are wrong -- or you got some bad fuse times ahead ;)

 

Glad to hear all is good now.