Skip to content

minicore and compile options #146

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
a7hybnj2 opened this issue Feb 12, 2019 · 3 comments
Closed

minicore and compile options #146

a7hybnj2 opened this issue Feb 12, 2019 · 3 comments
Labels
conclusion: duplicate Has already been submitted

Comments

@a7hybnj2
Copy link

I managed to install minicore but I don't see the options needed to compile correctly.

Board:
Bootloader:
Clock:
BOD:
Compiler:
Variant:
Port

a screenshot from the IDE
screen shot 2019-02-11 at 22 55 24

@per1234 per1234 added the conclusion: duplicate Has already been submitted label Feb 12, 2019
@per1234
Copy link
Contributor

per1234 commented Feb 12, 2019

It sounds like a duplicate of #138

In that issue, I have provided instructions for how you can determine the FQBN for any board. This is the solution I would recommend for you:

My current approach in the case of boards with custom Tools menus is to do a compilation in the Arduino IDE for the specific board configuration I want with File > Preferences > Show verbose output during: compilation enabled, and then copy the FQBN from the first line of the output in the black console window at the bottom of the Arduino IDE window. Quite crude, but it seems the fastest and least error-prone solution for me.

If I misunderstood and you are reporting a bug in arduino-cli or submitting a feature request here, then please provide more details and I'll be happy to re-open the issue. If you need assistance using MiniCore with arduino-cli, please post on the Arduino Forum and we'll help you out over there.

@per1234 per1234 closed this as completed Feb 12, 2019
@a7hybnj2
Copy link
Author

a7hybnj2 commented Feb 12, 2019

@per1234 Thanks!
-fqbn=MiniCore:avr:328:bootloader=false,variant=modelP,BOD=2v7,LTO=Os,clock=16MHz_external
I guess I will have to type that in every time!? yikes.

per1234 added a commit that referenced this issue Aug 9, 2021
Correct instance document pointer fragment in test
@pouriap
Copy link

pouriap commented Feb 10, 2022

Since this is the first result in Google for "arduino-cli minicore",

  • To see a list of all boards you have installed with their FQBN:
arduino-cli board listall
  • To see the available options for a board you can use this command:
arduino-cli board -b MiniCore:avr:8 details
  • To set the default options for a sketch:
arduino-cli board attach -b MiniCore:avr:8:bootloader=no_bootloader,BOD=4v0,LTO=Os_flto,clock=8MHz_internal "PATH\TO\PROJECT" --port COM3

Now every time you compile or upload these settings will be used by default, unless you override them. So you can simply do arduino-cli compile with no options.

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
Projects
None yet
Development

No branches or pull requests

3 participants