Skip to main content
Vk.2
Associate
September 14, 2021
Solved

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

  • September 14, 2021
  • 1 reply
  • 1455 views

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

This topic has been closed for replies.
Best answer by Imen.D

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

1 reply

Imen.DBest answer
ST Technical Moderator
September 15, 2021

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks