cancel
Showing results for 
Search instead for 
Did you mean: 

DSP include files errors

carloV
Associate II

I'm trying to implement the DSP functions, FFT...but including the "DSP include files" I get several errors:

 

carloV_0-1717423305363.png

May you help me ?

 

Thank you, Luigi

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

 Hello @carloV  ,

Please try to copy source folder from <STM32Cube_Repository>\STM32Cube_FW_H7_V1.11.2\Drivers\CMSIS\DSP\Source to your project as shown in the below figure.

KDJEM1_0-1717432005081.png

Keep only the folders containing the functions you've used in your project.

After checking the errors in your screenshot, I think you need to keep only "TransformFunctions" and "CommonTables" folders (Please check if you need to keep other source folders).

Open "CommonTables.c" file in CommonTables folder and comment all includes:

#include "arm_common_tables.c" 
#include "arm_const_structs.c"

Open "TransformFunctions.c" file in TransformFunctions folder and comment all includes:

#include "arm_bitreversal.c"
#include "arm_bitreversal2.c"
#include "arm_cfft_f32.c"
#include "arm_cfft_q15.c"
#include "arm_cfft_q31.c"
#include "arm_cfft_radix2_f32.c"
#include "arm_cfft_radix2_init_f32.c"
#include "arm_cfft_radix2_init_q15.c"
#include "arm_cfft_radix2_init_q31.c"
#include "arm_cfft_radix2_q15.c"
#include "arm_cfft_radix2_q31.c"
#include "arm_cfft_radix4_f32.c"
#include "arm_cfft_radix4_init_f32.c"
#include "arm_cfft_radix4_init_q15.c"
#include "arm_cfft_radix4_init_q31.c"
#include "arm_cfft_radix4_q15.c"
#include "arm_cfft_radix4_q31.c"
#include "arm_cfft_radix8_f32.c"
#include "arm_dct4_f32.c"
#include "arm_dct4_init_f32.c"
#include "arm_dct4_init_q15.c"
#include "arm_dct4_init_q31.c"
#include "arm_dct4_q15.c"
#include "arm_dct4_q31.c"
#include "arm_rfft_f32.c"
#include "arm_rfft_fast_f32.c"
#include "arm_rfft_fast_init_f32.c"
#include "arm_rfft_init_f32.c"
#include "arm_rfft_init_q15.c"
#include "arm_rfft_init_q31.c"
#include "arm_rfft_q15.c"
#include "arm_rfft_q31.c"

Please refer to step 4, 5, 6 and 8 under this FAQ: How to integrate CMSIS-DSP libraries on an STM32 p... - STMicroelectronics Community

I hope this help you!

Please let me know if the issue is solved or not?

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4

Linker Errors

Make sure your compiler build options for FPU and register ABI (hard / soft) are consistent with those of the library which you're attempting to bind against.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
KDJEM.1
ST Employee

 Hello @carloV  ,

Please try to copy source folder from <STM32Cube_Repository>\STM32Cube_FW_H7_V1.11.2\Drivers\CMSIS\DSP\Source to your project as shown in the below figure.

KDJEM1_0-1717432005081.png

Keep only the folders containing the functions you've used in your project.

After checking the errors in your screenshot, I think you need to keep only "TransformFunctions" and "CommonTables" folders (Please check if you need to keep other source folders).

Open "CommonTables.c" file in CommonTables folder and comment all includes:

#include "arm_common_tables.c" 
#include "arm_const_structs.c"

Open "TransformFunctions.c" file in TransformFunctions folder and comment all includes:

#include "arm_bitreversal.c"
#include "arm_bitreversal2.c"
#include "arm_cfft_f32.c"
#include "arm_cfft_q15.c"
#include "arm_cfft_q31.c"
#include "arm_cfft_radix2_f32.c"
#include "arm_cfft_radix2_init_f32.c"
#include "arm_cfft_radix2_init_q15.c"
#include "arm_cfft_radix2_init_q31.c"
#include "arm_cfft_radix2_q15.c"
#include "arm_cfft_radix2_q31.c"
#include "arm_cfft_radix4_f32.c"
#include "arm_cfft_radix4_init_f32.c"
#include "arm_cfft_radix4_init_q15.c"
#include "arm_cfft_radix4_init_q31.c"
#include "arm_cfft_radix4_q15.c"
#include "arm_cfft_radix4_q31.c"
#include "arm_cfft_radix8_f32.c"
#include "arm_dct4_f32.c"
#include "arm_dct4_init_f32.c"
#include "arm_dct4_init_q15.c"
#include "arm_dct4_init_q31.c"
#include "arm_dct4_q15.c"
#include "arm_dct4_q31.c"
#include "arm_rfft_f32.c"
#include "arm_rfft_fast_f32.c"
#include "arm_rfft_fast_init_f32.c"
#include "arm_rfft_init_f32.c"
#include "arm_rfft_init_q15.c"
#include "arm_rfft_init_q31.c"
#include "arm_rfft_q15.c"
#include "arm_rfft_q31.c"

Please refer to step 4, 5, 6 and 8 under this FAQ: How to integrate CMSIS-DSP libraries on an STM32 p... - STMicroelectronics Community

I hope this help you!

Please let me know if the issue is solved or not?

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank you Kaouthar,

I've solved the issue.

 

Luigi