Monitor problem after VSC update

SimonVs
Posts: 7
Joined: Wed Oct 21, 2020 6:25 am

Monitor problem after VSC update

Postby SimonVs » Mon Feb 08, 2021 8:21 pm

Hello,

I am currently working on the websocket server example.
I use the visual studio code IDE, with espressif version v0.6.1.
As a development board i am using the ESP32 WROOM devkit 1.

Sometimes everything works just fine, but most of the times the monitor complains:

Code: Select all

Exception in thread Thread-2:
Traceback (most recent call last):
  File "C:\Users\vossi\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in _bootstrap_inner
    self.
run()
  File "C:\Users\vossi\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "c:\Users\vossi\esp-idf\tools/idf_monitor.py", line 166, in _run_outer
    self.run()
  File "c:\Users\vossi\esp-idf\tools/idf_monitor.py", line 378, in run
    data = self.serial.read(self.serial.in_waiting or 1)
  File "C:\Users\vossi\.espressif\python_env\idf4.2_py3.7_env\lib\site-packages\serial\serialwin32.py", line 257, in in_waiting
    raise SerialException("ClearCommError failed ({!r})".format(ctypes.WinError()))
serial.serialutil.SerialException: ClearCommError failed (PermissionError(13, 'Toegang geweigerd.', None, 5))
Does anyone know how to solve this issue?
Thanks!

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Monitor problem after VSC update

Postby ESP_bignacio » Tue Feb 09, 2021 2:52 am

This may happen if the serial port is still used for other commands or tasks. Make sure to close the flash task window or any windows that used the serial port or could also be PySerial clear comm error

Who is online

Users browsing this forum: No registered users and 25 guests