Skip to main content
alessandro.breuza
Associate III
October 7, 2024
Solved

TouchGFX generates invalid code

  • October 7, 2024
  • 1 reply
  • 733 views

The following sequence leads to invalid code being generated:

1. start a new project in TouchGFX (simulator or board)

2. add a custom container

3. add a static graph element named 'graph' inside the custom container

4. generate code - code is fine and compiles good both in simulator and target

5. close TouchGFX and re-open the project

6. generate code without any modification

Generated code is buggy both in CustomContainer1Base.hpp and CustomContainer1Base.cpp: the string "graphLine1" is missing anywhere in code.

7. delete 'Line' element from graph

8. add a 'Line' element on graph

9. generate code - code is good again

 

TouchGFX v.4.24.1

 

Not a blocking bug (I can revert generated code from git), but it is annoying...

Alessandro

Best answer by LouisB

Hello @alessandro.breuza ,

Thanks for your feedback, I was able to reproduce the bug and for some reason it only happen when the graph widget doesn't have a number at the end of the name. You advise to rename it with a number at the end in the meantime, it then generates correctly. We will fix this issue in a next release.


Best regards, 

1 reply

LouisBBest answer
ST Employee
October 8, 2024

Hello @alessandro.breuza ,

Thanks for your feedback, I was able to reproduce the bug and for some reason it only happen when the graph widget doesn't have a number at the end of the name. You advise to rename it with a number at the end in the meantime, it then generates correctly. We will fix this issue in a next release.


Best regards,