Just started having a weird issue with the serial port monitoring. If it’s connected to the esp8266 chip thru a standard usb to serial (eg. FTDI232) and I reboot the chip I get the following in the terminal window and it closes. If I close vscode, disconnect, then reconnect and open arduino and open the serial port it’s fine again, then I reopen PIO and the serial port is fine again for awhile.
Traceback (most recent call last):
File “C:\Users\Bill.platformio\python27\Lib\threading.py”, line 801, in __bootstrap_inner self.run()
File “C:\Users\Bill.platformio\python27\Lib\threading.py”, line 754, in run self.__target(*self.__args, **self.__kwargs)
File “c:\users\bill.platformio\penv\lib\site-packages\serial\tools\miniterm.py”, line 445, in reader data = self.serial.read(self.serial.in_waiting or 1)
File “c:\users\bill.platformio\penv\lib\site-packages\serial\serialwin32.py”, line 257, in in_waiting raise SerialException(“ClearCommError failed ({!r})”.format(ctypes.WinError()))
SerialException: ClearCommError failed (WindowsError(5, ‘Access is denied.’))
Any help would be great! When it displays this weirdness the serial port monitor closes/crashes. I can reopen and it works fine until I reboot the device, and then same issue.