cancel
Showing results for 
Search instead for 
Did you mean: 

cubemx error

lxw
Senior

0690X000009ZYZNQA4.png

Use cubemx to generate touchgfx, open vs file compilation, error occurs

1 ACCEPTED SOLUTION

Accepted Solutions

Please check if the .touchgfx file contains the following command at PostGenerateCommand

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

This will update the MSVS project with the modified TouchGFX files

/Anders

View solution in original post

4 REPLIES 4

Hi @lxw​,

TouchGFX Designer needs to be executed before running the MSVS simulator.

This will populate the TouchGFX project with the needed files in order to run the simulator.

/Anders

Yes, I first used cubemx to generate the MDK project, then started designer to generate the code through cubemx.Then use vs to open MSVS, and compile to prompt the question.

Please check if the .touchgfx file contains the following command at PostGenerateCommand

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

This will update the MSVS project with the modified TouchGFX files

/Anders

Thank you!!!