cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE Library issues

mathieusteketee
Associate III

Hello, I am trying to use the TensorFlow Lite Micro library for my project in STM32CubeIDE.

I have made a folder for the library in my project as shown: 

mathieusteketee_0-1714264556733.png

I have included the directory for the folder in under the "Path and Symbols" tab:

mathieusteketee_1-1714264745926.png

When I simply try to include one of the header files in the Core/main.c code I receive this message:

mathieusteketee_2-1714264895949.png

When I then also try to adding the Source Location:

mathieusteketee_3-1714264973248.png

I recieve even more errors. Where most of the errors are: "No such file or directory". See image:

mathieusteketee_4-1714265044620.png

 

I have also trying the folder location in the C/C++ Build settings under MCU GCC Linker/Libraries, but with no success:

mathieusteketee_5-1714265204004.png

 

Does anyone know how to fix this problem or have any tips?

 

Thank you.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Thank you for your reply @Rim LANDOLSI!

I have looked at this article you sent and did exactly as described.

I however found my soultion was downloading the STM32 X-Cube-AI and following the steps from the following video:  

https://www.youtube.com/watch?v=crJcDqIUbP4

View solution in original post

2 REPLIES 2
Rim LANDOLSI
ST Employee

Hello @mathieusteketee  and welcome to the community,

This knowledge base article may help you link an external library to the STM32CubeIDE project. Otherwise, according to the screenshot, there is a mismatch of the included path of the library is ../libraries/tflite-micro-main, but in the IDE project under ../libraries/tflite-micro-main/tflite-micro-main.

Hope this helps you!

Thanks,
Rim.

Thank you for your reply @Rim LANDOLSI!

I have looked at this article you sent and did exactly as described.

I however found my soultion was downloading the STM32 X-Cube-AI and following the steps from the following video:  

https://www.youtube.com/watch?v=crJcDqIUbP4