Every time i try to upload a code or erase flash it gets me "A fatal error occurred: Timed out waiting for packet content"
C:\esptool>python esptool.py --port com4 erase_flash esptool.py v3.0-dev Serial port com4
Connecting........_
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:6f:28:a2:5a:7c
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
A fatal error occurred: Timed out waiting for packet content