Skip to main content
Associate II
November 23, 2023
Solved

Button not getting released after touching when using stem win library

  • November 23, 2023
  • 2 replies
  • 2015 views

I created a button widget with stem win library. The button click is detected but button release is not happening. I tried using some demo programs there it is working. I have attached a basic program which shows when a button is pressed and released. I am testing this on STM32F429 discovery board.

 

This topic has been closed for replies.
Best answer by goutham

I got the solution from another link:https://community.st.com/t5/stm32-mcus-touch-gfx-and-gui/stemwin-button-not-getting-wm-notification-released-message/td-p/448740.

what I did is replaced a function which I added in attached file.

Replace the function in main program

 

2 replies

Technical Moderator
November 23, 2023

Hello @goutham,

You should enable clock for CRC module: __HAL_RCC_CRC_CLK_ENABLE();
The CRC must be enabled before calling GUI_Init, if not STemWin will be not function.

This is mentioned in the "GUI initialization" section of AN4323: "Note that before initializing the GUI, the CRC module (in RCC peripheral clock enable register) should be enabled".

Hope this helped you!

Imen

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
gouthamAuthor
Associate II
November 23, 2023

It was already enabled in main program

gouthamAuthorBest answer
Associate II
November 23, 2023

I got the solution from another link:https://community.st.com/t5/stm32-mcus-touch-gfx-and-gui/stemwin-button-not-getting-wm-notification-released-message/td-p/448740.

what I did is replaced a function which I added in attached file.

Replace the function in main program