cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX generates invalid code

alessandro.breuza
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
LouisB
ST Employee

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, 

Louis BOUDO
ST Software Developer | TouchGFX

View solution in original post

1 REPLY 1
LouisB
ST Employee

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, 

Louis BOUDO
ST Software Developer | TouchGFX