Can't flash my ESP32 - Not beginner
Posted: Wed Jul 31, 2024 6:23 am
Hello there
After a break of a couple of months I came back to do firmware developement and big surprise can't flash my ESP32. At least on my desktop. Still works on my laptop.
So:
- I rather think it is not a hardware issue since it works on my laptop.
- It is not a USB HUB in between.
- Tried different cables.
- I CAN connect to my board with Putty and Hterm and interract with the ESP32 at 115200 baud (on the desktop)
- I reinstalled Windows 11 fresh (!...)
- Tried the two last versions of FTDI's virtual com port driver (have an FTDI FT231XQ chip)
Nothing helps... it keeps saying it can't connect to the ESP32 on my desktop
This is the error message:
esptool.py v4.8.dev4
Serial port COM3
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x1B): Possible serial noise or corruption.
For troubleshooting steps visit: https://docs.espressif.com/projects/esp ... oting.html
* The terminal process "C:\Users\Tech\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe 'C:\Users\Tech\esp\v5.3\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', '2MB', '0x1000', 'bootloader/bootloader.bin', '0x10000', 'SOFI_TEST_2.bin', '0x8000', 'partition_table/partition-table.bin'" terminated with exit code: 2.
Something wrong at ESP-IDF eco system?
Any hint how I could identify where the issue could be?
Lost 3 days now ^^
Thanks and best regards.
EDIT:
- Visual Studio Code 1.91.1
- ESP-IDF VSC extension 1.8.0
- ESP-IDF 4.4.8 and 5.3 (firmware is based on 4.4.8 but also tried the 5.3 with the hello world)
After a break of a couple of months I came back to do firmware developement and big surprise can't flash my ESP32. At least on my desktop. Still works on my laptop.
So:
- I rather think it is not a hardware issue since it works on my laptop.
- It is not a USB HUB in between.
- Tried different cables.
- I CAN connect to my board with Putty and Hterm and interract with the ESP32 at 115200 baud (on the desktop)
- I reinstalled Windows 11 fresh (!...)
- Tried the two last versions of FTDI's virtual com port driver (have an FTDI FT231XQ chip)
Nothing helps... it keeps saying it can't connect to the ESP32 on my desktop
This is the error message:
esptool.py v4.8.dev4
Serial port COM3
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x1B): Possible serial noise or corruption.
For troubleshooting steps visit: https://docs.espressif.com/projects/esp ... oting.html
* The terminal process "C:\Users\Tech\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe 'C:\Users\Tech\esp\v5.3\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', '2MB', '0x1000', 'bootloader/bootloader.bin', '0x10000', 'SOFI_TEST_2.bin', '0x8000', 'partition_table/partition-table.bin'" terminated with exit code: 2.
Something wrong at ESP-IDF eco system?
Any hint how I could identify where the issue could be?
Lost 3 days now ^^
Thanks and best regards.
EDIT:
- Visual Studio Code 1.91.1
- ESP-IDF VSC extension 1.8.0
- ESP-IDF 4.4.8 and 5.3 (firmware is based on 4.4.8 but also tried the 5.3 with the hello world)