cancel
Showing results for 
Search instead for 
Did you mean: 

Missing files error on CMSIS DSP pack on Cubeide

AlexES
Associate

Hello guys. 
I'm currently trying to use the dsp libraries of the cmsis pack with no success.
My device is a WBA55CG nucleo board and the version of my ide is 1.19. I tried to download the cmsis package manually, by selecting embedded software package maneger and then from local/url and successfully installed the packages. (CMSIS 5.9). I enabled core and selected CMSIS from source and dsp. I enabled dsp and core on mx configuration->middleware and hit generate. I tried to inlcuded the arm_math lib on my program to see if the installation was successful and if cube could build my program..... aaaand all hell broke loose.

../Middlewares/Third_Party/ARM_CMSIS/Source/SVMFunctions/SVMFunctions.c:29:10: fatal error: arm_svm_linear_init_f32.c: No such file or directory
   29 | #include "arm_svm_linear_init_f32.c"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
../Middlewares/Third_Party/ARM_CMSIS/Source/TransformFunctions/TransformFunctions.c:29:10: fatal error: arm_bitreversal.c: No such file or directory
   29 | #include "arm_bitreversal.c"
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/SVMFunctions/subdir.mk:22: Middlewares/Third_Party/ARM_CMSIS/Source/SVMFunctions/SVMFunctions.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/TransformFunctions/subdir.mk:22: Middlewares/Third_Party/ARM_CMSIS/Source/TransformFunctions/TransformFunctions.o] Error 1
../Middlewares/Third_Party/ARM_CMSIS/Source/StatisticsFunctions/StatisticsFunctionsF16.c:29:10: fatal error: arm_max_f16.c: No such file or directory
   29 | #include "arm_max_f16.c"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/StatisticsFunctions/subdir.mk:22: Middlewares/Third_Party/ARM_CMSIS/Source/StatisticsFunctions/StatisticsFunctionsF16.o] Error 1
../Middlewares/Third_Party/ARM_CMSIS/Source/TransformFunctions/TransformFunctionsF16.c:29:10: fatal error: arm_cfft_f16.c: No such file or directory
   29 | #include "arm_cfft_f16.c"
      |          ^~~~~~~~~~~~~~~~
../Middlewares/Third_Party/ARM_CMSIS/Source/SVMFunctions/SVMFunctionsF16.c:29:10: fatal error: arm_svm_linear_init_f16.c: No such file or directory
   29 | #include "arm_svm_linear_init_f16.c"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/SVMFunctions/subdir.mk:22: Middlewares/Third_Party/ARM_CMSIS/Source/SVMFunctions/SVMFunctionsF16.o] Error 1
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/TransformFunctions/subdir.mk:22: Middlewares/Third_Party/ARM_CMSIS/Source/TransformFunctions/TransformFunctionsF16.o] Error 1
../Middlewares/Third_Party/ARM_CMSIS/Source/StatisticsFunctions/StatisticsFunctions.c:29:10: fatal error: arm_entropy_f32.c: No such file or directory
   29 | #include "arm_entropy_f32.c"
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
../Middlewares/Third_Party/ARM_CMSIS/Source/WindowFunctions/WindowFunctions.c:27:10: fatal error: arm_welch_f32.c: No such file or directory
   27 | #include "arm_welch_f32.c"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
../Middlewares/Third_Party/ARM_CMSIS/Source/MatrixFunctions/MatrixFunctionsF16.c:29:10: fatal error: arm_mat_add_f16.c: No such file or directory
   29 | #include "arm_mat_add_f16.c"
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/StatisticsFunctions/subdir.mk:22: Middlewares/Third_Party/ARM_CMSIS/Source/StatisticsFunctions/StatisticsFunctions.o] Error 1
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/WindowFunctions/subdir.mk:19: Middlewares/Third_Party/ARM_CMSIS/Source/WindowFunctions/WindowFunctions.o] Error 1
../Middlewares/Third_Party/ARM_CMSIS/Source/QuaternionMathFunctions/QuaternionMathFunctions.c:27:10: fatal error: arm_quaternion_norm_f32.c: No such file or directory
   27 | #include "arm_quaternion_norm_f32.c"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/MatrixFunctions/subdir.mk:22: Middlewares/Third_Party/ARM_CMSIS/Source/MatrixFunctions/MatrixFunctionsF16.o] Error 1
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/QuaternionMathFunctions/subdir.mk:19: Middlewares/Third_Party/ARM_CMSIS/Source/QuaternionMathFunctions/QuaternionMathFunctions.o] Error 1
../Middlewares/Third_Party/ARM_CMSIS/Source/MatrixFunctions/MatrixFunctions.c:29:10: fatal error: arm_mat_add_f32.c: No such file or directory
   29 | #include "arm_mat_add_f32.c"
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/Third_Party/ARM_CMSIS/Source/MatrixFunctions/subdir.mk:22: Middlewares/Third_Party/ARM_CMSIS/Source/MatrixFunctions/MatrixFunctions.o] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

 The files are succesfully generated but there seems to be a linker error? 
Any advice would be welcomed

3 REPLIES 3
Andrew Neil
Super User

@AlexES wrote:

there seems to be a linker error? 


No, those are Compiler errors - not Linker errors.

The Compiler is telling you that it can't find the #included .c files.

Do the named .c files actually exist in your Project?

If they do, check your Include Paths ...

 

See also: 

https://community.st.com/t5/stm32-mcus-embedded-software/where-are-the-cmsis-dsp-libraries-for-stm32u5a9j/m-p/867696/highlight/true#M71359

 

BTW: better to include the errors as text rather than a screenshot:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/725146/highlight/true#M54

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.

Hey! Thanks for the swift reply. The files do exist and the appropriate include paths also exist.

If the files do exist and the Compiler is not finding them, then the Include Paths can't be (quite) right - the whole point of the Include Paths is to allow the Compiler to find files included via #include ...

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.