Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32F405 SPI DMA #2

Open
SaschaSt75 opened this issue Nov 13, 2023 · 2 comments
Open

STM32F405 SPI DMA #2

SaschaSt75 opened this issue Nov 13, 2023 · 2 comments

Comments

@SaschaSt75
Copy link

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
Copy link
Author

SaschaSt75 commented Nov 14, 2023

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

@RobertoBenjami
Copy link
Owner

Thanks for the comment, I fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants