cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the libneai.a lib in MDK?

Junde
Senior II

Hi guys,

These days I already know how to generate the AI model named libneai.a(also including the NanoEdgeAI.h) by NanoEdge AI Studio.

But I don't know how to use it, I try to import it to MDK, but MDK always has a compiler error. Is there some information about "How to do an AI demo from scratch"?

And one more thing, Can I valide the AI model(libneai.a) created by NanoEdgeAI at windows or linux platform?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

Hello Junde,

 

We don't use MDK, but based on what we found, it seems like you need to rename the libneai.a to libneai.lib. Please follow the official documentation: µVision User's Guide (arm.com)

 

Here is some documentation about NanoEdge's libraries:

Here is a link to a project example, at the end you can find information on how to integrate NanoEdge Ai libraries with cubeIDE, it may help you with MDK: AI:How to create a multi-state vibrations classifier using NanoEdge AI studio - stm32mcu

 

Finally, about your question to validate the library on windows or linux :

  • First, you can validate the library directly in the studio in the emulator step. The emulator simulates the behavior of the library as if in a microcontroller.
  • In this same step you can also download an emulator of the lib for window and linux and use it with command line interface. Here is a link for the emulator in Anomaly detection, you can find the documentation for the other emulator in the wiki: AI:NanoEdge AI Emulator for anomaly detection (AD) - stm32mcu

 

I hope this is helpful,

Have a good day!


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

2 REPLIES 2
Julian E.
ST Employee

Hello Junde,

 

We don't use MDK, but based on what we found, it seems like you need to rename the libneai.a to libneai.lib. Please follow the official documentation: µVision User's Guide (arm.com)

 

Here is some documentation about NanoEdge's libraries:

Here is a link to a project example, at the end you can find information on how to integrate NanoEdge Ai libraries with cubeIDE, it may help you with MDK: AI:How to create a multi-state vibrations classifier using NanoEdge AI studio - stm32mcu

 

Finally, about your question to validate the library on windows or linux :

  • First, you can validate the library directly in the studio in the emulator step. The emulator simulates the behavior of the library as if in a microcontroller.
  • In this same step you can also download an emulator of the lib for window and linux and use it with command line interface. Here is a link for the emulator in Anomaly detection, you can find the documentation for the other emulator in the wiki: AI:NanoEdge AI Emulator for anomaly detection (AD) - stm32mcu

 

I hope this is helpful,

Have a good day!


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.

Might also need some shim functions for the Linker to get closure.

Getting undefined referencing errors?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..