AVRISP MK2 stopped working.

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

For many years, I have used a few batch files to program ATTiny44 chips for a client. Every now and then he asks for 50 or 100, and I program them and forget about them for a few months.

The batch files I've always used use the SKT500.EXE command, which I have in the same directory. Now, suddenly, the SKT500.EXE reports that it is unable to connect via USB. Could be that my trusty AVRISP MK2 is broken, I suppose, but I'm inclined to believe something has changed driver-wise. Is there a way I could use AVRDude to check out the functionallity of the AVRISP?

 

Four legs good, two legs bad, three legs stable.

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

SKT? Did you type it like that, twice? Or was the second time a cut-and-paste?
Did you install the latest Atmel Studio lately? I hear they made an incompatible driver change.

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

In the batch file it's stk500, I've never actually used a real-life stk500, although I may have had one in a cupboard at some point. Forgive me if I don't remember the order of the letters..

My Atmel Studio(that I haven't used for years) is 6.2, and I can tell you that it does not appear to recognize the AVRISP MK11 or my JTAGICE3 for that matter. I will dig out the JTAGICE mk11....

 

Atmel Studio doesn't see that either, so I am still leaning towards a driver problem.

Four legs good, two legs bad, three legs stable.

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

The incompatible change was in a Studio 7 version ( https://www.avrfreaks.net/forum/a... ). So, if your drivers are from v6 then it must be something else. But I guess I would doublecheck the Jungo version anyway (to make sure that it is below 12.x).

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

Jungo WinDriver version 11.7.0.0

Four legs good, two legs bad, three legs stable.

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

11.7? Interesting. The way I understood Morten's post was that 11.5 was the last v11 and that the incompatible change was made in v12. Looking at http://www.jungo.com/st/support/... . It appears that 11.7 is already incompatible. Maybe that is your problem, then?

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

I will look at that link tomorrow. Too tired now, but thanks for the pointer.

But, as it happens, I think this may have happened when I installed software for P&E device on Freescale eval PCB. I think they have over-written my old WinDriver...

 

 

 

Four legs good, two legs bad, three legs stable.

Last Edited: Wed. May 18, 2016 - 11:06 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, I have no idea how to sort this out. I now have an Atmel AVRISP-mk11 that is no use, an Atmel JTAGICE2 that is no use, an Atmel JTAGICE3 that is no use, and an Atmel SAMICE that I daren't check.

I tried downloading Atmel Studio 6.2 three times, each time it failed. The Jungo website give no information that I can find about rolling back drivers. What was going to be a 1 hour task has turned into a nightmare. Can anyone help me? Should I try to use AVRDude with the AVRISP2? Not that that will help with my useless JTAG equipment...

 

Four legs good, two legs bad, three legs stable.

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

I managed to download an earlier version of 6.2. Re-installed, still no AVRISP or JTAGICE.

 

Four legs good, two legs bad, three legs stable.

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

You should check the cable on the device, we had one of these where that was the cause of the problem. The plastic itself is not too hard to take apart, should take about 5 minutes.

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

The PEmicro forums also have some topics on incompatibilities between their drivers and Atmel's. Maybe they could provide a solution.

 

http://www.pemicro.com/forums/forum.cfm?forum_id=8&forum_topic_id=4801

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

bazsa56 wrote:

You should check the cable on the device, we had one of these where that was the cause of the problem. The plastic itself is not too hard to take apart, should take about 5 minutes.

Not cable. AVRISP mk11 still works on my old XP laptob, and JTAGICE3 uses a different cable anyway.

 

Four legs good, two legs bad, three legs stable.

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

6.2 probably does not install the driver if there is a newer versions. You probably need to uninstall the new version, then install the old version.

Personally, I use the drivers from driver-atmel-bundle-7.0.888.exe. You don't even have to install the whole Studio, just that "bundle". I use it with both stk500.exe and atprogram.exe. It looks that you can still get it at the gallery: https://gallery.atmel.com/produc...

Alternatively, if you want both the old and the new Jungo versions, you should probably do something along these lines: http://atmel.force.com/support/a...

Last Edited: Thu. May 19, 2016 - 10:50 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks. I have seen that Atmel link before, but I couldn't find the files it refers to.

I have managed to get AVRDude working with this AVRISP mk11, but it annoyingly disconnects and reconnects the USB after every device it programs in my looped batch file. I don't know if there's a way round this.

 

Four legs good, two legs bad, three legs stable.

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

Which version of AVRDUDE is that?

The USB reset has been restricted to Linux-only systems (where it is reported to be needed at least in some situations) with AVRDUDE 6.1.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.