ESP32 CAM - Failed to upload data from Arduino IDE

Hello all
I really hope you can help me on this issue
I am trying to upload a sketch from Arduino IDE (Latest version) to my ESP32 CAM
The code I am using states to select the board AI Think ESP32 cam which I have done
I have the driver CH340 on com port 4 and also selected this port under the TOOLS menu in Arduino.
I select Partition Scheme: “Hue APP (3MB No OTA/1MB SPIFFS)”

The sketch complies fine but when it comes to connect to the port i get loads of dots and then this error message

A fatal error occurred: Failed to connect to ESP32: No serial data received.

Any idea’s please please, I have been trying to solve this for two days now with 3 separate ESP32 boards and also two different data cables
I suspect it may have something to do with the selected board
I have also booted and reset the ESP32 loads of times
My ESP Chip is an AZ Delivery ESP32-S

how have you connected the ESP32 CAM to your PC
I use a esp32-cam-mb USB programmer
under tools what boad do you select from the ESP32 list? I use "AI Thinker ESP32-CAM"

Yes I am using the exact setup as you Horace

check your COM is correct using the device manager and unplugging/plugging the ESP32

just connected ESP32 CAM and loaded Examples>ESP32>Camera>CameraWebServer
set up SSID etc and programmed device OK

C:\Users\xx\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0/esptool.exe --chip esp32 --port COM6 --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\bb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/partitions/boot_app0.bin 0x1000 C:\Users\bb\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/bin/bootloader_qio_80m.bin 0x10000 C:\Users\bb\AppData\Local\Temp\arduino_build_12891/CameraWebServer.ino.bin 0x8000 C:\Users\bb\AppData\Local\Temp\arduino_build_12891/CameraWebServer.ino.partitions.bin 
esptool.py v3.0-dev
Serial port COM6
Connecting........_
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 44:17:93:7c:77:0c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 13106.9 kbit/s)...
Hash of data verified.
Compressed 18656 bytes to 12053...
Writing at 0x00001000... (100 %)
Wrote 18656 bytes (12053 compressed) at 0x00001000 in 0.3 seconds (effective 514.6 kbit/s)...
Hash of data verified.
Compressed 2594912 bytes to 2073523...
Writing at 0x00010000... (0 %)
Writing at 0x00014000... (1 %)
Writing at 0x00018000... (2 %)
Writing at 0x0001c000... (3 %)
Writing at 0x00020000... (3 %)
Writing at 0x00024000... (4 %)
Writing at 0x00028000... (5 %)
Writing at 0x0002c000... (6 %)
Writing at 0x00030000... (7 %)
Writing at 0x00034000... (7 %)
Writing at 0x00038000... (8 %)
...
Writing at 0x00200000... (98 %)
Writing at 0x00204000... (99 %)
Writing at 0x00208000... (100 %)
Wrote 2594912 bytes (2073523 compressed) at 0x00010000 in 49.9 seconds (effective 416.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 119...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (119 compressed) at 0x00008000 in 0.0 seconds (effective 3510.9 kbit/s)...
Hash of data verified.

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

when run Serial Monitor displays

...........................
WiFi connected
Starting web server on port: '80'
Starting stream server on port: '81'
Camera Ready! Use 'http://192.168.1.221' to connect
MJPG: 4732B 42ms (23.8fps), AVG: 42ms (23.8fps), 0+0+0+0=0 0
MJPG: 4757B 18ms (55.6fps), AVG: 30ms (33.3fps), 0+0+0+0=0 0
MJPG: 4727B 20ms (50.0fps), AVG: 26ms (38.5fps), 0+0+0+0=0 0
MJPG: 4988B 18ms (55.6fps), AVG: 24ms (41.7fps), 0+0+0+0=0 0

the board setting I used
Board_setting

web server appeared OK
desk_top

check the COM is correct using the device manager
when I program the device it displays



Horace just used the same example code but I still have an issue with the error “A FATAL ERROR OCCURRED: COULD NOT OPEN COM4, the port doesn’t exist” even when it shows com4 connect as CH340

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.