Skip to main content
Associate III
June 3, 2024
Solved

DSP include files errors

  • June 3, 2024
  • 3 replies
  • 2541 views

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

Best answer by KDJEM.1

 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

3 replies

Tesla DeLorean
Guru
June 3, 2024

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 VenmoUp vote any posts that you find helpful, it shows what's working..
Andrew Neil
Super User
June 3, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
KDJEM.1
KDJEM.1Best answer
Technical Moderator
June 3, 2024

 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.
carloVAuthor
Associate III
June 4, 2024

Thank you Kaouthar,

I've solved the issue.

 

Luigi