Can't program the ESP32 with VSCode
Posted: Wed May 25, 2022 6:27 pm
Hi,
I'm using VSCode to compile and program a custom ESP32 device and I'm not able to program it.
Here is the thing, using VSCode on my Linux Desktop PC I can program, monitor and debug the device with no problem at all BUT when I tried compiling and programming with my Windows Laptop (also using VSCode) I get the next message:
Any idea of what could be happening?
It used to work but suddenly it stopped working.
Regards,
P
I'm using VSCode to compile and program a custom ESP32 device and I'm not able to program it.
Here is the thing, using VSCode on my Linux Desktop PC I can program, monitor and debug the device with no problem at all BUT when I tried compiling and programming with my Windows Laptop (also using VSCode) I get the next message:
Code: Select all
> Executing task: C:\Users\Asus\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\Users\Asus\esp\esp-idf\tools\idf_size.py c:\Users\Asus\Documentos\GitHub\Firmware\build\firmware.map <
Total sizes:
Used static DRAM: 32492 bytes ( 92088 remain, 26.1% used)
.data size: 21596 bytes
.bss size: 10896 bytes
Used static IRAM: 120939 bytes ( 10133 remain, 92.3% used)
.text size: 119912 bytes
.vectors size: 1027 bytes
Used stat D/IRAM: 153431 bytes ( 102221 remain, 60.0% used)
.data size: 21596 bytes
.bss size: 10896 bytes
.text size: 119912 bytes
.vectors size: 1027 bytes
Used Flash size : 1490543 bytes
.text : 1101443 bytes
.rodata : 388844 bytes
Total image size: 1775613 bytes (.bin may be padded larger)
> Executing task: C:\Users\Asus\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\Users\Asus\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM3 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x690000 firmware.bin 0x1000 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin 0x689000 ota_data_initial.bin <
esptool.py v3.2-dev
Serial port COM3
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
The terminal process "C:\Users\Asus\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe 'C:\Users\Asus\esp\esp-idf\components\esptool_py\esptool\esptool.py', '-p', 'COM3', '-b', '460800', '--before', 'default_reset', '--after', 'hard_reset', '--chip', 'esp32', 'write_flash', '--flash_mode', 'dio', '--flash_freq', '40m', '--flash_size', 'detect', '0x690000', 'firmware.bin', '0x1000', 'bootloader/bootloader.bin', '0x8000', 'partition_table/partition-table.bin', '0x689000', 'ota_data_initial.bin'" terminated with exit code: 2.
It used to work but suddenly it stopped working.
Regards,
P