esp32-camera/examples missing "PRIV_REQUIRES esp_psram"

mnentwig
Posts: 4
Joined: Tue Jun 04, 2024 8:10 am

esp32-camera/examples missing "PRIV_REQUIRES esp_psram"

Postby mnentwig » Mon Jul 01, 2024 7:56 pm

Greetings,

I believe the example camera code needs to include "esp_psram" in its top level CMakeLists.txt.
Otherwise (on ESP32) it fails to allocate its frame buffer, as the code tries to place it in PSRAM due to CAMERA_FB_IN_PSRAM.
Without esp_psram, the PSRAM component does not show for "idf.py menuconfig"

Below the error message. It's either fixed by adding the component per the subject line (to double-check, CAMERA_FB_IN_DRAM avoids the issue as well).

I (488) cam_hal: Allocating 153600 Byte frame buffer in PSRAM
E (495) cam_hal: cam_dma_config(301): frame buffer malloc failed
E (501) cam_hal: cam_config(385): cam_dma_config failed
E (507) camera: Camera config failed with error 0xffffffff
E (513) example:take_picture: Camera Init Failed

Who is online

Users browsing this forum: benskiskull and 247 guests