Sketch uses 1106940 bytes (35%) of program storage space. Maximum is 3145728 bytes.
Global variables use 52772 bytes (16%) of dynamic memory, leaving 274908 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.8.1
Serial port COM4
Connecting....
Chip is ESP32-D0WDQ6-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 2c:bc:bb:84:a2:a4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0011efff...
Compressed 24976 bytes to 15952...
Writing at 0x00001000... (100 %)
A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption.
Failed uploading: uploading error: exit status 2
.
.
I use esp32cam MB and
I hold boot button while code is uploading.
It error I don't know why.
Many people say change baudrate in tool>uploadspeed but I use Arduino IDE AI Thinker ESP32-CAM. And it doesn't have upload speed show in tool manu
Please tell me how to fix it in next week. I must presentation this project to my class.
The Nano ESP32 section of the forum is specifically for problems with the Arduino Nano ESP32, not for other ESP32 based boards. Therefore your topic has been moved.
Hi @namwantubre. It is possible for a short or external circuitry connected to the Arduino board to interfere with the upload process, causing this type of upload error.
Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Make sure there isn't any conductive debris (e.g., strands of wire or component leads) on the board or on the surface the board is sitting on.
If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:
Disconnect the USB cable of the Arduino board from your computer.
Disconnect any shields, modules, external circuitry, etc. from your board.
Connect the Arduino board to your computer with a USB cable.
Now try uploading a sketch to the board again. Does the upload succeed?
This experiment will determine whether the upload error was caused by interference from your external circuitry. If so, you can then focus your attention on identifying the specific problem with the circuit and resolving it.
I have seen reports of MB boards not having the BOOT button wired. Use an FTDI hookup and let us know how that works (jumper GPIO0 to G before uploading, remove after and reset the board).