2024-12-12 10:27 PM - last edited on 2024-12-16 12:27 AM by Julian E.
I was able to run the Serial emulator in NANOEDGE AI STUDIO Validation, so as the next step, I run [COMPILE LIBRARY] in Deployment and don't know where to put the libneai.a file generated in Project Explore.
Also, please let me know if any other settings are required.
The evaluation board is B-L475E-IOT01A2.
Solved! Go to Solution.
2024-12-17 12:26 AM
Hello @hashimoto_m,
Please replace libneai.a to neai:
This should work.
Have a good day,
Julian
2024-12-16 01:03 AM
Hello @hashimoto_m,
NanoEdge libraries are easy to add your embedded project. You need to:
The logic for all kind of project is the same, so the integration is very similar. You can find example in these tutorials (near the end):
The documentation about the function for each kind of project can be found here:
We have example of code for some boards, sadly not yours, but you can still take a look at the main code to see what has been done: stm32ai-nanoedge-datalogger/Projects at main · stm32-hotspot/stm32ai-nanoedge-datalogger
Have a good day,
Julian
2024-12-16 08:13 PM
Hello Julian
Thank you for your reply.
I placed libneai.a generated by [COMPILELIBRARY] of [Deployment] of [NANOEDG EAI STUDIO]
in the core/src folder and linked libneai.a. (See attached image)
However, when I built it, the following error occurred.
I wonder if the link setting is wrong.
10:15:46 **** Incremental Build of configuration Debug for project HTS221_Sample_Deployment **** make -j8 all arm-none-eabi-gcc -o "HTS221_Sample_Deployment.elf" @"objects.list" -llibneai.a -mcpu=cortex-m4 -T"C:\ST\workspace2\HTS221_Sample_Deployment\STM32L475VGTX_FLASH.ld" --specs=nosys.specs -Wl,-Map ="HTS221_Sample_Deployment.map" -Wl,--gc-sections -static -L"C:\ST\workspace2\HTS221_Sample_Deployment\Core\Src" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group C:/ST/STM32CubeIDE_1.16.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32 .12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/ bin/ld.exe: cannot find -llibneai.a: No such file or directory collect2.exe: error: ld returned 1 exit status make: *** [makefile:69: HTS221_Sample_Deployment.elf] Error 1 "make -j8 all" terminated with exit code 2. Build might be incomplete. 10:15:46 Build Failed. 2 errors, 0 warnings. (took 659ms)
2024-12-17 12:26 AM
Hello @hashimoto_m,
Please replace libneai.a to neai:
This should work.
Have a good day,
Julian
2024-12-17 04:17 PM
Hello Julian
Thank you for your reply.
It worked, thank you.