Build erros when using TouchGFX Designer and STM32CubeMX Interchangeably
The steps to reproduce this build error:
- Use TouchGFX Designer to create simple GUI by using the template for STM32F769-DISCO.
- Build and Run it on target -> OK
- Then open the .ioc using STM32CubeMX to configure for Virtual Com Port.
- Use STM32IDE to open the project , build and run -> OK
- But when we open the project using TouchGFX designer to edit some GUI, it had build error on target (simulation is ok).
Core/Src/main.c:24:10: fatal error: usb_device.h: No such file or directory
#include "usb_device.h"
^~~~~~~~~~~~~~
- compilation terminated.
It compains as it cannot find the file that CubeMX just generated from step 3.
Are my steps wrong to cause this? How to resolve this?
