2020-11-04 11:15 PM
We are able to run the TouchGFX code on target using TouchGFX 4.15.0 version.
When trying to port the generated to custom project created using STM32CubeIDE 1.4.2 version the display does not work.
I request correct configuration setting for display on STM32F429I Disc1.
Regards,
Rajesh K.
2020-11-18 04:23 AM
I'm confused.
You can make it work using 4.15.0. What is it exactly? How did you come by that project? Application Template?
What is this "custom" project? Also created using touchgfx? By custom do you then mean custom hardware based on f429? Or what? Is the application running? Did your configuration code get executed?
Please add more details (also generally when you ask for help - it's impossible to help otherwise).
/Martin
2020-11-18 11:03 PM
Hi Martin,
Thanks for your response.
We have tried two methods to use LCD available on evaluation board [STM32F429I Discovery].
Method.1: [Using Application Template]
Method.2: [Using Custom Template]
To summarize, Method.1 is working and Method.2 is not working.
We request the missing configuration setting in Method.2
Regards,
Rajesh K
2020-11-19 01:46 AM
Hi Rajesh!
The problem here is that when you select a board from cubemx/cubeIDE, you do not get any BSP - So, external flash / ram is not configured, for instance, just MCU defaults settings for controllers.
2020-11-19 01:47 AM
That's why it works in TouchgFX - because we did that work.
2020-11-19 01:51 AM
Hi,
The application templates provided when you start a project from Designer has all the optimized configuration needed to start graphic projects on the boards. When you start from CubeIDE or CubeMX a project with the default peripheral state, it misses the extra hand written configuration code we provided, along other necessary configuration for external RAM/flash for example. If you compare for example TouchGFXHAL.cpp in the target folder of your project created from CubeIDE (method 2) and the same TouchGFXHAL.cpp in the target folder of the project created with an application template (method 1), you can see the extra user code added.
Why do you wish to start a project directly from CubeIDE ? I would suggest to start a project from the application template provided by TouchGFX Designer (method 1) and then add the extra settings (USB Host for example if needed) to this project. If you truly need or wish to do method 2, then you need to add manually all the additional hand written configuration code. All of this is available in the code of the method 1 project. Be also careful with the pin settings and clock configuration.
/Romain
/Romain
2020-11-19 03:03 AM
Hi Romain,
Thanks for your feedback.
Using method 1, we are not able to configure other peripherals using STM32CubeIDE, because .ioc file is not generated. [Ex: If we want to generate UART code for serial communication along with TouchGFX code .ioc file is not available].
Using method 2, If we replace TouchGFXHAL.cpp generated using method 1, will it fix the issue ?
Regards,
Rajesh K.
2022-11-13 10:20 AM
Hello @Rajesh , were you able to fix this issue ? I am in the same boat as you were. Using Method-1, I am able to run the GUI and interact with my LCD, however this method doesn't generate an .ioc file. And with Method-2, I am unable to run/see the GUI.
This is issue is also related to following queries : https://community.st.com/s/question/0D53W00001TEO5eSAH/i-cant-import-project-from-touchgfx-to-cube-ide-stm429i-disco
I request assistance, @Martin KJELDSEN , @Romain DIELEMAN .
TouchGFX Version: 4.20.0
STM32CubeIDE Version : 1.7.0
Board : STM32F429I-DISC1
2022-11-13 05:51 PM
Hi,
The TouchGFX Board Setup (new name for application template) for the STM32F429I-DISC1 available in TouchGFX Designer 4.20.0 does contain an ioc file if you navigate in your project's folder.
Concerning method 2, as we wrote above this is expected as you are missing all the custom code to configure the RAM, flash, touch controller etc.. (some are automatically done by TouchGFX Generator but some do require hand written code depending on your configuration). You can see this by comparing TouchGFXHAL.cpp for both method 1 and method 2 projects.
/Romain