2024-07-18 7:52 AM
I am attempting to use the X-CUBE-DISPLAY module generated from STM32CubeMX for a ST7789V display. The configuration requires the selection of the LCD BUS IO driver to be a SPI port in Full-Duplex Master mode. However my display only has a single SDA line for input and output, so the SPI has to be configured in Half-Duplex Master mode. X-CUBE-DISPLAY will not allow this SPI port to be selected, so the code generation fails.
Is there a way for the X-CUBE-DISPLAY to work with a half-duplex SPI peripheral?
2025-08-14 1:38 AM
Hi sbaker
I just had the same issue, and just starting to look for a solution.
If you got any insights I would appreciate it very much.
Currently trying out to changes in
__weak HAL_StatusTypeDef MX_SPI2_Init(SPI_HandleTypeDef* hspi)
//hspi->Init.Direction = SPI_DIRECTION_2LINES;
hspi->Init.Direction = SPI_DIRECTION_1LINE;
Best regards