cancel
Showing results for 
Search instead for 
Did you mean: 

How to use NanoEdgeAI?

Junde
Senior III

Hi all,

Based on the tutorials, I am trying to create an AI lib using NanoEdgeAI.

The lib seems created successfully, see attachment.

But when I add it to the MDK project and compiler it, some errors like below is present:

Junde_0-1718879073778.png

When I remove the libneai.a, the project can be compiler normally.

Could you tell me what I was wrong?

Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @LVALV.1 

Thanks for your reply.

It is said we need change the name ".a" to ".lib" for MDK compiler.

And we must check the "fshort-wchar" option for MDK-ARM to compiler and linker successful.

Junde_0-1718934630493.png

One more, what kind of data need prepared for the AI lib learning?

Just the normal data is enough?

Thank you.

 

View solution in original post

3 REPLIES 3
LVALV.1
ST Employee

Hello Junde, 

 

How do you link the library ? 

It looks like there is a typo in your linker, I can see in your log arm-arm-none-eabi

 

Have a nice day

 

 

Hi @LVALV.1 

Thanks for your reply.

It is said we need change the name ".a" to ".lib" for MDK compiler.

And we must check the "fshort-wchar" option for MDK-ARM to compiler and linker successful.

Junde_0-1718934630493.png

One more, what kind of data need prepared for the AI lib learning?

Just the normal data is enough?

Thank you.

 

LVALV.1
ST Employee

Hello, 

 

Learning is usefull to create your model directly on your embedded device. You should learn all the beahviours that are nominal for your setup. 

More information on the documentation : https://wiki.st.com/stm32mcu/wiki/AI:NanoEdge_AI_Library_for_anomaly_detection_(AD)#Learning

 

To correctly link a static library in your project, you can follow this topic : 
https://community.st.com/t5/stm32-mcus/how-to-add-external-libraries-in-keil-mdk-arm-an-example-using-x/ta-p/646624

 

And documentation from your IDE. 

 

Thank you