cancel
Showing results for 
Search instead for 
Did you mean: 

Button not getting released after touching when using stem win library

goutham
Associate II

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
goutham
Associate II

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

 

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

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

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

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

 

It was already enabled in main program