Skip to main content
Zui
Senior
April 16, 2019
Question

TouchGFX and Visual Studio no longer in sync

  • April 16, 2019
  • 4 replies
  • 784 views

Good morning.

Im working from several day in a project on touchGFX (atm prototyping on a STM32F746G-DISCO board), but today when i make a modification on touchGFX, this won't appear in visual studio simulator, and ofc it won't compile( it does compile and run on TouchGFX)

how can i fix this?

Thanks

Stefano

This topic has been closed for replies.

4 replies

cameronf
Associate
April 16, 2019

What compiler errors do you see for the simulator build? Most likely issue sounds like things were added to the GUI code base referencing STM target specific code that won't compile in the simulator, but take a look at the specific compiler errors for the simulator first.

Martin KJELDSEN
Principal III
May 14, 2019

Hi @Zui​,

What's the status of this? Can you check your .touchgfx file? If there's no postgenerate command to update the msvs project then it won't get updated. Which version of TouchGFX is this?

/Martin

Zui
ZuiAuthor
Senior
May 14, 2019

thanks for answer, well, i had to recover a backup ad redo the lost work (mostly annoying redrawing on touchGFX designer and copy/paste the code.

i just checked the .touchGFX file, and yes, i found this command:

"GenerateAssetsCommand": "make -f simulator/gcc/Makefile assets -j10",

   "PostGenerateCommand": "touchgfx update_project --project-file=../EWARM/FiorenzatoTouchGFX.ewp --gui-group-name=Application/User/TouchGFX/gui --generated-group-name=Application/User/TouchGFX/generated",

btw sometimes when this error occurred i see that the generated files are present, but are in "external dependencies" instead of appear as they shoud be (so in generated/gui/generated for the base file ecc

Martin KJELDSEN
Principal III
May 16, 2019

Hi,

According to that command, it will only update the EWARM (IAR) project. Did you modify it in some way?

Try adding (modify the path accordingly) which will also update the MSVS project:

" && touchgfx update_project --project-file=simulator/msvs/Application.vcxproj"