cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE 1.0.0 + TouchGFX 4.10.0: Working project inside (STM32F746G-DISCO)

Martin KJELDSEN
Chief III

Hello everyone,

Due to an increasing number of people having issues with CubeIDE and TouchGFX Integration i'm attaching a working project for STM32F746G-DISCO for your inspection - There were a good number of things to do before it worked, only some of which i highlighted in my quick-guide and even some of those steps were a bit ambiguous and could be executed in different ways.

I've written down what i've done to get this project working and i will use this in planning a video tutorial - It has to be somewhat official, so i can't simply start up the screencast and start talking. But i'll keep you updated.

/Martin

84 REPLIES 84
NSeba
Associate III

I am using STM32F429IGT6 microcontroller, Cube IDE Version: 1.0.2, and TouchGFX 4.10.0

I have configured all peripherals as shown in your example, but the TouchGFX option is not coming active

Attatching the project, Please check whether I have done anything wrong

Hi,

I'll check it out as soon as possible.

/Martin

Sir,

Thanks for the consideration.

I got it correct and compiled successfully , I missed enabling some interrupts as in your example.

  1. I am using an LCD without controller (800*480) connected to LTDC. Disabled ILI 9346 in TouchGFX Parameter. Am I correct ?
  2. Even after that the system is asking to specify other pins and SPI which are not in my LCD (platform settings). Will it cause any issues ?; I am yet to test it on hardware.
  3. How to interface my touch controller XPT2046 with touchGFX ?

0690X00000ARblAQAT.png0690X00000ARbkwQAD.png

RRoon
Associate II

Hi Martin,

I've taken your f746g-disco-test example above, an loaded it into CubeIDE 1.02.

If I only do a build, it works fine.

I click on the .ioc file and it prompts me to "Migrate or Cancel Project". I migrate and CubeMX opens.

I select Graphics > TouchGFx and Execute.

TouchGFx opens.

I do no edits. I click Run Simulator- I get "Unable to Launch Simulator".

I click "Generate Code" - I get "Error during code generation".

Errors :

make -f simulator/gcc/Makefile assets -j10

touchgfx update_project --project-file=../.cproject

Post Generate Error

no <projectDescription> node in ../.cproject

What does this mean ? The Update process is presumably screwing up something ?

RRoon
Associate II

I fixed it. Your mention of Post Generate above gave me a clue. Thanks!

The migration changes this line in GFX Project file.

I just deleted it.

151:      "PostGenerateCommand": "touchgfx update_project --project-file=../.cproject ",

Yep that's one way of doing it. Or, you can download this patch gem which will be able to understand cubeide projects (this was not supported by 4.10.0 originally.

http://sw-center-st-com.s3-eu-west-1.amazonaws.com/touchgfx/TouchGFX/Evaluation/4.10.0/touchgfx-cli-4.10.2.gem

Try installing this from the 4.10.0 touchgfx environment and your post generate command should work.

/Martin

RRoon
Associate II

Hi Martin,

how do I install this ?

​Hi @RRoon​

gem install touchgfx-cli-4.10.2.gem

 Just do it from your TouchGFX  environment.

/Martin

Me too:smirking_face:

I like this idea because there are many information and video available about this integration but there is a lot of confusion.

I have a STM32F749G and using your app I have the same problem of my app.

Until here with F6 all ok

 /* Configure the system clock */

 SystemClock_Config();

after start an infinite loop on this function

void TIM6_DAC_IRQHandler(void)

{

 /* USER CODE BEGIN TIM6_DAC_IRQn 0 */

 /* USER CODE END TIM6_DAC_IRQn 0 */

 HAL_TIM_IRQHandler(&htim6);

 /* USER CODE BEGIN TIM6_DAC_IRQn 1 */

 /* USER CODE END TIM6_DAC_IRQn 1 */

}