cancel
Showing results for 
Search instead for 
Did you mean: 

LTDC and STemWIn GUI

JKhal.1
Associate II

Hi,

 

I am currently working with the STM32H7XIH microcontroller and an LCD TFT Type. I have successfully configured the LTDC and displayed a static image on the LCD. Now, I am attempting to integrate the STemWin GUI library into the project. The project compiles without any issues; however, I encounter a HardFault when I use the GUI_DispStringAt function. I need assistance with configuring the GUI library, please.

1 REPLY 1
Imen.D
ST Employee

Hello @JKhal.1 ,

In the main, the HardFault issue may be caused by one of the following:

  • If there is insufficient memory allocated for the GUI. For that, check Memory allocation, verify and increase the heap and stack sizes if necessary.
  • The CRC module must be enabled before calling GUI_Init. If the CRC module is not enabled, STemWin will not function correctly. So, ensure that the CRC module is enabled before calling GUI_Init.

I hope my answer helps you solve your issue.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen