Arduino IDE 2.3.3 setting

Hello,

I use Arduino IDE 2.3.3.
I don't know why each time the *.ino file is opened, I have to set the Board name, COM port, Programmer method to run the that file. I suppose I have to set only 1 time in the beginning. Is there any tip to save this setting ?

Thanks !
V5D

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

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.

1 Like

Hi @viet5d ,

I'm not sure if they are still valid for IDE 2.3.3 but there seem to be solutions created in the past to store the board setting with each ino file:

https://forum.arduino.cc/t/board-settings-in-ino-file/343215/47

Good luck!
ec2021

1 Like

I do not know if there is a setting for it but on my system it remembers on a sketch basis.

I have recently been working on a project with a Leonardo and a Mega. Opening the corresponding sketch a few days later shows the correct board selected and port selected (I've had other boards /sketches selected in between for other projects).

The only limitation that I recall is that it will not remember the setting for examples. So if you have a sketch for a Mega and next open an example and change the board, that board will not be remembered; I think till such time that you save the example as you own sketch.

1 Like

There is not. The feature is always enabled.

The reason for this is that the board and port configuration data in the database is associated with the path of the sketch. When you open an example sketch in Arduino IDE 2.x, it is opened as a new sketch populated with the example code. New sketches are staged in a random temporary folder, so there won't be any board/port configuration data associated with that path.

This sketch path dependence of the feature is noteworthy beyond its implications for examples: if you move a sketch to a different location on your hard drive, this will cause the loss of its association with the board/port configuration data.

Thanks for that explanation.

Thanks, now I remember how I can reproduce it. I often make a copy of a sketch in e.g. Windows explorer and noticed that I have to set the board/port again when opening the copy.

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