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.
Error in basic examples spi_master/lcd
Error in basic examples spi_master/lcd
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.
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: Error in basic examples spi_master/lcd
Is the example from the same version of ESP-IDF as the one you are compiling it with?
Re: Error in basic examples spi_master/lcd
yes, the versions are the sameESP_Sprite wrote: ↑Sat Nov 02, 2024 6:15 amIs the example from the same version of ESP-IDF as the one you are compiling it with?
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: Error in basic examples spi_master/lcd
In that case, what specific version are you using?
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: Error in basic examples spi_master/lcd
That example in that version builds cleanly for me. For what chip are you compiling and do you have any specific changes in the sdkconfig?
Who is online
Users browsing this forum: Google [Bot], niels.1234 and 82 guests