ESP-IDF v6 example code camera-dvp_spi_lcd will not compile
Posted: Fri Sep 05, 2025 2:46 pm
I get 1 error when trying to compile
In the file example_config.h at line 40 there is:
but if I click on either MALLOC_CAP_SPIRAM or MALLOC_CAP_DMA and choose Go to Definition it says 'No definition found'.
In sdkconfig.h at line 545 there is
What values should MALLOC_CAP_SPIRAM and MALLOC_CAP_DMA have, and where should they be defined?
Code: Select all
...../camera-dvp_spi_lcd/main/dvp_spi_lcd_main.c:166:18: error: implicit declaration of function 'esp_cam_ctlr_alloc_buffer'; did you mean 'esp_cam_ctlr_get_frame_buffer'? [-Wimplicit-function-declaration]
166 | cam_buffer = esp_cam_ctlr_alloc_buffer(cam_handle, cam_buffer_size, EXAMPLE_DVP_CAM_BUF_ALLOC_CAPS);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| esp_cam_ctlr_get_frame_buffer
...../camera-dvp_spi_lcd/main/dvp_spi_lcd_main.c:166:16: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
Code: Select all
#if CONFIG_SPIRAM
#define EXAMPLE_DVP_CAM_BUF_ALLOC_CAPS (MALLOC_CAP_SPIRAM | MALLOC_CAP_DMA)
In sdkconfig.h at line 545 there is
Code: Select all
#define CONFIG_SPIRAM 1