Skip to main content
Mon2
Senior III
January 18, 2021
Solved

TouchGFX 4.16 with IAR / Keil working?

  • January 18, 2021
  • 4 replies
  • 1231 views

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.

This topic has been closed for replies.
Best answer by Romain DIELEMAN

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

4 replies

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
January 18, 2021

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

Romain DIELEMAN
ST Employee
January 18, 2021

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