Closed TSKR007 closed 2 years ago
E (4868) cam_hal: cam_dma_config(280): frame buffer malloc failed
What kind of board do you have?
You need an ai-thinker esp32-cam board or another with 4 MB of psram.
There is not enough memory psram to allocate the camera buffers for jpeg processing.
You could add this print_ram() line here
cameraWebServer avoids the problem by making a small frame, and slowing down the camera.
Hi sir, thanks for the reply..i am using ai thinker cam ESP32-s after adding that line i got this....
_
... Internet connected mDNS responder started 'desklens' Local time: Wed Jan 26 18:19:50 2022
Starting camera ... E (4888) cam_hal: cam_dma_config(280): frame buffer malloc failed E (4889) cam_hal: cam_config(364): cam_dma_config failed E (4889) camera: Camera config failed with error 0xffffffff Camera init failed with error 0xffffffff
_
Looks like you got a esp32-cam with 2 MB of psram. That circle-lightning-Y brand.
I've always observed 4MB on my non-AI modules, but I see AI-Thinker says they have 8 MB,
You might be able to modify the code to use less psram ... but it would be some work, and would only operate with a small frame size, and slow recording.
i am new to this and using latest A1 version..... so there is an issue on serial Monitor its showing this.....
" Internet connected mDNS responder started 'desklens' Local time: Wed Jan 26 14:32:23 2022
The power save was: 1 Set power save to 0 The power save is : 0 Enable brownout Starting sd card ... SD card mount successfully! Name: USD
Type: SDHC/SDXC Speed: 40 MHz Size: 30720MB SD_MMC Begin: E (4661) vfs_fat_sdmmc: host init failed (0x103). 1 Starting server ... http task prio: 5 Camera http started Starting ftp ... Starting the esp32 sd file manager Total space: 30700MB Used space: 0MB Starting tasks ... camera, core 1, priority = 2 aviwriter, core 1, priority = 3 ftp, core 1, priority = 4 Starting camera ... E (4868) cam_hal: cam_dma_config(280): frame buffer malloc failed E (4869) cam_hal: cam_config(364): cam_dma_config failed E (4869) camera: Camera config failed with error 0xffffffff Camera init failed with error 0xffffffff "
if i use sketch "cameraWebServer" camera is working !!!