cancel
Showing results for 
Search instead for 
Did you mean: 

Runing TouchGFX based code from STM32CubeIDE

JHarding
Senior

I cannot seem to get an Application Template to run from STM32CubeIDE.

Using the following versions of tools:

TouchGFX 4.13.0

STM32CubeIDE 1.2.0

Windows 10

Here are the steps that I follow:

From within TouchGFX:

1. File->New

2. Select Application Template STM32F746G Discovery Kit

3. Select UI Template -> Blank UI

4. Name the project STDemo and Click Create

5. Add a white box that fills the entire canvas.

6. Add a button that I can tap

7. Click Generate Code

8. Click Run Target

This does work, and I get the desired white box and single button that I can tap. Yay!

NOTE: To get TouchGFX designer to "Run Target" I did have to install STM32CubeProgrammer. I don't recall reading this anywhere in the guides that have been posted, but is made apparent by the error message that TouchGFX Designer throws when STM32CubeProgrammer is not installed.

Now I want to put this into STM32CubeIDE so I can link the button with some code. Here are the steps that I follow using the project that was created above:

1. Navigate to the "TouchGFXProjects" folder on my C: drive

2. Locate the STDemo project that I created above.

3. Locate the "STM32CubeIDE" folder that TouchGFX created.

4. Locate the .cproject file with in the "STM32CubeIDE" folder and open it using STM32CubeIDE.

5. The project is successfully imported.

6. Right click on the project name and select "Build"

7. I get this error:

make: *** No rule to make target 'C:/TouchGFXProjects/STDemo/TouchGFX/gui/src/logoargbbilinear127qspi_screen/LogoARGBBilinear127QSPIPresenter.cpp', needed by 'Application/User/gui/LogoARGBBilinear127QSPIPresenter.o'. Stop.
 
make: *** Waiting for unfinished jobs....

This is where I am stuck :(

The long term goal here is to get the new version of TouchGFX running on my custom hardware. I have the older version of TouchGFX from CubeMX 5.4 working on my custom board, but feel that it is "legacy" because of the new version of STM32CubeIDE and the X-Cube pack for TouchGFX. The best way to get this working is to start from a "known working setup", and this is by using the STM32F746G-Disco board. Once I can successfully get this board working from within the STM32CubeIDE I would like to get it working on my custom hardware.

35 REPLIES 35

Unfortunatelly not.

The debugger issue still remains.

I am working on it.

Does any body else has the same problem ?

The application template only fixed up compilation issues with CubeIDE projects (since the updater currently does not clean up unused files) - This means that if you delete a screen, you will have to delete it manually from the CubeIDE project. Adding new files works, but removing unused files doesn't.

/Martin

Did you check that your freertos heap and task stack sizes are okay?

You can get some inspiration from the F746G-DISCO application template from the designer.

/Martin

@scottSD​ To say the least, it changed. I still have issues though. I have attached a video with the process that I follow. I have also attached the project file. Ultimately the error that I get inside of STM32CubeIDE is as follows:

Download verified successfully 
 
 
(Read)Failed determine breakpoint type
Error! Failed to read target status 
Debugger connection lost.
Shutting down...

I have also been attempting to get this damn thing running in other ways. I have followed this helpful users video:

https://www.youtube.com/watch?v=o42r4xXOnbo

Following that video I actually get a working project, but the main issue is that when I generate code with TouchGFX, it doesn't use the GUI that I create, it uses an example project, so is mostly unusable.

Here is the video of the process that I followed. Apparently you can't attach more than one item to a post.

Yea, I have an issue with the debugger attaching to the process. This is what STM32CubeIDE spits out:

Download verified successfully 
 
 
(Read)Failed determine breakpoint type
Error! Failed to read target status 
Debugger connection lost.
Shutting down...

Ok, in the second portion of my post above when I was referring to the other users youtube video, I had forgotten to call MX_TouchGFX_Process() so the frame buffer was just loading what resided in it. This was of course a frame from a different project. I have a working demo project that I have attached (no touch screen, but that should be trivial with all of the forum posts about it).

Jancho
Associate II

Hi

I have the same problem , the compiling by stmcube it's impossible

are there some solve for this issue?

thanks

Please be more specific!

/Martin