Skip to main content
Visitor II
August 28, 2024
Question

fatal error coming

we are facing following errors during compilation:
1. fatal error: cmsis_os2.h: No such file or directory OSWrappers.cpp /STM32U5G9J-DK2/Application/User/TouchGFX/target/generated line 22 C/C++ Problem

2.Description Resource Path Location Type
fatal error: cmsis_os2.h: No such file or directory STM32U5G9J-DK2 line 24 C/C++ Problem

3.Description Resource Path Location Type
fatal error: nema_sys_defs.h: No such file or directory nema_hal.c /STM32U5G9J-DK2/Application/User/TouchGFX/target/generated line 31 C/C++ Problem

4.Description Resource Path Location Type
fatal error: touchgfx_nema/HALGPU2D.hpp: No such file or directory STM32U5G9J-DK2 line 21 C/C++ Problem

5.Description Resource Path Location Type
fatal error: touchgfx_nema/LCDGPU2D.hpp: No such file or directory TouchGFXConfiguration.cpp /STM32U5G9J-DK2/Application/User/TouchGFX/target/generated line 24 C/C++ Problem

This topic has been closed for replies.

1 reply

ST Technical Moderator
August 28, 2024

Hello @aiswarya ,

It seems that you have missing or incorrect paths.

So, ensure that all required include paths are correctly set up in your project settings. 

  • Go to Project Properties -> C/C++ Build -> Settings -> Tool Settings -> Includes and add the correct paths to your include directories.
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks