ESP32 S3 OV2640 camera显示到LCD上出现:cam_dma_config(300): frame buffer malloc faile;cam_dma_config failed

问题现象:

E (894) cam_hal: cam_dma_config(300): frame buffer malloc failed
E (901) cam_hal: cam_config(384): cam_dma_config failed
E (907) camera: Camera config failed with error 0xffffffff
E (5869) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (5869) task_wdt:  - IDLE0 (CPU 0)
E (5869) task_wdt: Tasks currently running:
E (5869) task_wdt: CPU 0: camera_process_
E (5869) task_wdt: CPU 1: IDLE1
E (5869) task_wdt: Print CPU 0 (current core) backtrace

ESP32 S3 OV2640 camera显示到LCD上出现:cam_dma_config(300): frame buffer malloc faile;cam_dma_config failed_第1张图片

帧缓冲区 malloc 失败! cam_dma_config 失败 ! 相机配置失败,错误 0xffffffff
 

问题分析:

        由于摄像头每帧的数据都非常大,然而ESP32自带的DRAM都不够用,所以CAMERA 在初始化时一般都会配置 CAMERA_FB_IN_PSRAM 把摄像头每帧的数据存到PSRAM上面。

解决办法:

        所以我们还得去VS CODE 里面的SDK配置里面开启ESP32的PSRAM !

        具体操作步骤:找到ESP PSRAM 项,勾选 Support for external, SPI-connected RAM,然后按照图片下面设置:

ESP32 S3 OV2640 camera显示到LCD上出现:cam_dma_config(300): frame buffer malloc faile;cam_dma_config failed_第2张图片

        最后我们还要重新编译下载!问题解决!

ESP32 S3 OV2640 camera显示到LCD上出现:cam_dma_config(300): frame buffer malloc faile;cam_dma_config failed_第3张图片

你可能感兴趣的:(ESP32 S3 OV2640 camera显示到LCD上出现:cam_dma_config(300): frame buffer malloc faile;cam_dma_config failed)