AVR ISP Mk2 not found by AVR Studio 4

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
chrisc
Posts: 3
Joined: Wed Dec 29, 2010 12:49 am

AVR ISP Mk2 not found by AVR Studio 4

Post by chrisc »

I have just purchased an e-Block bundle with C for AVR programmers and AVR Studio. I am running Windows XP.
I have loaded all the appropriate software (I think) and have connected the AVR ISP Mk 2 to the PIC programming board with the LED board on port A. When powered and the USB port is connected to the PC, both the board and AVR ISP green LEDs are lit and the LED board scans the red LEDs about every 10 seconds.
I have run TestLibUsb-win.exe and it shows the AVR ISP is connected and displays this text:
DLL version: 0.1.12.1
Driver version: -1.-1.-1.-1
bus/device idVendor/idProduct
bus-0/\\.\libusb0-0001--0x03eb-0x2104 03EB/2104
- Manufacturer : ATMEL
- Product : AVRISP mkII
- Serial Number: 000200018939
wTotalLength: 32
bNumInterfaces: 1
bConfigurationValue: 1
iConfiguration: 0
bmAttributes: c0h
MaxPower: 50
bInterfaceNumber: 0
bAlternateSetting: 0
bNumEndpoints: 2
bInterfaceClass: 255
bInterfaceSubClass: 0
bInterfaceProtocol: 0
iInterface: 0
bEndpointAddress: 82h
bmAttributes: 02h
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0
bEndpointAddress: 02h
bmAttributes: 02h
wMaxPacketSize: 64
bInterval: 10
bRefresh: 0
bSynchAddress: 0

Windows also recognizes the AVR ISP Mk2 in the system hardware device manager under LibUSB-W32 Devices.

However, when I run AVR studio 4 and try to connect to AVRISP Mk2 through the USB, it pauses for a few seconds and then report "fail to connect".
What am I doing wrong?
Thanks
Chrisc

User avatar
Steve
Matrix Staff
Posts: 3431
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: AVR ISP Mk2 not found by AVR Studio 4

Post by Steve »

Hello Chrisc,

Sorry you're waiting for a reply for this - most of our technical staff are not at work at the moment (it's a bank holiday today) so you'll need to wait until tomorrow for an answer. I'll make sure someone deals with your problem as soon as they can.

chrisc
Posts: 3
Joined: Wed Dec 29, 2010 12:49 am

Re: AVR ISP Mk2 not found by AVR Studio 4

Post by chrisc »

Thanks Steve. Totally understood due to the holidays.
Just to add a bit more detail. I have tried following the instructions available on help pagers and look through the troubleshooting to see if I can find a solution but I always end up with the same situation. I have even tried a Windows 7 Laptop but it's exactly the same problem. (My Main Windows XP PC is a DEL Dual core 2.8Ghz Pentium D with 3 GB of RAM and has had all the latest Microsoft updates applied and I tend to to Firefox as my default browser although I have others available for development testing purposes)

I have the EB0019-00-2 main board and the 40 pin PIC that came with it which is an ATMEGA234P. I have also tried to see if the AVRISP firmware is up to date (by using the AVRISP update facility if the Tools menu of Studio 4) but despite manually putting it into update mode, (LED flashes Orange and red) again Studio 4 can not find the device to carry out the update despite it still being recognized by Windows and the test application as above.
It's like I have a perfectly valid Windows driver but it's not one that Studio 4 is able to use!
Very odd.

Regards
Chris

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: AVR ISP Mk2 not found by AVR Studio 4

Post by Sean »

Hello,

This appears to be a driver problem. There are two common drivers for the AVRISPmkII wihich we have found to be incompatible.

Your information indicates that the AVRISPmkII programmer is using the Libusb driver. This is supplied with many 3rd party AVR development tools that use the AVRDUDE programming application.

AVR Studio is supplied with a Jungo driver to allow its STK500 programming application to communicate with the programmer.

Your PCs will probably be using the driver that was installed first for the programmer (Libusb in this case). It should be possible to uninstall the Libusb driver and select the Jungo driver by plugging the programmer into the PC and finding the driver in Control Panel -> System -> Hardware -> Device Manager.

Uninstall the driver
Disconnect the programmer
Re-connect the programmer
Use the Found New Hardware procedure to locate the driver supplied by AVR Studio

Changing the driver might prevent other AVR applications from being able to use the programmer (the process will need to be reversed to re-install the Libusb driver if you want to use them).

Flowcode for AVR can now use either driver.

This topic has been discussed in several forum threads, including the one linked below:

http://www.matrixmultimedia.com/mmforum ... isp#p15877

chrisc
Posts: 3
Joined: Wed Dec 29, 2010 12:49 am

Re: AVR ISP Mk2 not found by AVR Studio 4

Post by chrisc »

Hello Sean,
Well I can easily un-install the current driver but all I can find supplied with the software I was supplied with is the Libusb driver! I have the "C for AVR Microcontrollers" CDR by Rob and David Miles supplied with my bundle along with the Matrix ELSAM v2.3 Drivers and software CDR and the AVR Technical Library DVD. The first CDR contains Studio 4 and a key for the professional version.
What is most frustrating is that I cannot find the Jungo driver you refer to on any of them. I can not find it on your web site either and the links I have come across so far in the forum postings you have pointed me at do not seem to be valid now.
If this driver is needed for the product combination in my bundle, why is it not supplied? :x
Can you please provide me with a working link to the driver I require.
Many thanks in advance.

Chris

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: AVR ISP Mk2 not found by AVR Studio 4

Post by Sean »

The driver required by AVR Studio is part of the AVR Studio installation. We are not able to re-distribute these files, but downloads and updates are available from the Atmel website:

http://www.atmel.com/dyn/products/tools ... ol_id=2725

After uninstalling the Libusb driver and re-connecting the AVRISP programmer, the Found New Hardware proceddure should be used to manually select the driver:
Don't search the internet
Install from list or specific location
Don't search for the driver

This should display the available drivers:
AVRDriverSelect.JPG
AVRDriverSelect.JPG (74.98 KiB) Viewed 8879 times
In this case the two drivers with version numbers starting 0.1 are Libusb drivers and the other two are versions of the Jungo driver.

If this does not solve the problem, it maight be necessary to uninstall the current AVRISPmkII driver and re-install AVR Studio.

Post Reply