Error in Serial Monitor (esp32cam)

18:56:32.684 -> ets Jul 29 2019 12:21:46
18:56:32.684 ->
18:56:32.684 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
18:56:32.729 -> configsip: 0, SPIWP:0xee
18:56:32.729 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
18:56:32.729 -> mode:DIO, clock div:2
18:56:32.729 -> load:0x3fff0030,len:1344
18:56:32.729 -> load:0x40078000,len:13936
18:56:32.729 -> load:0x40080400,len:3600
18:56:32.729 -> entry 0x400805f0
18:56:33.253 -> E (546) esp_core_dump_flash: core dump partition found!
18:56:33.253 -> E (546) esp_core_dump_flash: No core dump partition found!
18:56:33.479 ->
18:56:33.479 -> E (247) camera: Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND)
18:56:33.479 -> Camera init failed with error 0x105ets Jul 29 2019 12:21:46

how is that a k500, Bootloader issues?

I'll move your question to a better category. In the future make sure you pick the right one when posting.

As you are new here, do yourself a favour and please read How to get the best out of this forum and post accordingly (including code tags and necessary documentation for your ask).

1. Are you using the following ESP32-CAM Module?
image
Figure-1:

2. When have you got the posted error message -- during uploading?

3. Which one of the following UAB/TTL Adapters you have used to upload sketch?

image
Figure-2:

image
Figure-3:

image
Figure-4:

The esp32 cam module is same, I don't have usb to uart module so i use arduino uno to upload code
I got the error message in serial monitor after uploading code successfully

As per onine titorial, I tried to upload using Fig-2 and Fig-3 adapaters of post #3, but I was not successful. After that, I was successful with ESP32-CAM-MB adapter of Fig-4 of post #4.

You have got error mssage after successful uploading using UNO as adapter.

alright but can you tell me why this type of error occur

I have no idea.

Can you tell how you have wired UNO with ESP32-CAM to upload sketch?

Sure.

5V to 5V
GND to GND
GND to RES (UNO)
GPIO to GND (ESP 32 CAM)
TX to TX
RX to RX

As I have no experinec of using UNO to uplod sketch to another board though there is an option of converting UNO as a programmer.

I would like to suggest you, if you like, to collect an ESP32-CAM-MB adapter Module and try.

This is a pointless line of questioning and useless suggestion. See Post #1. The OP has obviously connected to the serial port correctly and uploaded the code. The error message is from the running code and printed on the Serial Monitor. The problem has nothing to do with how the serial port is connected.

@diveshpannu: It stands to reason that nobody can help you with code that you haven't posted.

Here is the code

#include "esp_camera.h"
#include <WiFi.h>
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.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_AI_THINKER // 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
//#define CAMERA_MODEL_DFRobot_FireBeetle2_ESP32S3 // Has PSRAM
//#define CAMERA_MODEL_DFRobot_Romeo_ESP32S3 // Has PSRAM
#include "camera_pins.h"

// ===========================
// Enter your WiFi credentials
// ===========================
const char* ssid = "Redmi Note 11T 5G";
const char* password = "Pay and use";

void startCameraServer();
void setupLedFlash(int pin);

void setup() {
  WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0);
  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);
}

Does the simple Blink example from the Arduino IDE work?

That won't work without a logic level converter. The Uno is 5V, the ESP32 is 3.3V.

You may have already damaged one or both boards.

I'm still able to upload code in it

What's need of this?

umm then which module i should use to do this

You may try with the following safe setup. I will try soon and will post the result. Mind that ATmega328P of UNO board is in parallel with the level shifter!


Figure-1:

or

Use the following guaranteed adapter Module.


Figure-2:


Figure-3:

Fine, guess you know better. Good luck with your project.

thanks for help but i don't have both modules so i'm thinking to purchase adapter module...
and also please post the result if you try the above circuit diagram.

1. This is the setup among UNO, level shifter-ESP32-CAM. (Sorry for the ,mess!)
image
Figure-1:

2. This the the IDE configuration:

3. This is the error message during uploading of the following blink sketch with "AT Thinker ESP32-CAM" Baord.

#define RLED 33 //onbooard RedLED of ESP32-CAM

void setup()
{
  Serial.begin(115200);
  pinMode(RLED, OUTPUT);
}

void loop()
{
  digitalWrite(RLED, HIGH);
  delay(1000);
  digitalWrite(RLED, LOW);
  delay(1000);
}
Arduino: 1.8.19 (Windows 10), Board: "AI Thinker ESP32-CAM, 240MHz (WiFi/BT), QIO, Huge APP (3MB No OTA/1MB SPIFFS), 80MHz, None, Disabled"

Sketch uses 278429 bytes (8%) of program storage space. Maximum is 3145728 bytes.

Global variables use 21424 bytes (6%) of dynamic memory, leaving 306256 bytes for local variables. Maximum is 327680 bytes.

esptool.py v4.5.1

Serial port COM14

Connecting.....................................An error occurred while uploading the sketch

.

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

For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

4. If you select Arduino UNO Board, then there is good uploading in the UNO (CAM is still connected) and can verify loading the following sketch:

#define RLED 13 //change 13 to 33 for the onbooard RedLED of ESP32-CAM

void setup()
{
  Serial.begin(115200);
  pinMode(RLED, OUTPUT);
}

void loop()
{
  digitalWrite(RLED, HIGH);
  delay(1000);
  digitalWrite(RLED, LOW);
  delay(1000);
}

5. Conclusion
Did not uplaod.