Skip to content

Custom board is detected as "Unknown" #456

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
intrigus opened this issue Oct 26, 2019 · 1 comment · Fixed by #463
Closed

Custom board is detected as "Unknown" #456

intrigus opened this issue Oct 26, 2019 · 1 comment · Fixed by #463
Assignees

Comments

@intrigus
Copy link

Bug Report

Current behavior

./arduino-cli board list
Port         Type              Board Name FQBN Core
/dev/ttyACM0 Serial Port (USB) Unknown

The connected board is not recognized.

Expected behavior

./arduino-cli board list
Port         Type              Board Name FQBN Core
/dev/ttyACM0 Serial Port (USB) ftduino:avr:ftduino

I'd expect the device to get recognized.
The arduino IDE correctly recognizes it.
The pid and vid are defined in the extension here:
https://github.com/harbaum/ftduino/blob/master/ftduino/boards.txt#L3-L7
Is there something else that needs to be done to recognize a custom board?

Environment

  • CLI version (output of arduino-cli version): arduino-cli Version: 0.6.0 Commit: 3a08b07
  • OS and platform: Linux.

Additional context

@cmaglie cmaglie self-assigned this Oct 29, 2019
@cmaglie
Copy link
Member

cmaglie commented Oct 29, 2019

It may be that the vid/pid pairs start with the progressive number 1 instead of 0:

ftduino.name=ftDuino
ftduino.vid.1=0x1c40   <--- should be vid.0
ftduino.pid.1=0x0537
ftduino.vid.2=0x1c40
ftduino.pid.2=0x0538

May you try to change the above lines with:

ftduino.name=ftDuino
ftduino.vid.0=0x1c40
ftduino.pid.0=0x0537
ftduino.vid.1=0x1c40
ftduino.pid.1=0x0538

and see if this fixes the problem?

cmaglie added a commit that referenced this issue Oct 30, 2019
Even if vid.0/pid.0 is missing.

Fix #456
cmaglie added a commit that referenced this issue Oct 30, 2019
Even if vid.0/pid.0 is missing.

Fix #456
intrigus added a commit to intrigus/ftduino that referenced this issue Oct 31, 2019
cmaglie added a commit that referenced this issue Nov 4, 2019
Even if vid.0/pid.0 is missing.

Fix #456
cmaglie added a commit that referenced this issue Nov 4, 2019
* Board identification: always check vid.1/pid.1

Even if vid.0/pid.0 is missing.

Fix #456

* Renamed 'again'->'present' and 'found'->'matched' for clarity
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

Successfully merging a pull request may close this issue.

2 participants