cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX 4.16 with IAR / Keil working?

Mon2
Senior III

Hi. Downloaded the latest 4.16 TouchGFX toolchain; latest STM32CubeIDE; latest STM32CubeMX.

Selected STM32F429i-DISC1 kit -> imported the Pool Lights GUI. Nothing else. Ran fine on the simulator; runs fine on the target. Generated Code. No errors. Very nice.

Wish to interact with CubeMX using this GUI generated project. Compiles without errors on the STM32Cube IDE.

Raises many errors with IAR / Keil compilers.

Can post more details later today.

Any known issues with these toolchains?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Romain DIELEMAN
ST Employee

Hi,

In order to work with IAR or Keil you need to select the toolchain/IDE you wish to work for within CubeMX in the "Project Manager" tab, and re-generate code from CubeMX. Then open the TouchGFX project in TouchGFX Designer and generate code as well. You will now be able to run the project with the selected toolchain.

The application templates for dev kits have projects for different toolchains but not all project files are present in your project at the same time. The tool chain selected in CubeMX is the one that will be generated, by default CubeIDE is selected. Here is a link to the documentation: Using IDEs with TouchGFX article

/Romain

View solution in original post

4 REPLIES 4
Romain DIELEMAN
ST Employee

Hi,

In order to work with IAR or Keil you need to select the toolchain/IDE you wish to work for within CubeMX in the "Project Manager" tab, and re-generate code from CubeMX. Then open the TouchGFX project in TouchGFX Designer and generate code as well. You will now be able to run the project with the selected toolchain.

The application templates for dev kits have projects for different toolchains but not all project files are present in your project at the same time. The tool chain selected in CubeMX is the one that will be generated, by default CubeIDE is selected. Here is a link to the documentation: Using IDEs with TouchGFX article

/Romain

or did you mean that the "Pool Demo" (Pool Lights ?) UI example does not run with IAR or Keil ?

Thank you Romain. Quite the trick but working well 🙂 So far, very pleased with the results. You guys have come a long way on this integration.
Have the Wizard generated code working on STCubeIDE; IAR and Keil.

Hello Mon2,

I'm glad you are pleased with the current solution :D

When your question is answered, please close this topic by choosing Select as Best.

/Alexandre