Page 1 of 1

Monitor problem after VSC update

Posted: Mon Feb 08, 2021 8:21 pm
by SimonVs
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!

Re: Monitor problem after VSC update

Posted: Tue Feb 09, 2021 2:52 am
by ESP_bignacio
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