Skip to content

Attach board error: no supported board found at serial:///dev/ttyUSB0 #1126

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
matheusfillipe opened this issue Jan 5, 2021 · 1 comment
Closed
Assignees
Labels
conclusion: invalid Issue/PR not valid

Comments

@matheusfillipe
Copy link

matheusfillipe commented Jan 5, 2021

My board is a mega (chinese clone). It isn't detected by arduino-cli but is full compatible and usable after installing the megaavr package. These commands work fine as expected:

arduino-cli compile -b arduino:avr:mega -v
arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:mega -v

But I can't get the serial console output from the board with the command: arduino-cli board attach /dev/ttyUSB0. This is the output using the -v flag:
out.txt

Why the serial command can't take both the fqbn and the usb serial path instead of one of them two only? Like in the output command. Everything works just fine for this board from arduino IDE as well.

Environment

  • CLI version (output of arduino-cli version): 0.14.0-arch Commit: a86b21d
  • OS and platform: OS: Arch Linux x86_64, DE: KDE Plasma 5.20.2, CPU: Intel i7-7700HQ (8) @ 3.800GHz, GPU: NVIDIA GeForce GTX 1050 Ti Mobile, GPU: Intel HD Graphics 630, Memory: 15.5 GiB
@per1234
Copy link
Contributor

per1234 commented Jan 5, 2021

But I can't get the serial console output from the board with the command: arduino-cli board attach /dev/ttyUSB0

This term you use "serial console output" doesn't really match with what the arduino-cli attach command does. However, the error you're getting:

Attach board error: no supported board found at serial:///dev/ttyUSB0 

is the normal 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 your derivative Mega board uses a general purpose USB to serial chip (e.g., CH340) with a manufacturer-supplied VID/PID in order to reduce BOM cost. 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

Why the serial command can't take both the fqbn and the usb serial path instead of one of them two only?

It's a good question, but we already have a feature request for this: #1073

So I'll close this as invalid/duplicate.

@per1234 per1234 closed this as completed Jan 5, 2021
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Jan 5, 2021
@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

4 participants