Skip to main content
Visitor II
May 16, 2025 7:07 AM UTC
Solved

Fixing "knowledge.h: No such file or directory" Error in STM32CubeIDE

error facederror facedLibrary pathsLibrary pathsLibrary pathsLibrary pathslibrary pathslibrary pathsError in consoleError in consoleI am working on using Nano Edge AI to classify sounds using my STM32 NUClEO-L476RG development board.

i classified the recorded sounds as Crying Baby, Ambulance Siren, and Noise. I deployed the library and got a few files mainly "knowledge.h" and "NanoEdgeAI.h". But when I include them in my main.c file I face the following error.

../Core/Src/main.c:23:10: fatal error: knowledge.h: No such file or directory

23 | #include "knowledge.h"

| ^~~~~~~~~~~~~

compilation terminated.

make: *** [Core/Src/subdir.mk:34: Core/Src/main.o] Error 1

make: *** Waiting for unfinished jobs...

.

What might be the issue?

I am attaching the included paths, so it would be easy to communicate.

This topic has been closed for replies.
Julian E.
Julian E.Best answer
ST Technical Moderator
May 21, 2025 1:11 PM UTC

Hello @Cipher626,

 

It seems to be a setting issue

Try to add this: ../neai_library/Inc in C/C++ Build -> Settings -> MCU GCC Compiler -> Include paths

 

JulianE_0-1747833766571.png

 

Have a good day,

Julian 

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

1 reply

Julian E.
Julian E.Best answer
ST Technical Moderator
May 21, 2025 1:11 PM UTC

Hello @Cipher626,

 

It seems to be a setting issue

Try to add this: ../neai_library/Inc in C/C++ Build -> Settings -> MCU GCC Compiler -> Include paths

 

JulianE_0-1747833766571.png

 

Have a good day,

Julian 

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.