2024-03-03 03:53 AM
Hello, I have made a simple application with STM32G071RB_NUCLEO and an X-NUCLEO-GFX01M2 I TouchGFX. The problem is that the needle in the Gauge or the hands in the analogue clock are not displayed. When I look at Memory Details in STM32CubeIDE I can see the files. Does anyone know how to fix it? Br. Stig Hansen
Solved! Go to Solution.
2024-03-05 01:10 AM - edited 2024-03-06 01:30 AM
Hello @amigafan ,
You are right, with this setup by default it will not be visible.
That is because the needles and texture mappers and the chip you are using doesn't support texture mapper in external memory.
You need to have those assets in the internal flash to access them quickly.
Furthermore, as the internal flash is limited, I had to compress those images to L8_ARGB8888.
You can enable L8_ARGB8888 compression by clicking on "Config" on the bottom left of your screen, then "Framework features" :
Then you can compress the images by clicking on "Images" on the top left of your screen then selecting the desired Image format :
Finally, from the same window, set the fields "Section" and "Extra section" on the right as internal flash ("IntFlashSection").
With these modifications I was able to get a working project on my G071RB board plus GFX01M2 screen.
If this comment solves your problem, please select it as "Best answer" so that other people encountering the same issue can get to the answer quickly I so that I can close this thread .
Regards,
2024-03-04 07:50 AM
Hello @amigafan ,
Just to be sure, it works fine on the simulator?
Can you share your code too?
Regards,
2024-03-04 08:09 AM
2024-03-04 10:32 PM
Hello. You can attach code in rar or 7zip packets. Br. Jtp
2024-03-05 12:54 AM
2024-03-05 01:10 AM - edited 2024-03-06 01:30 AM
Hello @amigafan ,
You are right, with this setup by default it will not be visible.
That is because the needles and texture mappers and the chip you are using doesn't support texture mapper in external memory.
You need to have those assets in the internal flash to access them quickly.
Furthermore, as the internal flash is limited, I had to compress those images to L8_ARGB8888.
You can enable L8_ARGB8888 compression by clicking on "Config" on the bottom left of your screen, then "Framework features" :
Then you can compress the images by clicking on "Images" on the top left of your screen then selecting the desired Image format :
Finally, from the same window, set the fields "Section" and "Extra section" on the right as internal flash ("IntFlashSection").
With these modifications I was able to get a working project on my G071RB board plus GFX01M2 screen.
If this comment solves your problem, please select it as "Best answer" so that other people encountering the same issue can get to the answer quickly I so that I can close this thread .
Regards,
2024-03-06 06:55 AM
Thanks, yes it works now. Regards..