Running the Arduino 2.0 with the specified board and its settings

how?

in version Arduino1.0, I did this by changing the "board" item in the file "preferences.txt ".

now when the program is loaded and you have to choose a fee EVERY TIME!!!!!!
it's annoying)))

I moved your topic to an appropriate forum category @ev2vwrv.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

this option does not work:
"C:\Program Files\Arduino IDE_2.0\Arduino IDE_2.0.exe" -board:uno

When you open a sketch, Arduino IDE selects the board and port that were selected the last time that sketch was open in Arduino IDE.

When you create a new sketch (File > New Sketch), or open a sketch that didn't have a previous board and port association (as would be the case if you downloaded a sketch from the Internet) Arduino IDE selects the board and port that were selected in the previous IDE window.

So most often the only time you will need to select a different board or port is if you want to use a different board or port than the one currently associated with the open sketch.

The only times you should find that no board and port are selected are under the following conditions:

  • You never selected a board and port while the sketch was open in a previous IDE session.
  • No board and port were selected in the IDE window you opened the sketch from.
    - OR -
    The sketch was opened via file association.
    - OR -
    Arduino IDE started up with a new sketch due to being unable to restore the sketches that were open during the previous session.

Something important to note is that the board and port association database is keyed to a given sketch path. So if you move a sketch to a different location on your hard drive then the previous board and port association for the sketch is lost.

If you are experiencing some behavior of the IDE that doesn't match what I described above then that is unexpected and could be investigated.

This practice of throwing an arbitrary command line flag you invented at an application in hopes that you will happen to guess it correctly seems quite unproductive.

Arduino IDE 2.x doesn't have any command line interface for selecting a board.

1-where are these settings stored?
2-how do I access them?

at the moment, choosing a board takes a very long time and it's inconvenient!

we are tired of choosing a fee again every time - take pity on us)

however, here it works:
"C:\Arduino IDE 2.exe C:\Users\sketch.ino"

and at the same time, the sketch I need opens - but at the same time, the choice of the last board is lost.

Can you fix the loss of the last board if the program was launched with the path to the sketch?

Where can I get acquainted with all the Current command line parameters?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.