stm32_hal_graphics_display_drivers icon indicating copy to clipboard operation
stm32_hal_graphics_display_drivers copied to clipboard

STM32F405 SPI DMA

Open SaschaSt75 opened this issue 2 years ago • 2 comments
trafficstars

Hello,

I have configured the driver for an ILI9488 display and SPI. However, when I turn on LCD_DMA_TX I get the error:

/Core/Src/Lcd/lcdts_io_xpt2046_spi_hal.c:491:23: error: 'LCD_SPI_HANDLE' undeclared (first use in this function); did you mean 'LCDTS_SPI_HANDLE'?

Where is the error?

Regards Sascha

SaschaSt75 avatar Nov 13 '23 05:11 SaschaSt75

So,

at File lcdts_io_xpt2046_spi_hal.c

@Line 491 replace:

__HAL_DMA_DISABLE(LCD_SPI_HANDLE.hdmatx);

with:

__HAL_DMA_DISABLE(LCDTS_SPI_HANDLE.hdmatx);

If use #define LCD_RGB24_BUFFSIZE @Line 546 replace:

__HAL_DMA_DISABLE(LCD_SPI_HANDLE.hdmatx);

with:

__HAL_DMA_DISABLE(LCDTS_SPI_HANDLE.hdmatx);

Thats all

SaschaSt75 avatar Nov 14 '23 15:11 SaschaSt75

Thanks for the comment, I fixed it.

RobertoBenjami avatar Nov 20 '23 09:11 RobertoBenjami