Does AVR JTAG ICE v2 even have a control program? (I don't mean driver!)

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

First, Windows didn't recognize the programmator. I had to download the driver via trial+error on broken links on the internet.

I got it, it said USB-SERIAL CH340 (COM10) in Device Manager.

Second, I don't know which computer program do I need to use to run this thing. How can I tell it to get some data off of the microcontroller and to put some on it? Surely I need a programmator software.

I found AVRDude in GUI form, selected my device, entered COM10, but it says this 

trying to connect to device...
avrdude: ser_open(): can't open device "COM10": Sustav ne mo×e pronaŠi navedeno
polje.

Because my Windows is in Croatian, plus, Croatian uses non-ASCII letters so there's garbage, let me say what it really said:

"Sustav ne može pronaći navedeno polje."

which means:

"System cannot find the specified field."

And then, an extra instance of AVRDude GUI launches!

Which means third, I don't have a working programming program!

 

Is there a programming software for this thing!?

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

Forget avrdude GUI versions (which probably hide half of what's going on). Just run avrdude.exe at a command prompt. It should be able to use an Atmel JTAGICEmkII for programming via either ISP or JTAG. In avrdude you can get more and more detail of what is/isn't working by adding -v to the command line. Keep adding them (up to 4 of them) to get more and more verbose.

 

BTW on a PC where you have already installed Atmel software (specifically their "Jungo" driver) the avrdude will need to use the "filter driver" version of libusb not the full version.

Last Edited: Thu. Mar 26, 2015 - 10:40 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't understand the single thing. What's a Jungo driver? What's the filter driver and what's libusb?

My way of understanding is this:

  1. Paste link to address bar
  2. Click download
  3. Run next next tick next
  4. Follow my instructions
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just do a thread search here for "jungo filter driver" and you'll find 50+ threads there this has already been solved for others. There's no point me just retyping the same old stuff over again.

 

The issue only occurs if you have already installed any of Atmel's tools (Studio 4 or Studio 6) and has to do with the fact that there are two ways for windows to "talk" to an ICEmkII.

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

I don't know if they do. As much as I think, I don't think Windows even knows what JTAG ICE even is! I have Atmel Studio 6.2 with forcefully ripped out and "duct-taped" beta version of AVR8 C/C++ toolchain from the toolchain folder (blame the programmers who made the compiler error when I wanted to PROGMEM-ify my typedef structs with 24-bit pointers)

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

I searched, but I don't find anything familiar. Please find me a link, I can't do this myself because I don't know what all these random unknown terms mean!

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

I got it, it said USB-SERIAL CH340 (COM10) in Device Manager.

I doubt if you own a genuine Atmel JTAGICE-mkII

However,   you can control the real JTAGICE-mkII via RS232 instead of USB if you really want to.    (you need an external power supply and a USB->RS232 adapter cable)

 

I doubt if AS6 supports this method of controlling the JTAGICE-mkII.

 

Yes,   the JTAGICE-mkII works fine with AS4 and RS232.

 

I suspect that you have a Chinese JTAGICE-1 clone that appears as a COM port in Windows.

Yes,   I have tried this type of Chinese JTAGICE-1 clone.   With internal FTDI and with CH340 chips

Yes,   AS4 works fine with both of these clones.     AS6 will never work with Chinese JTAGICE-1 clones.

 

David.

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

Here's a picture of what I have: https://www.dropbox.com/s/o6d92y... . Now what?

 

EDIT+PS: Pardon my poor camera and the finger on the bottom. It didn't come out like that on my phone's screen because the stupid GUI bar was covering it.

Last Edited: Thu. Mar 26, 2015 - 11:16 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was going to say that you could tell it was a "real" JTAGICEmkII because it looks like this:

 

http://www.atmel.com/webdoc/jtagicemkii/images/jtagicemkii_photo.jpg

 

But unfortunately some clones have even copied Atmel's plastic case design.

 

In USBDeview.exe you should find that an Atmel JTAGICEmkII has VID/PID as follows:

03eb  Atmel Corp.
	2103  JTAG ICE mkII
	2104  AVR ISP mkII

If the VID/PID don't appear at all then Windows simply isn't seeing the device. If the VID/PID are different it's not a true Atmel device. (having said that I guess the clones show the same VID/PID?)

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

I have exactly the same Chinese JTAGICE-1 clone as the pink one in your photo.

 

Note that Ebay vendors are very devious.    They have stolen the Atmel logo.     They will say anything to deceive the punter.

 

I can help you use it in AS4.     It only works with mega16/32/64/128 and a few other old chips.

 

David.

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

https://www.dropbox.com/s/svn5yn... this is what I have on the screen.

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

david.prentice wrote:

I have exactly the same Chinese JTAGICE-1 clone as the pink one in your photo.

 

Note that Ebay vendors are very devious.    They have stolen the Atmel logo.     They will say anything to deceive the punter.

 

I can help you use it in AS4.     It only works with mega16/32/64/128 and a few other old chips.

 

David.

I have ATXMEGA128A1. So how do I make it work?

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

Why can't you post that PNG in a message? I cannot access "dropbox".

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

I don't believe you.    My Chinese JTAGICE-1 clone uses a genuine CH340 chip.

 

If yours is appearing as FTDI,    it will be using a counterfeit FTDI chip.     And FTDI drivers may not work at all.

 

Please post the actual Ebay link to the item in your photo.

 

David.

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

The clone that I own is 5V only.     The internal firmware will only work with mega16/32,...   and AS4.

 

There are reports that the GNU debugger might work with modern AVRs.   Look for posts from Brutte who comes from Poland.

 

It seems a pointless exercise.     You can buy a genuine ATMEL-ICE which is not very expensive.     This will work with every Atmel chip.    And most importantly with AS6 software.

 

David.

Last Edited: Thu. Mar 26, 2015 - 11:51 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.ebay.com/itm/19144278... <- I ordered this.

 

And here are some attachments

Attachment(s): 

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

As it says on that web page:

4.  Works with AVR Studio 4.12/4.14/4.16/4.17/4.18

so have you tried it with AS 4.18 ?

 

As for avrdude - it should know it as either "-c jtag1" or "-c jtagmkI". As it appears to present a UART interface to the PC then you need "-P com7" replacing '7' with whatever number Windows has assigned to it as a COM port number.