2

After a clean IDE install, the programmer submenu already has a default option selected as shown below: post of default selection

I am working on creating a core package and would like a default programmer to be selected after choosing a board, though I'm not sure which file sets the default. For example, here is a different 3rd party package that does not select a default programmer when a board is chosen.

enter image description here

asked Oct 29, 2021 at 17:18

1 Answer 1

1

The default preferences.txt file in IDE installation has this setting. It is not read from the boards package configuration files.

The programmer key in preferences.txt contains the last selected programmer. The default preferences.txt in lib folder in IDE installation has programmer = arduino:avrispmkii. It is used if preferences.txt in Arduino15 folder doesn't exist or doesn't have the specific key.

With the recent change in Arduino IDE only programmers from boards package of the selected board are displayed, so it happens that no programmer is selected.

answered Oct 29, 2021 at 18:35

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.