Page 1 of 1

Monitoring Error.

Posted: Thu Dec 31, 2020 9:34 am
by DutchOrange
So I have successfully uploaded and monitored the ESP32 (Hello_World), But now when I try Monitor the the Blink Example I see one message then it gives a Error. Any Ideas why the Blink E.g will do this ?

Code: Select all

Turning off the LED, Test 2
Exception in thread Thread-2:
Traceback (most recent call last):
  File "E:\Desktop\Arduino\Eclipse\Python\lib\threading.py", line 954, in _bootstrap_inner
    self.run()
  File "E:\Desktop\Arduino\Eclipse\Python\lib\threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "E:\Desktop\esp-idf\tools\idf_monitor.py", line 149, in _run_outer
    self.run()
  File "E:\Desktop\esp-idf\tools\idf_monitor.py", line 361, in run
    data = self.serial.read(self.serial.in_waiting or 1)
  File "C:\Users\User-Pc\.espressif\python_env\idf4.1_py3.9_env\lib\site-packages\serial\serialwin32.py", line 259, in in_waiting
    raise SerialException("ClearCommError failed ({!r})".format(ctypes.WinError()))
serial.serialutil.SerialException: ClearCommError failed (PermissionError(13, 'Access is denied.', None, 5))

Re: Monitoring Error.

Posted: Thu Dec 31, 2020 6:20 pm
by ESP_Jan
Hi DutchOrange,
this may be due to:
  • use of the wrong serial port
  • another program using the serial port
  • bad USB connection or cable
  • the USB device resetting
Please verify you are using the correct COM port.
If that doesn't help, then try a different USB port and/or another USB cable.

Jan

Re: Monitoring Error.

Posted: Thu Dec 31, 2020 7:15 pm
by DutchOrange
Thanks, It seems Its working again but if it happens again will try, But thanks.