Skip to main content
KMew
Senior III
November 4, 2022
Question

TouchGFX: CubeIDE Compiler Error when New Screen Added via TouchGFX Designer

  • November 4, 2022
  • 1 reply
  • 2442 views

Hello,

I generated code from the TouchGFX Designer 4.20.0 application, then added custom code afterwards to do the functions I required. I compile the code via the CubeIDE (NOT the TouchGFX Designer compiler) and it works without issue. All functions are working.

After this, I decided to add a new screen via the TouchGFX Designer. It's a simple start-up screen that just shows our company logo then transitions to the previous screen that I was working with. When I do that and hit the "Run Target" (to compile and run the code with the new screen), it works without issue. Both screens are there, my custom code that I put in the IDE still worked.

However, if I then jump to the IDE and try to compile/run it via the IDE, I get a compiler error that "Screen2View" does not exist. Specifically:

"undefined reference to `Screen2View::Screen2View()"

0693W00000WHTniQAH.png 

I'm unsure what the difference is. Can anyone help explain what's happening?

This topic has been closed for replies.

1 reply

MM..1
Chief III
November 4, 2022

Try in IDE right mouse click on project and choice Refresh ...

KMew
KMewAuthor
Senior III
November 4, 2022

I did try this. Same issue occurred.

MM..1
Chief III
November 4, 2022

Then yourr project was created in TouchGFX and then imported into IDE and you found next bug ...

Projects created in IDE dont have this issue, and too dont have Run Target button active.