2025-09-19 7:01 PM - last edited on 2025-09-20 5:03 AM by mƎALLEm
I acquired a Utility to display simple text on a display with the STM32H743 using the attached LCD driver Utility files from ST MCD Application Team. I would like to also use this on my bootloader for the STM32H563, does anyone have the files to be able to use this with the STM32H5xx and ST7789V LCD? The STM32H743 has stm32h7xx_lcd.h/.c files that I had found for that micro that supports LTDC, the H5 does not have LTDC and I'm using an SPI interface to the ST7789V LCD display.
The stm32_lcd.c/.h files use the following BSB functions that I need to support for the STM32H5xx, I have the driver files for the ST7789V as I'm already using this display with TouchGFX for the application, but for the bootloader just need to display lines of text using UTIL_LCD_DisplayStringAtNextLine() with this utility.
BSP_LCD_DrawBitmap
BSP_LCD_DrawHLine
BSP_LCD_DrawVLine
BSP_LCD_FillRect
BSP_LCD_ReadPixel
BSP_LCD_WritePixel
BSP_LCD_GetXSize
BSP_LCD_GetYSize
BSP_LCD_SetActiveLayer
2025-09-22 12:55 AM
Hello @PFlor.2
For the STM32H5xx, especially the STM32H573I-Discovery board, there is a BSP driver that includes the LCD files you need. The files are called:
You can find them in this GitHub repository:
https://github.com/STMicroelectronics/stm32h573i-discovery-bsp/tree/6998f72f8c327b9e7e674a7a1b1eb5e2bccacc9a
br
2025-09-22 7:40 AM - edited 2025-09-22 7:42 AM
Thanks for this information, hopefully this will get me started. It's a bit confusing because the STM32H573i_discovery_lcd.h/.c indicates it is for a LS016B8UY LCD but I can clearly see functions for a ST7789H2 LCD. Apparantly the ST7789H2 is different from the ST7789V and used a FMC interface while the other uses SPI.
On the STM32H563 I'm using a ST7789V that uses a SPI interface, looks like the ST7789H2 on this discovery uses FMC so it looks to be quite a bit different. I hope I can start with this though and modify these files to utilize the interface I have. If you are aware of other examples that use the SPI interface on the STM32H5xx please let me know! Thanks a lot for this direction though as it gives me a starting point at least!
2025-09-22 8:54 AM - edited 2025-09-22 9:25 AM
Thanks for referring me but it seems that I just can't understand enough how to modify these to work with the SPI driver files I have for the ST7789V LCD display that I'm using. The FMC interface in these BSP driver files are too different for me to use after all. Thought I might be able to understand enough how to integrate the SPI interface but it is proving to be beyond my comprehension.
Is there any other simple way to write text strings to the LCD with SPI interface? The application is using TouchGFX so not sure I can pull out how to populate the display buffer, just need to show text for bootloader. Any advice is appreciated.