Skip to main content
bully
Senior
April 20, 2020
Solved

Howto check custom board project in TouchGFX simulator ?

  • April 20, 2020
  • 3 replies
  • 977 views

Hello,

I have a GUI, that is also combined with another tasks in the project.

So we have some custom includes in the code of GUI.

I wonder if we are able to check this GUI also in simulator.

When I try to run Simulator, it complains about missing custom files in include statements...

Can I just somehow solve, because I'd only like to try the TouchGFX part of the project.

Is there any more info on how Simulator builds ?

Thanks in advance,

Regards,

B.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Short answer, No. The structure of TouchGFX Applications are so that the GUI will run on top of any HAL (Target HAL or Simulator HAL - SDL2 HAL). So, the "Run simulator" button from TouchGFX Designer will invoke a call to compile and link against an SDL2 platform while your CubeIDE project will link against a concrete library for some MCU family.

3 replies

Martin KJELDSEN
Principal III
April 20, 2020

My guess is that you're trying to compile target-specific code for a simulator, which naturally won't work. Guard target specific code with

#ifndef SIMULATOR 
 //target specific code
#endif

How did you create the project? All projects come with simulator makefiles and can be run from the designer.

bully
bullyAuthor
Senior
April 20, 2020

Thanks for hint, this seems doable, sincer I guess we have only 2 or 3 such includes...

But let me ask another question regarding simulator.

Let's say that I have TouchGFX project that lies inside CubeIDE project. Can I somehow compromise anything regarding the whole CubeIDE project if I run the TouchGFX part in simulator ?

Thanks in advance,

regards.

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
April 20, 2020

Short answer, No. The structure of TouchGFX Applications are so that the GUI will run on top of any HAL (Target HAL or Simulator HAL - SDL2 HAL). So, the "Run simulator" button from TouchGFX Designer will invoke a call to compile and link against an SDL2 platform while your CubeIDE project will link against a concrete library for some MCU family.