Failed to connect to ESP32

mkremer
Posts: 9
Joined: Sun Feb 27, 2022 6:36 pm

Failed to connect to ESP32

Postby mkremer » Sun May 01, 2022 9:47 am

Since I installed Arduino IDE and ESP32 packet on my PC, I can no longer flash with VS Code or ESP-IDF. Build works, but the connection to the ESP32 only works sporadically.

Everything worked perfectly before without Arduino IDE. I only installed the Arduino IDE to have a look, but now it seems to have broken everything.

Can someone tell me where the problem could be here? I uninstalled Arduino again, but the problem still exists.

Can it be that there is some connection between Arduino IDE and VS-Code or something?


esptool.py v2.9-dev
Serial port COM3
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x54)
Der Terminalprozess "C:\Espressif\python_env\idf4.1_py3.8_env\Scripts\python.exe 'C:\Espressif\frameworks\esp-idf-v4.1.2\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', '0x10000', 'blink.bin', '0x1000', 'bootloader/bootloader.bin', '0x8000', 'partition_table/partition-table.bin'" wurde mit folgendem Exitcode beendet: 2.



---------
Sometimes flashing works after a new build. But it takes longer than before.

esptool.py v2.9-dev
Serial port COM3
Connecting........_____....._____....._____....._____.
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c8:c9:a3:cf:bc:18
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 151200 bytes to 79292...
Wrote 151200 bytes (79292 compressed) at 0x00010000 in 1.9 seconds (effective 641.2 kbit/s)...
Hash of data verified.
Flash params set to 0x0220
Compressed 24128 bytes to 14912...
Wrote 24128 bytes (14912 compressed) at 0x00001000 in 0.3 seconds (effective 562.0 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1575.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Who is online

Users browsing this forum: Majestic-12 [Bot] and 146 guests