2025-08-17 9:08 AM
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?
2025-08-17 9:31 AM - edited 2025-08-17 9:31 AM
> 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)
2025-08-17 9:39 AM
In the BSP package for STM32H747i Disco there is "stm32h747i_discovery_lcd" it only has functions to draw lines, no "WriteString" function.
2025-08-17 10:07 AM
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.