Unable to add source files to TouchGFX generated project
I'm using a STM32F769I-DISCO (with the display) and generated the STM32CubeIDE project using TouchGFX designer 4.18.0. Opened it in CubeIDE and everything compiles without warning or error, flashes to the board, and looks like I'd expect. I configured USART1 as serial port and can send status messages to a serial terminal. All good so I committed to github (private) sto I have a known working starting point.
I've been unable to add any source files, even empty ones without any content without a "fatal error: test.h: No such file or directory" error. I added the empty header file by right clicking on the project name and selecting New-> Header file. I've done this in other projects without issue so why this is happening is driving me nuts. The test header is in the same folder as main.c, so why it can't see it is beyond me.
Suggestions or more info needed?
My eventual goal is to include a set of headers and source files from another project (also in CubeIDE). I've been searching the last few days and none of the solutions I've found on forums or elsewhere have solved the issue. This is the first time I've tried including files in a TouchGFX project that weren't automatically generated by it, so I suspect that's part of the issue.