Bug : Clock widgets do not work with STM32G071 application template [TouchGFX 4.15.0]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-09 5:35 AM
Hello !
With my TouchGFX designer, the digital widget and the analog clock widget do not work with the STM32G071 application template (at least with the simulator, I can not confirm with the board).
When I say it does not work I mean it is well displayed but the value (or animation) is never updated. The widget is frozen to the original value.
Solved! Go to Solution.
- Labels:
-
STM32G0 Series
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-09 7:28 PM
Hello,
If it's your simulator that is not working correctly then there is nothing related to the G0 board.
Please have a look at the Clock Example UI available in TouchGFX Designer and use it as a reference.
The clock widget will not work by itself. You need to implement handleTickEvent() and change the seconds, minutes accordingly.
When your question is answered, please close this topic by choosing Select as Best.
/Alexandre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-09 9:46 AM
Can you share your screenview.cpp file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-09 7:28 PM
Hello,
If it's your simulator that is not working correctly then there is nothing related to the G0 board.
Please have a look at the Clock Example UI available in TouchGFX Designer and use it as a reference.
The clock widget will not work by itself. You need to implement handleTickEvent() and change the seconds, minutes accordingly.
When your question is answered, please close this topic by choosing Select as Best.
/Alexandre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-11-10 12:43 AM
Thank you for your help. Indeed, it is not related to the G0 board
As @Alexandre RENOUX said, I need to implement my own handler for that (I thought it was automatic when adding this widget because of the default Clock example ^^')
You are right @MM..1 , this can be implemented in screenview.cpp by adding handleTickEvent(). (an example can be found with the Clock example template in mainView.cpp file)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-12 7:19 AM
Hello @SimonF ,
Analog Clock work fine on the target ?
I have your same hardware (I believe NUCLEO-G071 and X-NUCLEO-GFX01M1).
On the simulator everything is ok.
On the target the digital clock is ok, but the hands of the analog clock are not displayed. Only the clock_background is displayed.
The code is identical to the clock example of Designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-14 6:44 PM
Hello @Community member ,
Analog Clock utilizes texture mappers for the hands.
But the G0 Application template disables the texture mapper by default for several reasons :
- Reduces the memory footprint of TouchGFX lib (important with G0 since you have such a small amount)
- Texture mappers are heavy load widgets that are not meant for low cost solutions (you combine both partial framebuffer and low performance MCU).
You can try re-enabling the texture mapper feature by opening your project in the Designer go to Config -> Framework Features
When enabled, you should see the following :
/Alexandre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-15 12:33 AM
Hello @Alexandre RENOUX,
I have enabled the texture mapper. Flash occupancy increased by 50% (from 64k to around 96K) !!
However, the hands are not displayed.
I'm definitely not going to use widgets that require texture mapper on this hardware, but I wanted to point this out.
/Antonello
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-15 1:24 AM
Hello @Community member ,
First, in my experience, you should open a new ticket to have more visibility.
Then, I can confirm I have the same issue. I have even try to enable all Framework Features (in "Config").
I'm using 4.16.1 version. You should try an older one if you are using the same. And create a new ticket because this can be a bug with this specific hardware.
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-15 2:22 AM
Hello ALomb.1,
Please do the following :
- Enable Texture Mapper features (already done for you)
- Put the hands images into internal Flash and force them to be ARGB8888 (next step to do)
When your question is answered, please close this topic by choosing Select as Best.
/Alexandre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-15 2:51 AM
Hello @Alexandre RENOUX ,
putting the hands images into internal Flash and force them to be ARGB8888 solve the problem.
I only tried with the second hand (not much free space in the internal flash).
I can not choose "Select as Best", because I believe I did not open this ticket, but @SimonF .
He could do it.
Thank you
/Antonello
