Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) #47

Closed
meikse opened this issue Jan 15, 2022 · 3 comments
Closed

Comments

@meikse
Copy link

meikse commented Jan 15, 2022

After verifying, by calling :ArduinoUpload I get the error:

         Using Port                    : usb
         Using Programmer       : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  Thank you.

Error during Upload: Failed programming: uploading error: exit status 1)

so the port is supposed to be something like

Using Port : /dev/ttyACM0

also in the ArduinoInfo, I get the following

Board           : arduino:avr:uno                                  
Programmer : avrispmkii
Port              : /dev/ttyACM0
Baud rate     : 9600

I tried to find the bug inside autoload/arduino.vim but I have no idea where you declare the "arduino-cli upload", since the :echo arduino#GetCLICompileCommand('-u') would not change the arduino-cli command.

Can you tell me how to correct this bug?? ..because your plugin seems to be very handy! nice work!

ps: compiling and uploading the sketch with arduino-cli works properly.

@meikse
Copy link
Author

meikse commented Jan 16, 2022

I am sorry for the disturbance. by default the programmer avrispmkii is chosen.
By simply changing it to avrisp with :ArduinoChooseProgrammer it runs flawlessly.

No Bugs with vim-arduino
No Bugs with arduino-cli

..just me being tired and producing easy errors

@meikse meikse closed this as completed Jan 16, 2022
@stevearc
Copy link
Owner

No worries! Glad you figured it out

@meikse
Copy link
Author

meikse commented Jan 16, 2022

edit: also my closed answer is not properly correct.

it worked when I selected no programmer for the uno (obviously)

edit in init.vim i.e. :
let g:arduino_programmer = ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants