Hello,
I come here because I’m currently facing an upload problem with PIO.
I made a demo project on a M5stack core kit (ESP32) using VScode and PIO.
It works fine on a Win10 and a OSX machine: compile, upload, serial debugging.
On my work PC, I can’t make the same project to work on uploading using PIO.
It compiles OK but it fails at the beginning of the upload, see the following output trace.
On this machine, the same project compiles and uploads OK using the Arduino IDE so there should not be be anything wrong with the device nor the silabs USB-UART driver I guess. The debug terminal is also working fine on PIO (I closed it before upload).
I tried to run VScode with admin rights but same result.
Could someone tell me what I can do to make a successful download? Do you need some more information (which kind?) to help me?
Auto-detected: COM8 Uploading .pio\build\m5stack-core-esp32\firmware.bin esptool.py v2.6 Serial port COM8 Connecting... Traceback (most recent call last): File "C:\Users\xx\.platformio\packages\tool-esptoolpy\esptool.py", line 2959, in <module> _main() File "C:\Users\xx\.platformio\packages\tool-esptoolpy\esptool.py", line 2952, in _main main() File "C:\Users\xx\.platformio\packages\tool-esptoolpy\esptool.py", line 2653, in main esp.connect(args.before) File "C:\Users\xx\.platformio\packages\tool-esptoolpy\esptool.py", line 460, in connect last_error = self._connect_attempt(mode=mode, esp32r0_delay=False) File "C:\Users\xx\.platformio\packages\tool-esptoolpy\esptool.py", line 440, in _connect_attempt self.sync() File "C:\Users\xx\.platformio\packages\tool-esptoolpy\esptool.py", line 379, in sync timeout=SYNC_TIMEOUT) File "C:\Users\xx\.platformio\packages\tool-esptoolpy\esptool.py", line 322, in command self.write(pkt) File "C:\Users\xx\.platformio\packages\tool-esptoolpy\esptool.py", line 285, in write self._port.write(buf) File "c:\users\xx\.platformio\penv\lib\site-packages\serial\serialwin32.py", line 323, in write raise writeTimeoutError serial.serialutil.SerialTimeoutException: Write timeout *** [upload] Error 1