2023-02-16 08:17 AM
Hello,
TouchGfx v4.17.0
CubeIDE v1.11.2
I am using the .ioc UI to add an analogue pin for use with GUI, but when I save and generate code, it removes several TouchGfx files making code uncompilable, am I missing something in TouchGfx set up from CubeIDE?
TouchGfx itself generates code fine into CubeIDE and the deployment to board is also fine, I suspect there is just some buried option I am missing hopefully. Re-generating code from TouchGfx Designer doesn't repair missing files
Thanks
2023-02-17 12:51 AM
Hello @TakenTheBacon,
Which files are removed exactly ?
Did you start your project from TouchGFXDesigner or from CubeMX ?
Also, the TouchGFX version you are using seems a bit old and might not work well with this version of CubeIDE, could you please try to migrate your project to a more recent version, e.g. 4.21.1 ?
Thanks
/Yoann
2023-02-17 06:15 AM
Hello,
Files removed are:
TouchGfx\target\ entire folder,
TouchGfx\App\app_touchgfx.c and h
I can't migrate to 4.21.1 because it causes several more errors and missing folders,
Thanks
2023-02-17 06:29 AM
Are you using TouchGFX Generator inside CubeMX ?
/Yoann
2023-02-20 12:59 AM
Hi Yoann,
Yes I have the software package installed for 4.17, have tried things a few times now and still same errors. Undoing the deletion via GitHub, and refreshing everything, will then produce a further errors such as 'STM32DMA.hpp no such file or directory' even though the header file is available again in the same directory :(
In fact, reverting my pin change and re-generating the build that works also causes similar inclusion errors.. maybe there is something else in a set up I have missed compared to my co-worker? I would not know how to track it down
2023-02-20 02:35 AM
Hello,
That is really weird, those files are in fact generated by X-CUBE-TouchGFX when you press the generate code button in CubeMX.
What if you start a new project from scratch, reproduce the same configuration in CubeMX, press generate code, open TouchGFXDesigner and press generate code also, then try to compile the project ?
/Yoann
2023-02-20 08:47 AM
Hi Yoann,
Wondering if 'Generate Under Root' option is probable cause? It is selected in my Project Manager tab, but all options are greyed out and unchangeable, including Project name, toolchain etc
2023-02-21 04:46 AM
Generating under root should always be disabled. Is that the case in your project of is it checked ?
2023-02-21 06:03 AM
It is checked and most of the options in Project Manager are greyed out stopping me from editing. This may be the source of the issue.. project is inherited from a colleague (hence not updating TouchGfx version for collab). No issues changing user code or GUI and building/deploying.. not sure what may be causing greyed out options?
Tried process on another PC, reach same include errors after generate
2023-02-21 08:12 AM
Just checking... is this related?