vior wrote on Dec 29
th, 2017 at 6:40pm:
this was my exact problem (and somewhat of a solution) for my ESP32 m5stack board in Visual Micro.
I was able to connect and upload release versions with no problem using CP10.1.1.1951 , but the debugger setting could never connect. (however I was able to connect with putty using same params, just not from Visual Studio).
Forcing the old 6.7.5 drivers fixed the debugger connection problem, but now I cannot upload, getting this error:
C:\Users\gojimmypi\Documents\Arduino\hardware\espressif\esp32\tools\esptool.exe --chip esp32 --port "COM4" --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 ~1.BIN 0x1000 1.BIN 0x10000 C:\Users\GOJIMM~1\AppData\Local\Temp\VMBuilds\M5\ESPRES~1\Debug/M5INO~1.BIN 0x8000 C:\Users\GOJIMM~1\AppData\Local\Temp\VMBuilds\M5\ESPRES~1\Debug/M5INOP~1.BIN
esptool.py v2.1
___....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
esptool.py v2.1
___....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
yet still putty can connect with no problem. So this really looks like a Visual Micro problem, no?
Microsoft Visual Studio Enterprise 2017
Version 15.5.2
VisualStudio.15.Release/15.5.2+27130.2010
Microsoft .NET Framework
Version 4.7.02556
Visual Micro 12/16/2017 release version 1711.19.0