Generate code from .ioc removes TouchGfx files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-16 8: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
- Labels:
-
STM32CubeIDE
-
STM32CubeMX
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-17 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-17 6:29 AM
Are you using TouchGFX Generator inside CubeMX ?
/Yoann
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-20 2: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
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-20 8: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-21 4:46 AM
Generating under root should always be disabled. Is that the case in your project of is it checked ?
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-21 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-21 8:12 AM
Just checking... is this related?
