2

In the Arduino IDE, the Tools menu can be used to make some board-specific settings like this:

enter image description here

... such as Processor Version = "Atmega168P", Processor Speed = "16MHz Crystal Resonator" and so on. These end up choosing fuses when burning a bootloader. They may or may not also set constants that influence library behavior, I'm not sure.

What I'd like to know is how such settings stored, as they don't seem to be stored in any file associated with the sketch. And that being the case, they seem to be lost when using different boards or settings for subsequent projects.

So what files store these settings, at least temporarily, and how might one associate those settings more permanently with the project/sketch, so that they are repeatable later?

asked Feb 4, 2023 at 13:55

1 Answer 1

2

The board settings from Tools menu are stored in the IDE preferences file.

You can open the file from the Preference dialog of the Arduino IDE. The path to the file is shown at the bottom of the dialog and it is clickable.

answered Feb 4, 2023 at 17:06
4
  • Thanks for that good clue! And do you know of a way to associate those settings permanently with the project/sketch to which they pertain, so they can be repeated later? Commented Feb 5, 2023 at 1:03
  • 2
    @gwideman arduino.stackexchange.com/questions/91305/… Commented Feb 5, 2023 at 4:47
  • 2
    the link to preferences file is missing in IDE 2.0.3 Commented Feb 8, 2023 at 12:46
  • This link does not show up in preferences dialog anymore. Commented Aug 27 at 0:53

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.