2021-09-14 05:03 AM
Hi all,
I'm trying to use flexbutton having three layers (text, image, box with borders).
Everything looks fine on the designer (4.17.0) but when i flash the target device (stm32h735disco) the images aren't shown.
This happens flashing both from designer 4.17.0 or IDE 1.6.1
Any advice ?
Thanks!
Solved! Go to Solution.
2021-09-15 05:51 AM
OK so I think I have found the issue (I hope it isn't just an error from ziping and unziping the project). In the settings of the image in the flex button you have not set the "pressed" image. Because of that the code was never properly generated for the image as you can see in MainMenuViewBase.cpp in the TouchGFX/generated/gui_generated/src/mainmenu_screen (fix the issue for one of the flex buttons and generate code, you will see that the code is different for the button fixed)
It is surprising that you (at least I) did not get an error message from this.
/Romain
2021-09-14 06:07 AM
Hi,
Can you display those images when using a Image widget instead of a flex button ? are they stored in internal or external flash ? Could you share one of them so that I can try to replicate it ?
/Romain
2021-09-14 07:17 AM
2021-09-15 12:46 AM
Hum it does work on my side this is strange. Did you start your project from the available TouchGFX Board Setup for the STM32H735disco or did you start your project from scratch from STM32CubeMX or STM32CubeIDE ? Could you go to the "Config" settings (click on the "Config" tab on the left of TouchGFX Designer) ? There go to the "Framework Features" settings and make sure the relevant features are set. The Flex Button widget uses texture mappers unlike the Image widget, so maybe try to use a Texture Mapper widget (found in the same group as the Image widget) to see if my suspicion is correct.
/Romain
2021-09-15 02:36 AM
I started a brand new project from TouchGFX Designer using a blank project ( I mean from scratch) selecting STM32H735disco as target
The control you can see in the attached picture is a texturemapper widget, it seems to work fine....
More, all of the checkmarks in the framework features tab are checked.
I agree with you, this sounds really strange...
2021-09-15 03:29 AM
Could you maybe share your project so that I can have a look ? Or share screenshots of the image configuration in the settings tab on the right in TouchGFX Designer.
By starting from scratch I meant from STM32CubeMX or STM32CubeIDe, if you started from Designer by selecting the STM32H735 disco then I have the same setup as you which makes the error even weirder since I cannot replicate it :grinning_face_with_sweat:.
Could you look on the other side of the board for the revision number ? Something like MB1520-H736I-B02 in my case.
/Romain
2021-09-15 04:02 AM
I'm really sorry to disturb you but this error is really weird...
Yes, there's no problem with me to share the project with you, at the moment it only consists of the menu you can see and another page to control an LED modulating pwm.
Only, is there some way different than posting my code on this forum ? Please, let me know...
My board's revision number is MB1520-H735I-B02, I think that should be the same as yours
Thanks !
MZ
2021-09-15 04:11 AM
Could you also navigate to the C/Program Files/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/ExternalLoader folder and look for MX25LM1245G_STM32H735G-DK.stdlr ? I want to make sure you have the external loader available (even though you already are able to flash images.
/Romain
2021-09-15 04:14 AM
Yes my bad it is a typo I also have the MB1520-H735I-B02. You can send me the project through the message box in the forum.
/Romain
2021-09-15 04:41 AM
The loader seems to be in it's place
I'm packaging a zip file to send to the whole project
Thanks for your efforts !
MZ