This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832: How to Include the "arm_math.h" library

Hello,

I'm attempting to include the "arm_math.h" library so that I can use the requisite DSP functions, etc. I'm getting a linker error so I'm not sure what else needs to be done to resolve the symbols. Here is my error:

" undefined reference to `arm_rms_f32' collect2: error: ld returned 1 exit status"

I'm using the nRF52832 (Cortex M4 with FPU) with SDK11.0.0

Any help would be much appreciated!

Parents
  • Hi,

    Steps to include CMSIS-DSP library (arm_math.h library) in your project (Embedded Studio):

    1. Install CMSIS-DSP package: Go to Tools>Package Manager>CMSIS DSP Support Package install (it will automatically install core package as well)  

    2. Once DSP package installed in your system add library in your project folder: Project>Add Existing file>Browse(select \components\toolchain\cmsis\dsp\GCC\libarm_cortexM4lf_math.a).


    3. At last add library path into user include directories:

    4. Add predecessor micro definition ARM_MATH_CM4   

Reply
  • Hi,

    Steps to include CMSIS-DSP library (arm_math.h library) in your project (Embedded Studio):

    1. Install CMSIS-DSP package: Go to Tools>Package Manager>CMSIS DSP Support Package install (it will automatically install core package as well)  

    2. Once DSP package installed in your system add library in your project folder: Project>Add Existing file>Browse(select \components\toolchain\cmsis\dsp\GCC\libarm_cortexM4lf_math.a).


    3. At last add library path into user include directories:

    4. Add predecessor micro definition ARM_MATH_CM4   

Children
No Data
Related