Skip to main content
Senior II
April 29, 2024
Solved

Console output of TouchGFX Environment messed up when compiling Simulator

  • April 29, 2024
  • 4 replies
  • 2257 views

I have a running STM32F7 project with TouchGFX on a custom board. Now I need to create a MS Windows application where config files can be edited. I thought misusing the simulation.exe generated by TouchGFX might be a good way to go. Same user interface for the customer, export/import of config files via USB storage device.

Of course at the beginning the Simulator won't compile because it tries to include HAL and other stuff that needs to be excluded by #ifdef SIMULATOR and exchanged with custom code for the Windows application. My plan was to wipe out one mistake after the other by starting the compile process in the console over and over again. But the console output of the build process is really messed up when starting from the TouchGFX Environment console instead of clicking Run in the Designer and looking at the log window.

Any hints on how to fix the console output? It not only has wrong indentation, it is also mixed up text.

I'm using Win10 and TouchGFX 4.23.2

    This topic has been closed for replies.
    Best answer by t.decker

    Just found out, that running the make with only one thread

    make -f simulator/gcc/Makefile -j1

     "fixes" the problem. Might be slower, but at least I can read the output properly.

    4 replies

    t.deckerAuthorBest answer
    Senior II
    April 30, 2024

    Just found out, that running the make with only one thread

    make -f simulator/gcc/Makefile -j1

     "fixes" the problem. Might be slower, but at least I can read the output properly.

    When this account seems to be inactive, try @tdecker2 - ST can't change mail addresses, so I had to create a new account.
    ST Employee
    April 30, 2024

    Hello @t.decker ,

    Glad to hear that you managed to fix the issue. We will investigate more on this issue.

    Could you please select your comment as the accepted solution? 

    Mohammad MORADIST Software Developer | TouchGFX
    t.deckerAuthor
    Senior II
    April 30, 2024

    Hello @Mohammad MORADI ESFAHANIASL,

    thank you for investigating this. Never seen this behaviour on any gcc compiles with -j[>1] before. I've also noticed that - while CubeIDE uses gcc 12 - the Windows application is built with a quite old gcc 7.3.

    When this account seems to be inactive, try @tdecker2 - ST can't change mail addresses, so I had to create a new account.