I need to select BOARD and COMM PORT almost every time I restart the IDE.
I have a Lenovo laptop running Win11, IDE 2.3.7, with one available USB port. Depending on what I am doing (multiple sketches open) or what I have done, that COMM port has been assigned to COM3, COM4, (I don't think COM5) and COM6.
I am using IDE 2.3.7. There is only one sketch window open. In the lower part of that window there are two taps, Output and Serial Monitor. Of course I need Serial Monitor because the sketch to be uploaded sends data via Serial.print(). All the years I’m using Arduino IDE I never killed Serial Monitor before uploading a sketch and there were no problems at all.
I did a lot of research and tests. Now it works! I don’t know why before not and now ok. Hopefully this working status keeps on.
That was not the point. There is an issue in IDE 2.x where it can't upload to boards with FTDI232 serial-to-usb converter if the serial monitor is open. So close the serial monitor, upload and open the serial monitor again.
Because you did not provide any details in the opening post about the board @sonofcy's suggestion was a sensible one.
Please mark your topic as solved by clicking the solution checkbox under the most useful reply.
Very common, something you did changed the scenario. OR windows lost it's mind then fixed itself. All very common. When things like that happen, I try many things, restart the IDE, and seldom do the OS cuz I have a Mac and it doesn't have problems like Windows.
Did you re-stat the IDE?