Skip to content

Missing FQBNs for non AVR boards #996

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
PeterWone opened this issue Sep 30, 2020 · 4 comments
Closed

Missing FQBNs for non AVR boards #996

PeterWone opened this issue Sep 30, 2020 · 4 comments
Labels
conclusion: invalid Issue/PR not valid

Comments

@PeterWone
Copy link

PeterWone commented Sep 30, 2020

Bug Report

Current behavior

Boards listed for the arduino:avr core specify FQBNs.

  {
    "ID": "arduino:avr",
    "Latest": "1.8.3",
    "Name": "Arduino AVR Boards",
    "Maintainer": "Arduino",
    "Website": "http://www.arduino.cc/",
    "Email": "[email protected]",
    "Boards": [
      {
        "name": "LilyPad Arduino USB",
        "fqbn": "arduino:avr:LilyPadUSB"
      },
      {
        "name": "Arduino Industrial 101",
        "fqbn": "arduino:avr:chiwawa"
      },

Boards listed for other cores do not provide FQBN.

  {
    "ID": "arduino:sam",
    "Latest": "1.6.12",
    "Name": "Arduino SAM Boards (32-bits ARM Cortex-M3)",
    "Maintainer": "Arduino",
    "Website": "http://www.arduino.cc/",
    "Email": "[email protected]",
    "Boards": [
      {
        "name": "Arduino Due"
      }
    ]
  },
  {
    "ID": "arduino:samd",
    "Latest": "1.8.8",
    "Name": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)",
    "Maintainer": "Arduino",
    "Website": "http://www.arduino.cc/",
    "Email": "[email protected]",
    "Boards": [
      {
        "name": "Arduino MKR WiFi 1010"
      },

The FQBN is required by arduino-cli compile and other commands.

arduino-cli core search --format json

Expected behavior

All boards for which an FQBN is defined should report FQBN in the response to core search

Environment

  • CLI version (output of arduino-cli version): arduino-cli Version: 0.13.0 Commit: 693a045
  • OS and platform: Windows 10 build 2004

Additional context

67 boards are reported for various cores. 30 are from arduino:avr and only these report FQBN.

@ubidefeo
Copy link

@PeterWone
that looks odd
I have tried the same and it works

{
    "ID": "arduino:sam",
    "Latest": "1.6.12",
    "Name": "Arduino SAM Boards (32-bits ARM Cortex-M3)",
    "Maintainer": "Arduino",
    "Website": "http://www.arduino.cc/",
    "Email": "[email protected]",
    "Boards": [
      {
        "name": "Arduino Due (Programming Port)",
        "fqbn": "arduino:sam:arduino_due_x_dbg"
      },
      {
        "name": "Arduino Due (Native USB Port)",
        "fqbn": "arduino:sam:arduino_due_x"
      }
    ]
  }

and

{
        "name": "Arduino MKR WiFi 1010",
        "fqbn": "arduino:samd:mkrwifi1010"
      }

@PeterWone
Copy link
Author

PeterWone commented Sep 30, 2020 via email

@PeterWone
Copy link
Author

PeterWone commented Sep 30, 2020

I can now reproduce consistent behaviour.

A board's FQBN is reported by core search only when the core for that board is installed.

Whether this is a bug depends on whether the documentation says it should happen. Personally I can't see the value of listing the boards without FQBNs.

@ubidefeo
Copy link

@PeterWone the timing is right
I just found out another bug with the core search in that it only searches within the platform's name.
Thank you for filing #997
I'll close this one and move the discussion there

@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Sep 30, 2020
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

3 participants