Welcome, Guest

Author Topic: Unable to connect to tool AVRISP mkII  (Read 77646 times)

lhern034

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Unable to connect to tool AVRISP mkII
« on: January 15, 2015, 12:07:32 PM »
Hello,  I was attempting to write a program into the ATMEGA1284 using the programmer AVR-ISP-MK2 by Olimex with my windows 7 and windows 8 computers but the AtmelStudio can not read it.

The error message reads:

Unable to connect to tool AVRISP mkII (000200212345)
Timestamp:   2015-01-15 01:55:39.480
Severity:      ERROR
ComponentId:   20100
StatusCode:   1
ModuleName:   TCF (TCF command: Tool:connect failed.)

Could not establish communication with the tool


Is there a way I can fix this? I tried updating the firmware but, it still does not read it. I am using Atmel Studio 6.2.

 :o






majesticra

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #1 on: February 28, 2015, 10:11:36 PM »
The same for me
The system is win 8.1

Timestamp:   2015-02-28 23:01:01.183
Severity:      ERROR
ComponentId:   20100
StatusCode:   1
ModuleName:   TCF (TCF command: Tool:connect failed.)

Could not establish communication with the tool.

If I select the device in atmel studio or call atprogram it hands and then the error appears.

I have tried:
1. Update firmware driver
2. Downgrade atmel driver bundle
3. Reinstall IDE
4. Use USB2.0 to connect the device
5. Reinstall libusb
6. Uninstall, delete drivers



At the same time the device WORKS on old laptop with win 8.1. But I can't figure out what is wrong on the new system

Update
Done! Working! After 3-d time of doing this
https://www.olimex.com/forum/index.php?topic=4188.0

What was the difference this time:
Driver verification disabled from cmd (with administrative privelegies) by:
Code: [Select]
bcdedit -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit -set TESTSIGNING ON

(To enable it back)
Code: [Select]
bcdedit /deletevalue loadoptions
bcdedit -set TESTSIGNING OFF

Carefully restarted after each step
« Last Edit: March 01, 2015, 01:42:41 PM by majesticra »

Ant2N

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #2 on: May 19, 2015, 12:53:33 PM »
I might have a simpler solution to the problem. The reason of this error is that Atmel Studio 6.2 expects the AVRISP to run the libusb drivers, which apparently wasn't the case previously.

To fix this error:

- Download Zadig: http://zadig.akeo.ie/. Zadig is a USB driver manager for Windows, and saved me a hundred times this year. The last version comes with the libusb-win32 (v1.2.6.0) driver embedded.

- Open Zadig, Options, List All Devices. The AVRISP mkII device should appear in the list.
- Replace its current driver by libusb-win32 (v1.2.6.0)

That's it! No restart required :)

Let me know if somebody had the same issue and was able to solve it this way.

Stub Mandrel

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #3 on: May 22, 2015, 10:58:06 PM »
I have registered with this forum just to say a big thanks for your driver fix for the AVR ISPII  - It worked, and I was pulling my hair out.

Stub

canislupus

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #4 on: May 30, 2015, 12:39:53 PM »
I might have a simpler solution to the problem. The reason of this error is that Atmel Studio 6.2 expects the AVRISP to run the libusb drivers, which apparently wasn't the case previously.

To fix this error:

- Download Zadig: http://zadig.akeo.ie/. Zadig is a USB driver manager for Windows, and saved me a hundred times this year. The last version comes with the libusb-win32 (v1.2.6.0) driver embedded.

- Open Zadig, Options, List All Devices. The AVRISP mkII device should appear in the list.
- Replace its current driver by libusb-win32 (v1.2.6.0)

That's it! No restart required :)

Let me know if somebody had the same issue and was able to solve it this way.

good job! been searching for a fix for months and this does it.

lanerebel

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #5 on: June 01, 2015, 06:20:43 AM »
So after being completely unable to get avrdude working with the AVR ISP MKII on my Mac, I'm trying it now in a Windows 8.1 Pro VM. I'm trying the Zadig approach, I replaced the AVR Studio-installed drivers with libusb-win32, but when I try to "Run" in AVR Studio (6.2 I believe) I get:

Could not write message to libusb0 connection: libusb0-dll:err [_usb_reap_async] timeout error

I've replaced the firmware on the AVR ISP MKII back to what it was originally, instead of the "upgrade" for avrdude that I had on there before.

Has anyone solved this one?

Update

It turns out I did have to reboot after all. This worked great after that, thanks!
« Last Edit: June 01, 2015, 07:10:05 AM by lanerebel »

sati2del

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #6 on: August 26, 2015, 06:18:38 PM »
I might have a simpler solution to the problem. The reason of this error is that Atmel Studio 6.2 expects the AVRISP to run the libusb drivers, which apparently wasn't the case previously.

To fix this error:

- Download Zadig: http://zadig.akeo.ie/. Zadig is a USB driver manager for Windows, and saved me a hundred times this year. The last version comes with the libusb-win32 (v1.2.6.0) driver embedded.

- Open Zadig, Options, List All Devices. The AVRISP mkII device should appear in the list.
- Replace its current driver by libusb-win32 (v1.2.6.0)

That's it! No restart required :)

Let me know if somebody had the same issue and was able to solve it this way.


awesome. works perfect. thank you

florins

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #7 on: September 24, 2015, 10:46:36 PM »
Thank you Ant2N, my AVR ISP MKII works fine on Windows 10 x64 after I applied your solution. Much appreciated!

calipsoii

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #8 on: October 04, 2015, 08:17:34 PM »
Registered here just to say that Ant2N's fix worked great.

Windows 10
Atmel Studio 7
AVR ISP mk II

Device recognized by Windows but Atmel Studio didn't show it connected. Tried all kinds of driver install/uninstall with no effect. Using Zadig to replace driver with libusb-win32 immediately fixed the issue. Atmel Studio 7 recognized device and performed a firmware upgrade without problems.

Thanks for the tip!

maredsous10

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #9 on: October 26, 2015, 09:14:43 PM »
Ant2N, thanks for posting that.  I had issues with atprogram.exe not functioning from the Atmel Studio 6.2 and 7.0 releases prior to trying your libusb drivers suggestion.  Haven't given the IDE tool a shot, yet

I wonder why Olimex doesn't have this on their their product page.   

https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/open-source-hardware

I might have a simpler solution to the problem. The reason of this error is that Atmel Studio 6.2 expects the AVRISP to run the libusb drivers, which apparently wasn't the case previously.

To fix this error:

- Download Zadig: http://zadig.akeo.ie/. Zadig is a USB driver manager for Windows, and saved me a hundred times this year. The last version comes with the libusb-win32 (v1.2.6.0) driver embedded.

- Open Zadig, Options, List All Devices. The AVRISP mkII device should appear in the list.
- Replace its current driver by libusb-win32 (v1.2.6.0)

That's it! No restart required :)

Let me know if somebody had the same issue and was able to solve it this way.


david_a

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #10 on: November 12, 2015, 04:56:36 AM »
The Zadig solution did not work for me.
The error message looks close to what it did before but not exactly:

Unable to connect to tool AVRISP mkII

Timestamp:   2015-11-12 03:47:52.894
Severity:      ERROR
ComponentId:   20100
StatusCode:   131118
ModuleName:   TCF (TCF command: Tool:connect failed.)

Target not detected

I am trying to communicate with a XMEGA Xplained A1 through PDI and I have followed the instructions posted at avrfreaks for connecting the PDI correctly.
This is on Windows 8.1 pro.

Do anyone know what's wrong?

Regards

JohnS

  • Hero Member
  • *****
  • Posts: 1659
  • Karma: +33/-45
Re: Unable to connect to tool AVRISP mkII
« Reply #11 on: November 12, 2015, 09:44:16 AM »
Did you run it as Admin?

It always works...

John

david_a

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #12 on: November 12, 2015, 09:27:31 PM »
No, but I did run both the driver changing software and Atmel Studio 6.2 again as admin and it was no change.
The power does at least get through to the board, I am going to try and see if AVRdude manages to communicate with the board.

Regards

JohnS

  • Hero Member
  • *****
  • Posts: 1659
  • Karma: +33/-45
Re: Unable to connect to tool AVRISP mkII
« Reply #13 on: November 12, 2015, 10:34:47 PM »
It may be the changes in Atmel 6.2 as others have posted about it being broken as installed.  I forget wht the fi is but it's been posted.

(I use Linux where using tools just works.)

John

david_a

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Unable to connect to tool AVRISP mkII
« Reply #14 on: November 16, 2015, 12:49:39 PM »
Did these posts mention any solution to this problem or do I nee to change atmel studio version.
Atmel Studio 6.2 is the first and only atmel studio(AS) I have used and I know that 7 has come out, but in XMEGA documentation they recommend AS 4 or 5. Is these still relevant to people like me who are just getting into programming mcu's and focus is on XMEGA and PDI programming?

Regards