2026-01-05 6:38 AM - edited 2026-01-05 6:50 AM
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
2026-01-05 6:47 AM
@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:
BTW: better to include the errors as text rather than a screenshot:
2026-01-05 6:53 AM
Hey! Thanks for the swift reply. The files do exist and the appropriate include paths also exist.
2026-01-05 6:56 AM
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 ...