2024-06-03 07:03 AM
I'm trying to implement the DSP functions, FFT...but including the "DSP include files" I get several errors:
May you help me ?
Thank you, Luigi
Solved! Go to Solution.
2024-06-03 09:30 AM
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.
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.
2024-06-03 09:06 AM
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.
2024-06-03 09:24 AM
2024-06-03 09:30 AM
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.
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.
2024-06-04 12:15 AM
Thank you Kaouthar,
I've solved the issue.
Luigi