Hi,
ESP-CAM -> ESP-CAM
GPIO0 -> PULL DOWN to enter into download mode
GPIO1 -> RX
GPIO3 -> TX
GND -> GND
3.3V -> 3.3V (you can also power the ESP-CAM using the 5V pin)
I apply the necessary connections like you said, there is an issue with the pin layout you suggested. I think the correct layout should be like this:
ESP-PROG -> ESP-CAM
GPIO0 -> PULL DOWN
GPIO1 -> TX
GPIO3 -> RX
GND-> GND
3v3 -> 3v3
GPIO3 and GPIO1 should change their places. Apart from this, I got an error message while flashing my empty program into ESP-PROG and the message is:
Code: Select all
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
*** [upload] Error 2
================================================================================== [FAILED] Took 27.99 seconds ==================================================================================
Environment Status Duration
------------- -------- ------------
Release FAILED 00:00:27.990
============================================================================= 1 failed, 0 succeeded in 00:00:27.990 =============================================================================
The terminal process "C:\Users\omerf\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--environment', 'Release'" terminated with exit code: 1.
I connect GPIO0 to GND via a 10k resistor like this:
- gpio10k.png (41.16 KiB) Viewed 6671 times
I tried holding RST down while flashing but it did not work.
This is my config file for vscode with platform io
Code: Select all
[common]
platform = https://github.com/platformio/platform-espressif32.git
board = esp32dev
framework = arduino
monitor_port = COM5
monitor_speed = 115200
upload_port = COM5
upload_speed = 921000
[env:Release]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
monitor_port = ${common.monitor_port}
monitor_speed = ${common.monitor_speed}
upload_port = ${common.upload_port}
upload_speed = ${common.upload_speed}
[env:Debug]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
monitor_port = ${common.monitor_port}
monitor_speed = ${common.monitor_speed}
upload_port = ${common.upload_port}
upload_speed = ${common.upload_speed}
debug_tool = esp-prog
debug_init_break = tbreak setup
Do you have any idea why this might occur?