-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Open
espressif/esp32-camera
#781Labels
Status: Awaiting triageIssue is waiting for triageIssue is waiting for triage
Description
Board
ESP32S3-CAM with ov2640 camera
Device Description
Windows laptop through USB port
Hardware Configuration
No.
Version
v3.3.0
Type
Bug
IDE Name
Arduino IDE 2.3.5
Operating System
Windows 10
Flash frequency
QIO 80MHZ
PSRAM enabled
yes
Upload speed
921600
Description
Only in 3.3.0 after uploading ESP reboots continously after "Camera OK" message.
Only with "config.pixel_format = PIXFORMAT_JPEG;" seems working fine, with all others (Grayscale, RGB565 etc.) I get the reboot.
Also, with all previous versions there was not any issue with the camera (exactly same code with 3.2.1 downgrade works fine).
Sketch
#include <esp_camera.h>
#define CAMERA_MODEL_ESP32S3_EYE //Has PSRAM
#include <camera_pins.h>
void setup() {
Serial.begin(115200);
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.pixel_format = PIXFORMAT_GRAYSCALE;
config.frame_size = FRAMESIZE_QVGA;
config.grab_mode = CAMERA_GRAB_WHEN_EMPTY;
config.fb_location = CAMERA_FB_IN_PSRAM;
config.fb_count = 1;
esp_err_t camera_error = esp_camera_init(&config); // initialise the camera
if (camera_error != ESP_OK) {
Serial.print("ERROR: Camera init failed with error ");
Serial.println(camera_error);
} else {
Serial.print("Camera OK.");
}
}
void loop() {
}
Debug Message
E (1280) cam_hal: DMA overflow
16:36:35.731 -> Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception).
16:36:35.764 -> Debug exception reason: Stack canary watchpoint triggered (cam_task)
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Status: Awaiting triageIssue is waiting for triageIssue is waiting for triage