cancel
Showing results for 
Search instead for 
Did you mean: 

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

Cipher626
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

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.

View solution in original post

1 REPLY 1
Julian E.
ST Employee

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.