2020-11-09 05: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.
2020-11-09 07: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
2020-11-09 09:46 AM
Can you share your screenview.cpp file?
2020-11-09 07: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
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)
2021-03-12 07: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.
2021-03-14 06: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 :
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
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
2021-03-15 01: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
2021-03-15 02:22 AM
Hello ALomb.1,
Please do the following :
When your question is answered, please close this topic by choosing Select as Best.
/Alexandre
2021-03-15 02: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