2024-06-20 03:27 AM
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:
When I remove the libneai.a, the project can be compiler normally.
Could you tell me what I was wrong?
Thanks.
Solved! Go to Solution.
2024-06-20 06:55 PM
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.
One more, what kind of data need prepared for the AI lib learning?
Just the normal data is enough?
Thank you.
2024-06-20 05:38 AM
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
2024-06-20 06:55 PM
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.
One more, what kind of data need prepared for the AI lib learning?
Just the normal data is enough?
Thank you.
2024-06-21 02:23 AM
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