hello everyone, this is the first time in my life I have encountered such an error. I have an esp32 camera programmer card in my hand, as you can see in the picture, I made the connections perfectly, but every time I try to upload code, I get this error code. there is only a reset button, i'm tired of dealing with it for days, don't spare your help spartans
Did you press the button when the serial monitor shows ...___...___...___...
?
Sorry I cannot read your text, you can copy it then paste it into your message. As for code please use code tags as explained in the forum guidelines.
connecting on serial monitor.................................. when I saw the text I pressed the reset button but it didn't work.
please post your code.
please press the <code>
icon and copy/paste it into the highlighted area
#include "esp_camera.h"
#include <WiFi.h>
//
// WARNING!!! PSRAM IC required for UXGA resolution and high JPEG quality
// Ensure ESP32 Wrover Module or other board with PSRAM is selected
// Partial images will be transmitted if image exceeds buffer size
//
// You must select partition scheme from the board menu that has at least 3MB APP space.
// Face Recognition is DISABLED for ESP32 and ESP32-S2, because it takes up from 15
// seconds to process single frame. Face Detection is ENABLED if PSRAM is enabled as well
// ===================
// Select camera model
// ===================
//#define CAMERA_MODEL_WROVER_KIT // Has PSRAM
//#define CAMERA_MODEL_ESP_EYE // Has PSRAM
//#define CAMERA_MODEL_ESP32S3_EYE // Has PSRAM
//#define CAMERA_MODEL_M5STACK_PSRAM // Has PSRAM
//#define CAMERA_MODEL_M5STACK_V2_PSRAM // M5Camera version B Has PSRAM
//#define CAMERA_MODEL_M5STACK_WIDE // Has PSRAM
//#define CAMERA_MODEL_M5STACK_ESP32CAM // No PSRAM
//#define CAMERA_MODEL_M5STACK_UNITCAM // No PSRAM
//#define CAMERA_MODEL_AI_THINKER // Has PSRAM
//#define CAMERA_MODEL_TTGO_T_JOURNAL // No PSRAM
//#define CAMERA_MODEL_XIAO_ESP32S3 // Has PSRAM
// ** Espressif Internal Boards **
#define CAMERA_MODEL_ESP32_CAM_BOARD
//#define CAMERA_MODEL_ESP32S2_CAM_BOARD
//#define CAMERA_MODEL_ESP32S3_CAM_LCD
#include "camera_pins.h"
// ===========================
// Enter your WiFi credentials
// ===========================
const char* ssid = "**********";
const char* password = "**********";
void startCameraServer();
void setupLedFlash(int pin);
void setup() {
Serial.begin(115200);
Serial.setDebugOutput(true);
Serial.println();
camera_config_t config;
config.ledc_channel = LEDC_CHANNEL_0;
config.ledc_timer = LEDC_TIMER_0;
config.pin_d0 = Y2_GPIO_NUM;
config.pin_d1 = Y3_GPIO_NUM;
config.pin_d2 = Y4_GPIO_NUM;
config.pin_d3 = Y5_GPIO_NUM;
config.pin_d4 = Y6_GPIO_NUM;
config.pin_d5 = Y7_GPIO_NUM;
config.pin_d6 = Y8_GPIO_NUM;
config.pin_d7 = Y9_GPIO_NUM;
config.pin_xclk = XCLK_GPIO_NUM;
config.pin_pclk = PCLK_GPIO_NUM;
config.pin_vsync = VSYNC_GPIO_NUM;
config.pin_href = HREF_GPIO_NUM;
config.pin_sccb_sda = SIOD_GPIO_NUM;
config.pin_sccb_scl = SIOC_GPIO_NUM;
config.pin_pwdn = PWDN_GPIO_NUM;
config.pin_reset = RESET_GPIO_NUM;
config.xclk_freq_hz = 20000000;
config.frame_size = FRAMESIZE_UXGA;
config.pixel_format = PIXFORMAT_JPEG; // for streaming
//config.pixel_format = PIXFORMAT_RGB565; // for face detection/recognition
config.grab_mode = CAMERA_GRAB_WHEN_EMPTY;
config.fb_location = CAMERA_FB_IN_PSRAM;
config.jpeg_quality = 12;
config.fb_count = 1;
// if PSRAM IC present, init with UXGA resolution and higher JPEG quality
// for larger pre-allocated frame buffer.
if(config.pixel_format == PIXFORMAT_JPEG){
if(psramFound()){
config.jpeg_quality = 10;
config.fb_count = 2;
config.grab_mode = CAMERA_GRAB_LATEST;
} else {
// Limit the frame size when PSRAM is not available
config.frame_size = FRAMESIZE_SVGA;
config.fb_location = CAMERA_FB_IN_DRAM;
}
} else {
// Best option for face detection/recognition
config.frame_size = FRAMESIZE_240X240;
#if CONFIG_IDF_TARGET_ESP32S3
config.fb_count = 2;
#endif
}
#if defined(CAMERA_MODEL_ESP_EYE)
pinMode(13, INPUT_PULLUP);
pinMode(14, INPUT_PULLUP);
#endif
// camera init
esp_err_t err = esp_camera_init(&config);
if (err != ESP_OK) {
Serial.printf("Camera init failed with error 0x%x", err);
return;
}
sensor_t * s = esp_camera_sensor_get();
// initial sensors are flipped vertically and colors are a bit saturated
if (s->id.PID == OV3660_PID) {
s->set_vflip(s, 1); // flip it back
s->set_brightness(s, 1); // up the brightness just a bit
s->set_saturation(s, -2); // lower the saturation
}
// drop down frame size for higher initial frame rate
if(config.pixel_format == PIXFORMAT_JPEG){
s->set_framesize(s, FRAMESIZE_QVGA);
}
#if defined(CAMERA_MODEL_M5STACK_WIDE) || defined(CAMERA_MODEL_M5STACK_ESP32CAM)
s->set_vflip(s, 1);
s->set_hmirror(s, 1);
#endif
#if defined(CAMERA_MODEL_ESP32S3_EYE)
s->set_vflip(s, 1);
#endif
// Setup LED FLash if LED pin is defined in camera_pins.h
#if defined(LED_GPIO_NUM)
setupLedFlash(LED_GPIO_NUM);
#endif
WiFi.begin(ssid, password);
WiFi.setSleep(false);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
startCameraServer();
Serial.print("Camera Ready! Use 'http://");
Serial.print(WiFi.localIP());
Serial.println("' to connect");
}
void loop() {
// Do nothing. Everything is done in another task by the web server
delay(10000);
}
sorry. i misunderstood that this error is during the upload
which port is selected under the Arduino IDE Tools-Port tab?
yes ı am getting this error while uploading code. Port 3
is "COM3" the port the Arduino is connected to?
is COM3 the correct port?
yes its correct i think the problem is this card is espressif card like i said i tried everythink so i cant find the where is the problem
notice you're using IDE 2.1. i'm prefer the older version
i tried changing the upload speed and setting the board to Wrover for my ESP32-WROOM-32D and it still worked.
the default upload speed is 921600
don't know what else to tell you
ok i will try and let you know
I am using 1.8.19; this may look different in 2.1:
fire up the IDE
No board connected: Tools >> Port and note the ports available. typically ttyUSB0 and ttyS0
Connect ESP board
Tools >> Port and note the new port available. that new port was created by the UART chip in the ESP. connect to that new port
Serial Monitor, at 115200
press the reset on the ESP
if you see a wall of gobbledygook, you're in
the following is what i see if the COM port is not set correctly, so i think there's some other issue
Sketch uses 1956 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 189 bytes (9%) of dynamic memory, leaving 1859 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "\\.\COM4": The system cannot find the file specified.
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
processing.app.SerialException: Error opening serial port 'COM4'.
at processing.app.Serial.<init>(Serial.java:152)
at processing.app.Serial.<init>(Serial.java:82)
at processing.app.SerialMonitor$2.<init>(SerialMonitor.java:132)
at processing.app.SerialMonitor.open(SerialMonitor.java:132)
at processing.app.AbstractMonitor.resume(AbstractMonitor.java:132)
at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2120)
at processing.app.Editor.access$1300(Editor.java:117)
at processing.app.Editor$UploadHandler.run(Editor.java:2089)
at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - COM4; Method name - openPort(); Exception type - Port not found.
at jssc.SerialPort.openPort(SerialPort.java:167)
at processing.app.Serial.<init>(Serial.java:141)
... 8 more
Error opening serial port 'COM4'.
I'm having the same issue. I've tried on both Ubuntu and macOS, neither have worked. I've checked the serial port and it disappears when I unplug it and reappears when I plug it back in, so that's probably not the issue. I'm getting zero communication on serial monitors. Is it a hardware issue? @burak60 did you buy your board from HiLetgo on Amazon?
Form the picture you have posted a lot of details can not be seen:
- where is the USB-virtual-COM-Port-adapter-chip?
- what type of USB-virtual-COM-Port-adapter-chip is it?
what else than the USB-socket do you need as connection for uploading code?
It can not be seen if this board has a reset and another second button
best regards Stefan
don't post screenshot graphics post text like shown in this tutorial
edit: are you really expecting that other users will re-type a foreign language error-message and translate it ?
You are posting in the english speaking / writing forum this means your communication has to be in english
Brownout detector was triggered
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5564
load:0x40078000,len:0
load:0x40078000,len:13756
entry 0x40078fb4
e[0;32mI (29) boot: ESP-IDF v3.0.3 2nd stage bootloadere[0m
e[0;32mI (29) boot: compile time 08:53:32e[0m
e[0;32mI (29) boot: Enabling RNG early entropy source...e[0m
e[0;32mI (33) boot: SPI Speed : 40MHze[0m
e[0;32mI (38) boot: SPI Mode : DIOe[0m
e[0;32mI (42) boot: SPI Flash Size : 4MBe[0m
e[0;32mI (46) boot: Partition Table:e[0m
e[0;32mI (49) boot: ## Label Usage Type ST Offset Lengthe[0m
e[0;32mI (57) boot: 0 phy_init RF data 01 01 0000f000 00001000e[0m
e[0;32mI (64) boot: 1 otadata OTA data 01 00 00010000 00002000e[0m
e[0;32mI (71) boot: 2 nvs WiFi data 01 02 00012000 0000e000e[0m
e[0;32mI (79) boot: 3 at_customize unknown 40 00 00020000 000e0000e[0m
e[0;32mI (86) boot: 4 ota_0 OTA app 00 10 00100000 00180000e[0m
e[0;32mI (94) boot: 5 ota_1 OTA app 00 11 00280000 00180000e[0m
e[0;32mI (101) boot: End of partition tablee[0m
e[0;32mI (106) boot: No factory image, trying OTA 0e[0m
e[0;32mI (111) esp_image: segment 0: paddr=0x00100020 vaddr=0x3f400020 size=0x200f4 (131316) mape[0m
e[0;32mI (166) esp_image: segment 1: paddr=0x0012011c vaddr=0x3ffc0000 size=0x02d6c ( 11628) loade[0m
e[0;32mI (170) esp_image: segment 2: paddr=0x00122e90 vaddr=0x40080000 size=0x00400 ( 1024) loade[0m
e[0;32mI (173) esp_image: segment 3: paddr=0x00123298 vaddr=0x40080400 size=0x0cd78 ( 52600) loade[0m
e[0;32mI (203) esp_image: segment 4: paddr=0x00130018 vaddr=0x400d0018 size=0xdf390 (914320) mape[0m
e[0;32mI (524) esp_image: segment 5: paddr=0x0020f3b0 vaddr=0x4008d178 size=0x01f14 ( 7956) loade[0m
e[0;32mI (527) esp_image: segment 6: paddr=0x002112cc vaddr=0x400c0000 size=0x00064 ( 100) loade[0m
e[0;32mI (539) boot: Loaded app from partition at offset 0x100000e[0m
e[0;32mI (539) boot: Disabling RNG early entropy source...e[0m
Bin version(Wroom32):1.1.2
I (660) wifi: wifi firmware version: de47fad
I (660) wifi: config NVS flash: enabled
I (660) wifi: config nano formating: disabled
I (670) wifi: Init dynamic tx buffer num: 32
I (670) wifi: Init data frame dynamic rx buffer num: 32
I (670) wifi: Init management frame dynamic rx buffer num: 32
I (676) wifi: wifi driver task: 3ffdecc0, prio:23, stack:3584
I (681) wifi: Init static rx buffer num: 10
I (685) wifi: Init dynamic rx buffer num: 32
I (689) wifi: wifi power manager task: 0x3ffdfd8c prio: 21 stack: 2560
Brownout detector was triggered
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5564
load:0x40078000,len:0
load:0x40078000,len:13756
entry 0x40078fb4
e[0;32mI (29) boot: ESP-IDF v3.0.3 2nd stage bootloadere[0m
e[0;32mI (29) boot: compile time 08:53:32e[0m
e[0;32mI (29) boot: Enabling RNG early entropy source...e[0m
e[0;32mI (33) boot: SPI Speed : 40MHze[0m
e[0;32mI (38) boot: SPI Mode : DIOe[0m
e[0;32mI (42) boot: SPI Flash Size : 4MBe[0m
e[0;32mI (46) boot: Partition Table:e[0m
e[0;32mI (49) boot: ## Label Usage Type ST Offset Lengthe[0m
e[0;32mI (57) boot: 0 phy_init RF data 01 01 0000f000 00001000e[0m
e[0;32mI (64) boot: 1 otadata OTA data 01 00 00010000 00002000e[0m
e[0;32mI (71) boot: 2 nvs WiFi data 01 02 00012000 0000e000e[0m
e[0;32mI (79) boot: 3 at_customize unknown 40 00 00020000 000e0000e[0m
e[0;32mI (86) boot: 4 ota_0 OTA app 00 10 00100000 00180000e[0m
e[0;32mI (94) boot: 5 ota_1 OTA app 00 11 00280000 00180000e[0m
e[0;32mI (101) boot: End of partition tablee[0m
e[0;32mI (106) boot: No factory image, trying OTA 0e[0m
e[0;32mI (111) esp_image: segment 0: paddr=0x00100020 vaddr=0x3f400020 size=0x200f4 (131316) mape[0m
e[0;32mI (166) esp_image: segment 1: paddr=0x0012011c vaddr=0x3ffc0000 size=0x02d6c ( 11628) loade[0m
e[0;32mI (170) esp_image: segment 2: paddr=0x00122e90 vaddr=0x40080000 size=0x00400 ( 1024) loade[0m
e[0;32mI (173) esp_image: segment 3: paddr=0x00123298 vaddr=0x40080400 size=0x0cd78 ( 52600) loade[0m
e[0;32mI (203) esp_image: segment 4: paddr=0x00130018 vaddr=0x400d0018 size=0xdf390 (914320) mape[0m
e[0;32mI (524) esp_image: segment 5: paddr=0x0020f3b0 vaddr=0x4008d178 size=0x01f14 ( 7956) loade[0m
e[0;32mI (527) esp_image: segment 6: paddr=0x002112cc vaddr=0x400c0000 size=0x00064 ( 100) loade[0m
e[0;32mI (539) boot: Loaded app from partition at offset 0x100000e[0m
e[0;32mI (539) boot: Disabling RNG early entropy source...e[0m
Bin version(Wroom32):1.1.2
I (660) wifi: wifi firmware version: de47fad
I (660) wifi: config NVS flash: enabled
I (660) wifi: config nano formating: disabled
I (670) wifi: Init dynamic tx buffer num: 32
I (670) wifi: Init data frame dynamic rx buffer num: 32
I (671) wifi: Init management frame dynamic rx buffer num: 32
I (676) wifi: wifi driver task: 3ffded44, prio:23, stack:3584
I (681) wifi: Init static rx buffer num: 10
I (685) wifi: Init dynamic rx buffer num: 32
I (689) wifi: wifi power manager task: 0x3ffdfe10 prio: 21 stack: 2560
I (722) wifi: mode : softAP (24:d7:eb:0e:f9:b1)
I (730) wifi: mode : sta (24:d7:eb:0e:f9:b0) + softAP (24:d7:eb:0e:f9:b1)
I (734) wifi: mode : softAP (24:d7:eb:0e:f9:b1)
not sure what the above is saying. i don't see an errro. these look more like progress/log messages
are you attempting to upload a sketch over-the-air (OTA) using WiFi?