cancel
Showing results for 
Search instead for 
Did you mean: 

How to include CMSIS-NN function in STM32CubeIDE coded files

PPoob.1
Associate III

Hi STM community,

Is anyone here familiar with adding the CMSIS-NN functions in a source code in STM32CubeIDE ?

If you are, could you please point me to or provide me with the proper steps to do so ?

As I am facing compile error "undefined reference to ..." when I attempt to use these functions e.g.

0693W000006HiLGQA0.jpgThis code is configured to run in the NUCLEO-F446RE board in the STM32CubeIDE

a prompt reply is much appreciated

Thanks

2 REPLIES 2
ramkumarkoppu
Associate III

Hi @PPoob.1​ : If you download and attach downloaded files to your project, setup include path, then it should work. referenced function arm_depthwise_conv_3x3_s8() is defined in arm_depthwise_conv_3x3_s8.c of CMSIS-NN. You can download latest version 5.7.0 of CMSIS from https://github.com/ARM-software/CMSIS_5

Good luck!

gits007
Associate

@PPoob.1​ did it work for you. I am trying to do the same. I just need to create a small NN using CMSIS-NN. Also, do you have a sample project that can be used in STMCubeIDE? @ramkumarkoppu​ can the sources from CMSIS .pack file also be used or need to use the github downloaded code?