Skip to content

Attaching port doesnt work with esp8266 #1116

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

Closed
BernH4 opened this issue Dec 27, 2020 · 2 comments
Closed

Attaching port doesnt work with esp8266 #1116

BernH4 opened this issue Dec 27, 2020 · 2 comments
Assignees
Labels
conclusion: invalid Issue/PR not valid

Comments

@BernH4
Copy link

BernH4 commented Dec 27, 2020

I installed the right core for my ESP8266 (esp8266:esp8266:nodemcuv2) and i can upload perfectly by specifying the port manually:
arduino-cli upload -p /dev/ttyUSB0

Altough i cant use the attach command with this board:
arduino-cli board attach serial:///dev/ttyUSB0
Output:
Attach board error: no supported board found at serial:///dev/ttyUSB0

I also tried it without serial:// and by writing the port manually in the sketch.json file but this results in the error message:
Error during Upload: uploading error: no upload port provided
when running the command arduino-cli upload.

I can specify the board fine via attach.

Environment

  • CLI version: (arduino-cli alpha Version: 0.14.0-arch Commit: a86b21d Date:
  • OS and platform: ArchLinux running in a virtual Machine
@BernH4 BernH4 changed the title Attach doesnt work with esp8266 Attaching port doesnt work with esp8266 Dec 27, 2020
@per1234
Copy link
Contributor

per1234 commented Dec 27, 2020

This is the expected behavior. The only way the board can be identified automatically is if it presents a unique VID/PID pair. This is the case with all the modern official Arduino boards, and some 3rd party boards, but the ESP8266 boards use general purpose USB to serial adapter chips (e.g., CH340) that use the VID/PID provided by the chip manufacturer. There is no way to know which board is on the other side of that general purpose chip.

Fortunately, board identification is merely a convenience feature and so this type of board is still perfectly usable with Arduino CLI.

More information: https://arduino.github.io/arduino-cli/latest/FAQ/#arduino-unomegaduemilanove-is-not-detected

@per1234 per1234 closed this as completed Dec 27, 2020
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Dec 27, 2020
@matthijskooijman
Copy link
Collaborator

See also #1073, which requests being able to specify the FQBN and port to attach.

@rsora rsora reopened this May 11, 2021
@per1234 per1234 self-assigned this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid
Projects
None yet
Development

No branches or pull requests

5 participants