Can't compile while the Serial Monitor is open

Using: Arduino IDE 2.0.0-rc7

I'm not able to compile a sketch while the Serial Monitor is open.

If the sketch is compiled with the Serial Monitor closed, then the Serial Monitor can be opened.

Error message:

Compilation complete.
avrdude: ser_open(): can't open device "\.\COM3": Access is denied.

Question: How do I move the Serial Monitor to a different port?

Hi @bob011. Thanks for your report. This is a known bug which is being tracked by the Arduino IDE developers here:

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.

A fix is already in progress. If you would like to give the fix a try, tester builds are available. I'll provide the instructions:

  1. Sign in to your GitHub account.
    (GitHub only allows downloads of the tester builds when you are signed in)
  2. Open this page in your browser:
    https://github.com/arduino/arduino-ide/pull/1040/checks
  3. From the list of workflow runs on the left side of the page, click on "Arduino IDE" (this is the build workflow).
  4. Click the "Windows_X86-64_zip" link under the "Artifacts" section of the page.
  5. Wait for the download to finish.
  6. Unzip the downloaded file.
  7. Unzip the ZIP file you find inside the unzipped file.
  8. Run the Arduino IDE.exe file from the unzipped folder.

Hi ptillisch,
Thanks!
Being new to the IDE2 I had assumed I was not configuring the Serial Monitor correctly.

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