cancel
Showing results for 
Search instead for 
Did you mean: 

Iam using stm32F4 discovery board to find FFT. But when i use the arm CMSIS library i am getting errors like this

Vk.2
Associate II

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(160): error: #65: expected a ";"

   int32_t   lo = (int32_t) ((in << 32) >> 32);

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(162): error: #20: identifier "n1" is undefined

   n1 = __CLZ(hi) - 32;

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(162): error: #20: identifier "hi" is undefined

   n1 = __CLZ(hi) - 32;

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(168): error: #20: identifier "lo" is undefined

     n1 = __CLZ(lo);

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(204): error: #20: identifier "lo" is undefined

     *normalized = (((uint32_t) lo) >> n1) | (hi << (32 - n1));

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(212): warning: #174-D: expression has no effect

   int32_t  normalized;

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(212): error: #65: expected a ";"

   int32_t  normalized;

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(213): warning: #174-D: expression has no effect

   int32_t  norm;

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(213): error: #65: expected a ";"

   int32_t  norm;

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(220): error: #20: identifier "normalized" is undefined

   arm_norm_64_to_32u(absNum, &normalized, &norm);

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/utils.h(220): error: #20: identifier "norm" is undefined

   arm_norm_64_to_32u(absNum, &normalized, &norm);

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/matrix_functions.h(548): error: #757: function "int32_t" is not a type name

     int32_t shift,

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/matrix_functions.h(563): error: #757: function "int32_t" is not a type name

     int32_t shift,

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/controller_functions.h(209): error: #757: function "int32_t" is not a type name

     int32_t resetStateFlag);

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/controller_functions.h(227): error: #757: function "int32_t" is not a type name

     int32_t resetStateFlag);

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/controller_functions.h(246): error: #757: function "int32_t" is not a type name

     int32_t resetStateFlag);

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/distance_functions.h(179): error: #757: function "int32_t" is not a type name

 float32_t arm_minkowski_distance_f32(const float32_t *pA,const float32_t *pB, int32_t order, uint32_t blockSize);

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/svm_functions.h(65): error: #757: function "int32_t" is not a type name

 __STATIC_INLINE float32_t arm_exponent_f32(float32_t x, int32_t nb)

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/svm_functions.h(91): error: #757: function "int32_t" is not a type name

  const int32_t  *classes;        /**< The two SVM classes */

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/svm_functions.h(105): error: #757: function "int32_t" is not a type name

  const int32_t  *classes;        /**< The two SVM classes */

D:\installed\kielpacks\ARM\CMSIS\5.8.0\CMSIS\DSP\Include\dsp/svm_functions.h(106): error: #757: function "int32_t" is not a type name

I have included the path but still iam getting this error

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hello @Vk.2​ ,

To integrate DSP libraries in your project, please follow this FAQ: Configuring DSP libraries on STM32CubeIDE.

Check also the defines and the include libraries.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

1 REPLY 1
Imen.D
ST Employee

Hello @Vk.2​ ,

To integrate DSP libraries in your project, please follow this FAQ: Configuring DSP libraries on STM32CubeIDE.

Check also the defines and the include libraries.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen