cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-DISPLAY with Half-Duplex SPI

sbaker
Associate II

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? 

1 REPLY 1
Kristian
Associate

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