2020-03-26 04:22 AM
Recently I started learning TouchGFX designer 4.13.0 with STM32F469I Discovery kit. I used getting started tutorial link. This is a amazing TFT designer tool. Simulation and target programming worked very well. STM32F469I-DISCO ioc file was generated as a default configuration. I used STM32CubeMX 5.6.0 for generating KEIL IDE and SW4STM32 projects.
However, compilation in SW4STM32 IDE caused an error listed below.
I searched for some fixes, excluding from compilation simulation folder link
It didn’t resolve compilation error. Can you please explain the nature of error?
"../TouchGFX/target/generated/OSWrappers.cpp"
../TouchGFX/target/generated/OSWrappers.cpp:17:10: fatal error: touchgfx/hal/OSWrappers.hpp: No such file or directory
#include <touchgfx/hal/OSWrappers.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
TouchGFX/target/generated/subdir.mk:27: recipe for target 'TouchGFX/target/generated/OSWrappers.o' failed
make: *** [TouchGFX/target/generated/OSWrappers.o] Error 1
KEIL MDK-ARM compilation errors
Build target 'STM32F469I-DISCO'
compiling TouchGFXHAL.cpp...
../TouchGFX/target/generated/TouchGFXGeneratedHAL.hpp(20): error: #5: cannot open source input file "touchgfx/hal/HAL.hpp": No such file or directory
#include <touchgfx/hal/HAL.hpp>
../TouchGFX/target/TouchGFXHAL.cpp: 0 warnings, 1 error
compiling STM32TouchController.cpp...
../TouchGFX/target/STM32TouchController.hpp(23): error: #5: cannot open source input file "platform/driver/touch/TouchController.hpp": No such file or directory
#include <platform/driver/touch/TouchController.hpp>
../TouchGFX/target/STM32TouchController.cpp: 0 warnings, 1 error
assembling startup_stm32f469xx.s...
compiling OSWrappers.cpp...
../TouchGFX/target/generated/OSWrappers.cpp(17): error: #5: cannot open source input file "touchgfx/hal/OSWrappers.hpp": No such file or directory
#include <touchgfx/hal/OSWrappers.hpp>
../TouchGFX/target/generated/OSWrappers.cpp: 0 warnings, 1 error
compiling CortexMMCUInstrumentation.cpp...
../TouchGFX/target/CortexMMCUInstrumentation.hpp(4): error: #5: cannot open source input file "platform/core/MCUInstrumentation.hpp": No such file or directory
#include <platform/core/MCUInstrumentation.hpp>
../TouchGFX/target/CortexMMCUInstrumentation.cpp: 0 warnings, 1 error
compiling TouchGFXConfiguration.cpp...
../TouchGFX/target/generated/TouchGFXConfiguration.cpp(17): error: #5: cannot open source input file "texts/TypedTextDatabase.hpp": No such file or directory
#include <texts/TypedTextDatabase.hpp>
../TouchGFX/target/generated/TouchGFXConfiguration.cpp: 0 warnings, 1 error
compiling KeySampler.cpp...
../TouchGFX/target/KeySampler.hpp(42): error: #5: cannot open source input file "platform/driver/button/ButtonController.hpp": No such file or directory
#include <platform/driver/button/ButtonController.hpp>
../TouchGFX/target/KeySampler.cpp: 0 warnings, 1 error
compiling TouchGFXGeneratedHAL.cpp...
../TouchGFX/target/generated/TouchGFXGeneratedHAL.hpp(20): error: #5: cannot open source input file "touchgfx/hal/HAL.hpp": No such file or directory
#include <touchgfx/hal/HAL.hpp>
../TouchGFX/target/generated/TouchGFXGeneratedHAL.cpp: 0 warnings, 1 error
compiling TouchGFXGPIO.cpp...
../TouchGFX/target/TouchGFXGPIO.cpp(18): error: #5: cannot open source input file "touchgfx/hal/GPIO.hpp": No such file or directory
#include <touchgfx/hal/GPIO.hpp>
../TouchGFX/target/TouchGFXGPIO.cpp: 0 warnings, 1 error
compiling Buttons.cpp...
../TouchGFX/target/Buttons.cpp(39): error: #5: cannot open source input file "touchgfx/hal/Buttons.hpp": No such file or directory
Can you please add in getting started section tutorials for other IDE's etc.
Best Regards,
Kamil
2020-03-31 07:29 AM
Hi,
Glad you like the designer.
Your symptoms look like you haven't pressed "Generate code" from the designer, or your IDE isn't picking this up (Tried refreshing?). For Eclipse based IDEs we only rely on STCubeIDE from now on and don't do any testing in AC6, Atollic, Eclipse, etc.
/Martin
2020-10-16 07:46 AM
Hi,
I have the same issue:
16:33:25 **** Incremental Build of configuration Debug for project NUCLEOF746ZG ****
make -j8 all
make: stat: ../Core/Startup/startup_stm32f746zgtx.s: Permission denied
arm-none-eabi-g++ "../TouchGFX/touchgfx/os/OSWrappers_cmsis.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DDEBUG -c -I../Core/Inc -I../TouchGFX/touchgfx/framework/include/touchgfx/hal -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../Drivers/STM32F7xx_HAL_Driver/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -I../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/touchgfx/os/OSWrappers_cmsis.d" -MT"TouchGFX/touchgfx/os/OSWrappers_cmsis.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/touchgfx/os/OSWrappers_cmsis.o"
arm-none-eabi-g++ "../TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterABGR2222.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DDEBUG -c -I../Core/Inc -I../TouchGFX/touchgfx/framework/include/touchgfx/hal -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../Drivers/STM32F7xx_HAL_Driver/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -I../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterABGR2222.d" -MT"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterABGR2222.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterABGR2222.o"
arm-none-eabi-g++ "../TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterARGB2222.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DDEBUG -c -I../Core/Inc -I../TouchGFX/touchgfx/framework/include/touchgfx/hal -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../Drivers/STM32F7xx_HAL_Driver/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -I../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterARGB2222.d" -MT"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterARGB2222.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterARGB2222.o"
arm-none-eabi-g++ "../TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterARGB8888.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DDEBUG -c -I../Core/Inc -I../TouchGFX/touchgfx/framework/include/touchgfx/hal -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../Drivers/STM32F7xx_HAL_Driver/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -I../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterARGB8888.d" -MT"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterARGB8888.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterARGB8888.o"
arm-none-eabi-g++ "../TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterBGRA2222.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DDEBUG -c -I../Core/Inc -I../TouchGFX/touchgfx/framework/include/touchgfx/hal -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../Drivers/STM32F7xx_HAL_Driver/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -I../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterBGRA2222.d" -MT"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterBGRA2222.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterBGRA2222.o"
arm-none-eabi-g++ "../TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterBW.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DDEBUG -c -I../Core/Inc -I../TouchGFX/touchgfx/framework/include/touchgfx/hal -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../Drivers/STM32F7xx_HAL_Driver/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -I../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterBW.d" -MT"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterBW.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterBW.o"
arm-none-eabi-g++ "../TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterGRAY2.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DDEBUG -c -I../Core/Inc -I../TouchGFX/touchgfx/framework/include/touchgfx/hal -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../Drivers/STM32F7xx_HAL_Driver/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -I../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterGRAY2.d" -MT"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterGRAY2.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterGRAY2.o"
arm-none-eabi-g++ "../TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterGRAY4.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F746xx -DDEBUG -c -I../Core/Inc -I../TouchGFX/touchgfx/framework/include/touchgfx/hal -I../TouchGFX/App -I../TouchGFX/target/generated -I../TouchGFX/target -I../Drivers/STM32F7xx_HAL_Driver/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -I../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterGRAY4.d" -MT"TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterGRAY4.o" --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/touchgfx/framework/source/touchgfx/widgets/canvas/AbstractPainterGRAY4.o"
../TouchGFX/touchgfx/os/OSWrappers_cmsis.cpp:2:10: fatal error: touchgfx/hal/OSWrappers.hpp: No such file or directory
#include <touchgfx/hal/OSWrappers.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
.....and other error lines
It seems that the IDE doesn't have access to the path where OSwrappers.hpp is included. (actually is included)