Unable to compile with CubeMX+TouchGfx over Atollic
Hello everybody,
I just bought a Stm32F469-Discovery kit, and I've tried to create a really simple project that should work with both CubeMX (5.1.0) and TouchGFX(4.10.0) but I encountered some problems:
- First of all, I started CubeMX, selected my F469i-discovery board and set all the peripherals as default
- Then in Middleware -> Graphics I selected TouchGFX as graphics framework and chose Display Serial Interface using LTDC-DSIHOST. I also setted the link to the TouchGFX Executable. In Platform Settings I setted PH7 as LCD Reset Pin Xres
- Selected TrueSTUDIO under Project Maganer -> Toolchain/IDE
At this point I generated the code, it said it has some problems with GFX simulator but I ignored it because I will exclude that from compiling in the Atollic Project.
- Once I generate the code I executed TouchGFX from CubeMX, and created a simple screen with a white box as backgroud and a button in the center, I then clicked on Generate Code
At this point, once I tried to Build from Atollic it gives me errors with every file related to the simulator, so I excluded them from building, and this error came out:
fatal error: SDL2/SDL.h: No such file or directory | OSWrappers.cpp | /MyProject/Middlewares/ST/TouchGFX/touchgfx/framework/source/platform/hal/simulator/sdl2
referring to "#include <SDL2/SDL.h>" line.
I also have the same problem in HALSDL2.hpp:
/MyProject/Middlewares/ST/TouchGFX/touchgfx/framework/include/platform/hal/simulator/sdl2
I noticed that it says it can't find any file, but if I ctrl+click on the include line it opens the right file (so why does it says no such file or directory?)
Does anybody know can I do to solve this problem? I really don't know how to deal with that.
Thanks for your attention,
Mariano
