Skip to content

Q: how can one pass ConfigOptions for the compilation? #1607

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
4ntoine opened this issue Dec 28, 2021 · 2 comments
Closed

Q: how can one pass ConfigOptions for the compilation? #1607

4ntoine opened this issue Dec 28, 2021 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project

Comments

@4ntoine
Copy link
Contributor

4ntoine commented Dec 28, 2021

Bug Report

Background

Boards can provide ConfigOptions describing the board. For instance, "Nano" (arduino:avr:nano) provides 3 options (328, 328old and 168) based on the cpu and bootloader. Some arguments might make sense for the compilation, eg. cpu frequency.

Current behavior

There is no config option argument to pass (or it's unclear to me on how to do it).
There are some "custom build properties", but it's unclear if it's what i mean.

Expected behavior

There is a way to pass a ConfigOption value and it's documented.

Environment

  • CLI version (output of arduino-cli version): 0.20.2
  • OS and platform: any

Additional context

@per1234 per1234 self-assigned this Dec 28, 2021
@per1234
Copy link
Contributor

per1234 commented Dec 28, 2021

Hi @4ntoine. These custom board option are specified as part of the FQBN.

This is documented in the platform specification:

https://arduino.github.io/arduino-cli/dev/platform-specification/#custom-board-options

and the FAQ:

https://arduino.github.io/arduino-cli/dev/FAQ/#how-to-set-multiple-board-options

So if you wanted to specify the atmega168 option ID for the arduino:avr:nano board's processor menu ID, the FQBN would be:

arduino:avr:nano:processor=atmega168

You can specify values for as many menu IDs as you like via a comma-separated list.

We are using this issue to track need to communicate better about what FQBN is and how it works: #355

@per1234 per1234 closed this as completed Dec 28, 2021
@4ntoine
Copy link
Contributor Author

4ntoine commented Dec 28, 2021

@per1234 Thank you

@per1234 per1234 added topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project conclusion: duplicate Has already been submitted labels Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants