Skip to content

Impossible to set multiple options for a board #637

Closed
@ilgiznurgaliev

Description

@ilgiznurgaliev

Bug Report

Current behavior

$ arduino-cli board details "LGT8fx Boards:avr:328"
Board name: LGT8F328                                           

Option:     Clock Source                                          clock_source                
            Internal                                            ✔ clock_source=internal       
            External (assumes 32MHz crystal)                      clock_source=external       

Option:     Clock                                                 clock                       
            32 MHz                                              ✔ clock=32MHz                 
            16 MHz                                                clock=16MHz                 
            8 MHz                                                 clock=8MHz                  
            4 MHz                                                 clock=4MHz                  
            2 MHz                                                 clock=2MHz                  
            1 MHz                                                 clock=1MHz                  

Option:     Variant                                               variant                     
            328P-LQFP48 MiniEVB                                 ✔ variant=modelP48            
            328P-LQFP32 (e.g. MiniEVB nano-style)                 variant=modelP              
            328P-LQFP32 wemos-TTGO-XI                             variant=modelP-wemos-TTGO-XI
            328D (e.g. WAVGAT AVG328D)                            variant=modelD              
            328D-SSOP20 (e.g. green pro mini alternative)         variant=modelD_SSOP20

$ arduino-cli compile -b "LGT8fx Boards:avr:328:clock=16MHz:variant=modelP" test
Error during build: incorrect FQBN: invalid fqbn: LGT8fx Boards:avr:328:clock=16MHz:variant=modelP

$ arduino-cli board attach "LGT8fx Boards:avr:328:clock=16MHz:variant=modelP" test
Attach board error: invalid Device URL format: parse "serial://LGT8fx Boards:avr:328:clock=16MHz:variant=modelP": invalid port ":variant=modelP" after host

Getting the error above when trying to set two options (clock and variant in this case) for the board.

Expected behavior

Ability to set multiple board options.

Environment

  • CLI version (output of arduino-cli version): arduino-cli Version: 0.9.0-arch Commit: e4d02b4
  • OS and platform: ArchLinux with kernel 5.5.13-arch1-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions