In the Arduino IDE, the Tools menu can be used to make some board-specific settings like this:
... 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?
1 Answer 1
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.
-
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?gwideman– gwideman02/05/2023 01:03:18Commented Feb 5, 2023 at 1:03
-
2@gwideman arduino.stackexchange.com/questions/91305/…02/05/2023 04:47:41Commented Feb 5, 2023 at 4:47
-
2the link to preferences file is missing in IDE 2.0.302/08/2023 12:46:32Commented Feb 8, 2023 at 12:46
-
This link does not show up in preferences dialog anymore.halfbit– halfbit08/27/2025 00:53:02Commented Aug 27 at 0:53