VS Arduino
>> >> avrdude: usbdev_open(): did not find any USB device "usb"
https://www.visualmicro.com/forums/YaBB.pl?num=1344981643

Message started by Enddoc on Aug 14th, 2012 at 10:00pm

Title: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Enddoc on Aug 14th, 2012 at 10:00pm
Admin Note: If you have ticked "Tools>Upload using programmer" and have not purchased a special hardware programmer then you should un-tick the menu item for normal Arduino serial/usb upload (when you press F5 or "Debug>Start"). This thread will not apply to you


Good Evening,

The problem is no usb transfer 'F5.

OS is Windows 7 sp1, VS2010 setup is programmer = AVRISP mkII. Previously,  I ran Arduino 101 no problems and transferring worked well but not with VS2010.

This is what I got when I chose F5:
Compiling 'MySketch' for 'Arduino Duemilanove w/ ATmega328'
Binary sketch size: 466 bytes (of a 30720 byte maximum) (1.16 secs)
Uploading to I/O board using 'avrispmkii'
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "V:\Arduino\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb"
:-X

Can you help me?
Thanks in Advance.

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Visual Micro on Aug 14th, 2012 at 10:36pm
Thanks for the report.

I will look into it. I'll post an update when there is some news

In the meantime you might not know about the "External Editor" checkbox in arduino ide preferences.

Switching the checkbox "on" allows the same sketch to be loaded in both arduino and visual studio at the same time.  Arduino will be in readonly mode but arduino will auto detect changes made in vs when you click upload.

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Visual Micro on Aug 14th, 2012 at 11:21pm
Hi Enddoc,

1)
Can you please open the arduino ide and confirm if you can use the programmer to upload without this error?

2)
and also please open device manager and tell me which usb driver shows for the avrisp mkII?


Info

I have a new win7 machine and I have the same problem as you. I also get the problem when attempting to use a programmer in the arduino ide. It was all working fine on my old win32 machine!

I have also installed atmel studio which has installed the jungo usb driver for the avrisp mkii. Windows doesn't seem to like it, some sort of usb driver problem unrelated to visual studio.

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Enddoc on Aug 15th, 2012 at 6:08pm
1)
Can you please open the arduino ide and confirm if you can use the programmer to upload without this error?
ANSWER:
From preferences.txt > programmer=arduino:avrispmkii

This worked:
int ledPin =  13;    // LED connected to digital pin 13

void setup()
{

  /* add setup code here */
pinMode(ledPin, OUTPUT);   
}

void loop()
{

  /* add main program code here */
    digitalWrite(ledPin, HIGH);   // set the LED on
  delay(1000);                  // wait for a second
  digitalWrite(ledPin, LOW);    // set the LED off
  delay(1000);                  // wait for a second

}

2)
and also please open device manager and tell me which usb driver shows for the avrisp mkII?
ANSWER:
FTDI Ltd
Version: 2.08.14 built by WinDDK
It came with Ardunio 1.0.1 and it works well on COM3, COM5.

Info

I have a new win7 machine and I have the same problem as you. I also get the problem when attempting to use a programmer in the arduino ide. It was all working fine on my old win32 machine!

I have also installed atmel studio which has installed the jungo usb driver for the avrisp mkii. Windows doesn't seem to like it, some sort of usb driver problem unrelated to visual studio.

I could understand why yours might not work installing another IDE but my Windows 7 is completely virgin. :D

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Enddoc on Aug 15th, 2012 at 6:20pm
Yes, Visual Micro, I compiled in vs2010 and used the Arduino IDE set to 'external editor' as a work around upload er. All works well.

Thank you. 8-)

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Visual Micro on Aug 15th, 2012 at 10:04pm
Thanks for the feedback. I'll install new usb for my isp and find the problem. Hope to give feedback within a few days.

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Visual Micro on Aug 16th, 2012 at 9:50pm
Hello,

The avrisp upload is working okay for me but reading your answers again I have some questions?

1) You say upload works okay from arduino ide on COM3, COM5. The avrisp doesn't have a COM port so that means normal serial upload is being used in arduino ide. What happens if you click "File>Upload using programmer" in the arduino ide?

2) Preferences.txt might be storing the default or last used programmer but it might not actually be uploading using a programmer. Both arduino and visual micro use an avr program called avrdude.exe to upload so we would expect the same results in both apps. Please untick "Tools>Upload using programmer" in Visual Micro and try your upload again.

3) My understanding is that FTDI drivers are used to map USB to pc serial ports which provides COM1,2,3 etc. These drivers provide normal arduino serial upload (via arduino usb port) and are not the drivers used by an external avrispII programmer which connects to the 6 pin ICSP header on an arduino board. Do you have a programmer connected to the ICSP port on the arduino or are you expecting upload using the normal arduno usb port?

Thanks very much, sorry if my questions are too basic

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Enddoc on Aug 17th, 2012 at 11:35pm
Hello Mr. Visual Micro,

1) You say upload works okay from arduino ide on COM3, COM5. The avrisp doesn't have a COM port so that means normal serial upload is being used in arduino ide. What happens if you click "File>Upload using programmer" in the arduino ide?

Answer: I am using USB=COM method. I get: avrdude: usbdev_open(): did not find any USB device "usb" when I upload using programmer. So there is the problem. Can’t visual micro use USB=COM?  :)


2) Preferences.txt might be storing the default or last used programmer but it might not actually be uploading using a programmer. Both arduino and visual micro use an avr program called avrdude.exe to upload so we would expect the same results in both apps. Please untick "Tools>Upload using programmer" in Visual Micro and try your upload again.

Answer: Yes that fixed it! ;D How did I miss that check/unchecked within your instruction. I thought I read everything. I never checked it. You better verify your installer defaults are not set with the programmer uploading=true.

Never are instructions too simple. Simple and concise instructions are always best so thank you very much.

All and all I must complement you and your team for such a fine job Visual Micro is very fast vs the Arduino IDE.  ;)

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Visual Micro on Aug 18th, 2012 at 6:37am
Thanks I am pleased it was the menu item incorrectly checked.

I dont think it is the installer because it doesn't know about the registry keys for the menu items.

But anyway these things can easily happen and can be confusing for new users. Two other people had same problem before. We are here to help :)

Good luck with your projects

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by sixeyes2 on Aug 19th, 2012 at 7:53am
I remember that I had this issue with VM when I first tried to use it. It seems to me that the use of  a programmer is an advanced feature. Perhaps that menu could be hidden?

Perhaps when you install the default is "Basic" mode but "Advanced" can be selected in the VM settings?

OR a section (tab) of VM settings called "Advanced" that enable these options.

This would prevent inadvertent use of the "Programmer" menus. As I recall there are a couple of other menu items that can cause problems but I can't remember them right now. Been quite a few months since I've worked on my Arduino projects :(

Iain

Title: Re: avrdude: usbdev_open(): did not find any USB device "usb"
Post by Visual Micro on Aug 19th, 2012 at 10:33am
That is a good idea. The simpler the better makes sense :)

NOTE to Others: If you have not purchased a separate Arduino programmer and are using a USB cable to upload then ensure "Tools>Upload Using Programmer" is un-ticked (not ticked)

If you have a programmer (special hardware) then this thread explains how to load the correct usb drivers...


VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.