Skip to content

List boards with cpu option in FQBN #45

Closed
@brusherru

Description

@brusherru

Enhancement request

It will be handy to get a cpu option in FQBN while listing boards (or listing all boards) as a subset.

When listing all boards:

...
Arduino/Genuino Mega or Mega 2560		arduino:avr:mega
↳ ATmega 2560 (Mega 2560)			arduino:avr:mega:cpu=atmega2560
↳ ATmega 1280					arduino:avr:mega:cpu=atmega1280
...

When listing connected boards:

FQBN                	  		Port                  	ID         	Board Name      
arduino:avr:mega2560			/dev/cu.usbmodem1411	2341:0042	Arduino/Genuino Mega or Mega 2560
↳ arduino:avr:mega:cpu=atmega2560						ATmega 2560 (Mega 2560)			
↳ arduino:avr:mega:cpu=atmega1280						ATmega 1280

Activity

brusherru

brusherru commented on Sep 21, 2018

@brusherru
Author

It may be turned on with an optional flag --verbose or something like this.

brusherru

brusherru commented on Sep 24, 2018

@brusherru
Author

Oh. I forget that there could be more than one option (E.G. esp8266 have a lot of options).
So I propose to do something like:

{
  fqbn: 'arduino:avr:mega',
  name: 'Arduino/Genuino Mega or Mega 2560',
  options: {
    cpu: [
      {
        value: 'atmega2560',
        name: 'ATmega 2560 (Mega 2560)',
        default: true,
      },
      {
        value: 'atmega1280',
        name: 'ATmega 1280'
      }
    ]
  }
}

And for text output, something like this:

FQBN			Port			ID		Board Name
arduino:avr:mega2560	/dev/cu.usbmodem1411	2341:0042	Arduino/Genuino Mega or Mega 2560
↳ cpu
↳ ↳ Value	Option Name		Default
↳ ↳ atmega2560	ATmega 2560 (Mega2560)	✔
↳ ↳ atmega1280	ATmega 1280

So it could be extended with any amount of options.
Also, we could mark some of options as "default" (additional field default: true or column in text output), if it possible.

added a commit that references this issue on Oct 11, 2018
added this to the next alpha milestone on Oct 11, 2018
added a commit that references this issue on Jul 16, 2019
added a commit that references this issue on Aug 9, 2021

Merge pull request #45 from arduino/per1234/dead-url-check

52e129d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @cmaglie@brusherru

      Issue actions

        List boards with cpu option in FQBN · Issue #45 · arduino/arduino-cli