Skip to main content
JKhal.1
Associate II
August 5, 2024
Question

LTDC and STemWIn GUI

  • August 5, 2024
  • 1 reply
  • 689 views

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.

This topic has been closed for replies.

1 reply

ST Technical Moderator
August 7, 2024

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks