ESP32 devkitc v4 with esp-prog

jshnaidm
Posts: 6
Joined: Mon Jul 05, 2021 3:47 am

ESP32 devkitc v4 with esp-prog

Postby jshnaidm » Sun Aug 01, 2021 9:01 pm

Hi.

I'm trying to set up the ESP-Prog with my esp32, but it fails to even flash. It's configured to flash on COM21 using the FTDIBUS (v2.12.36.2) driver via UART. I'm using the vscode extension to configure it.

I've connected ESP_EN to the EN pin, ESP_TXD to TX, ESP_RXD to RX, VDD to 3V3, GND to GND, and ESP_IO0 to 0 which corresponds to GPIO0 as far as I know.

Yet, when I try to flash I get Failed to connect to ESP32: Invalid head of packet.

Here are some photos of my connections:

https://photos.google.com/share/AF1QipM ... oxNE1CQVFn

What am I doing wrong?
  1. > Executing task: C:\Users\jacob\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\Users\jacob\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM21 -b 115200 --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 <
  2.  
  3. esptool.py v3.1-dev
  4. Serial port COM21
  5. Connecting........_____....._____....._____....._____....._____....._____....._____
  6.  
  7. A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x63)
  8. The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command C:\Users\jacob\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\Users\jacob\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM21 -b 115200 --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" terminated with exit code: 1.
  9.  
  10. Terminal will be reused by tasks, press any key to close it.

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 devkitc v4 with esp-prog

Postby ESP_Sprite » Mon Aug 02, 2021 12:54 am

That devkit already has an internal usb-to-serial converter that will likely interfere with the external signals you're applying. Is there any specific reason why you want to use an external programmer?

RabbitRF
Posts: 15
Joined: Tue Mar 01, 2022 12:28 am

Re: ESP32 devkitc v4 with esp-prog

Postby RabbitRF » Fri Mar 04, 2022 8:13 am

I have a problem with the VS Code for debugging with ESP32_DevKitC_V4.

The Module is "ESP32-WROVER-E", but OpenOCD board configuration only has the option "ESP-WROVER-KIT ....ESP32-WROVER-B Module",
I choose this option and start debugging, it prompt error message "OpenOCD exit with non-zero error code 3".

How to fix it?

Regards
Rabbit

Who is online

Users browsing this forum: dg9ngf and 115 guests