Skip to main content
AStew.1
Associate II
August 17, 2025
Question

STM32H747i-Disco Display

  • August 17, 2025
  • 1 reply
  • 304 views

I am using an STM32H747i-Disco board for a time critical application. I would like to periodically output simple text messages to the display.but I don't want to use an RTOS, so TouchGFX is not an option. In LCD.c there appear to be no functions to simply display text at a location on the screen.

Do such functions exist? If so where?

1 reply

AScha.3
Super User
August 17, 2025

> periodically

So you have some timer, to decide when a message should be coming. Then - just show it.

> in LCD.c there appear to be no functions to simply display text at a location on the screen

Whats your LCD.c ? any kind of lcd driver lib ? There should be something like :

WriteString(uint16_t x, uint16_t y, const char *str, FontDef font, uint16_t color, uint16_t bgcolor)

 

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
AStew.1
AStew.1Author
Associate II
August 17, 2025

In the BSP package for STM32H747i Disco there is "stm32h747i_discovery_lcd" it only has functions to draw lines, no "WriteString" function.

AScha.3
Super User
August 17, 2025

Ahh...ok.

So: > To draw .. on LCD and display text, utility basic_gui.c/.h must be called. 

Once the LCD is initialized,
user should call GUI_SetFuncDriver() API to link board LCD drivers to BASIC GUI LCD drivers.
The basic gui services, defined in basic_gui utility, are ready for use.

<

Maybe here:   https://github.com/STMicroelectronics/STM32CubeH7/blob/master/Utilities/lcd/stm32_lcd.c#L398

void UTIL_LCD_DisplayStringAt(uint32_t Xpos, uint32_t Ypos, uint8_t *Text, Text_AlignModeTypdef Mode)

...so you have included ?

LCD ->   https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Utilities/lcd

and fonts.. -> https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Utilities/Fonts

And this might be good example, how easy to use and useful the examples are;

 @Emil Damkjaer PETERSEN , maybe you can help here.

 

"If you feel a post has answered your question, please click ""Accept as Solution""."