Error in basic examples spi_master/lcd
Posted: Fri Nov 01, 2024 9:03 am
Good afternoon, experts. I have such a problem: I started studying SPI with the basic example proposed in the documentation https://github.com/espre ... aster/lcd . When compiling, such an error comes out, I understand that he swears that the function 'spi_bus_dma_memory_alloc' is not declared, but can I take it? Tell me please.
C:/Users/user/Desktop/lcd/main/spi_master_example_main.c: In function 'display_pretty_colors':
C:/Users/user/Desktop/lcd/main/spi_master_example_main.c:380:20: error: implicit declaration of function 'spi_bus_dma_memory_alloc' [-Werror=implicit-function-declaration]
380 | lines = spi_bus_dma_memory_alloc(LCD_HOST, 320 * PARALLEL_LINES * sizeof(uint16_t), 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/user/Desktop/lcd/main/spi_master_example_main.c:380:18: warning: assignment to 'uint16_t *' {aka 'short unsigned int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
380 | lines = spi_bus_dma_memory_alloc(LCD_HOST, 320 * PARALLEL_LINES * sizeof(uint16_t), 0);
| ^
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
* The terminal process "c:\Espressif\tools\idf-python\tools\ninja\1.11.1\ninja.exe" terminated with exit code: 1.