s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
920 stars 210 forks source link

Camera init error 0xffffffff #363

Closed InokentiySSL closed 8 months ago

InokentiySSL commented 8 months ago

I bought 2 camera models and get the same error. The standard example from arduino ide works and the camera shows. Why is that? Снимок экрана 2024-02-07 153531 Снимок экрана 2024-02-07 152507 photo_2024-02-08_13-22-20

InokentiySSL commented 8 months ago

This project is also working. https://github.com/easytarget/esp32-cam-webserver Снимок экрана 2024-02-08 140912 Снимок экрана 2024-02-08 140934

s60sc commented 8 months ago

The camera module is telling the app it has a hardware error. Only you can diagnose why. Or just use the other apps

s60sc commented 8 months ago

in ESP32-CAM_MJPEG2SD.inoreplace:

if (psramFound()) prepCam();

with:

  if (psramFound()) {
    LOG_INF("PSRAM size: %s", fmtSize(esp_spiram_get_size()));
    prepCam();
  }

Need at least 4MB PSRAM

nelsonvarela commented 8 months ago

I think this issue can be closed. My CAM has 2MB PSRAM but the seller has 4MPSRAM stated on the website.... misinformation!

I can also see in @InokentiySSL's screenshot he has 2095071 bytes which is not enough.

Thanks @s60sc for your patience and willing to help.

s60sc commented 8 months ago

Thanks for that useful information. I'll add a note to the readme

soyabeannnn commented 7 months ago

But the thing is I've used different boards from different sellers and it still shows the PSRAM error.

The web server doesn't show up but only says Startup Failure: Insufficient PSRAM for app

guece1 commented 6 months ago

I have this problem with my esp32s3 and OV5640

Compilation error: 'esp_spiram_get_size' was not declared in this scope

the problem is on Arduino core for the ESP32 3.0.0-rc1 and 3.0.0-alpha3 on 2.0.15 and 2.0.14 i can compile but my cam module wont startup Startup Failure: Camera init error 0xffffffff on CAMERA_MODEL_ESP32S3_EYE_FREENOVE