2019-05-27 11:43 PM
Hi I need some help,
I am having the same problem using CubeIDE v1.0. I have copied the arm_math.h, const_structs.h and arm_common_tables.h into Drivers/CMSIS/DSP/Include.
I was not able to find arm_math.h until I went to Project > Properties > C/C++ General > Paths and Symbols > Includes and added in Drivers/CMSIS/DSP/Include. That fixed the problem of not finding arm_math.h
After which I get a whole bunch of errors:
__uint32_t
../Drivers/CMSIS/DSP/Include/arm_math.h:6612:3: error: unknown type name 'uint32_t'; did you mean '__uint32_t'?
uint32_t blockSize);
...
...
../Drivers/CMSIS/DSP/Include/arm_math.h:6873:16: error: unknown type name '__STATIC_INLINE'
CMSIS_INLINE __STATIC_INLINE q15_t arm_bilinear_interp_q15(
^~~~~~~~~~~~~~~
../Drivers/CMSIS/DSP/Include/arm_math.h:6873:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'arm_bilinear_interp_q15'
CMSIS_INLINE __STATIC_INLINE q15_t arm_bilinear_interp_q15(
^~~~~~~~~~~~~~~~~~~~~~~
../Drivers/CMSIS/DSP/Include/arm_math.h:6951:16: error: unknown type name '__STATIC_INLINE'
CMSIS_INLINE __STATIC_INLINE q7_t arm_bilinear_interp_q7(
^~~~~~~~~~~~~~~
Thanks!
2019-07-22 06:46 PM
Are these the only functions you use? Maybe we do need to include the source. I haven't tried out these functions. Yea. At least you have something that works. :)
2019-07-31 11:59 PM
Just installed STM32CubeIDE v1.0.2. Why arm_common_tables.h, arm_const_structs.h and arm_math.h are not copied to project directory automatically?
Never experienced this problem before, but some people had: https://community.st.com/s/question/0D50X0000Amkvg6SQA/how-to-get-stm32cubemx-to-include-dsp-header-files
2019-08-06 01:48 AM
I wonder why as well..... they just aren't.
2019-08-06 07:43 AM
@Georgy Moshkin I experienced the same issue. one of the reasons why we can not easily use arm_math.h easily. Alternatively you can install CubeMX and the files will be available there. Hope this helped.
2019-09-13 07:33 AM
i want to use dsp lib. i include "arm_math.h" , i m using cortex m0 and first of main.c i define ARM_MATH_CM0 then i compile with no errors. but after that i want to use FFt function // arm_rfft_init_q15(&Real_FFT_Instance, 128, 0, 1) ; // errors happening.
undefined reference to " arm_rfft_init_q15" .
pls help us how to use dsp lib.
2019-09-13 08:38 AM
Errors at the linker or compiler level?
Perhaps review the availability of functions for the CM0, and if you need to pull library code into the project to get closure for the linker.
2019-10-14 04:48 AM
Hey,
is there any progress in the topic? Is ST working on that problem?
Sincerely yours Florian
2019-10-14 06:21 PM
Last time I've checked it did not performed automatically in CubeIDE. Libraries may be added manually using steps described in "2019/8/21 – Using FFT, FIR and other CMSIS DSP library math functions on STM32F4". "Undefined reference" errors are possible when arm_cortexM4lf_math is not added under Project → Properties → C++ general → Paths and Symbols → "Libraries" / “Library Paths�?. Clean install of CubeMX adds libraries to the project automatically, but this functionality somehow is broken after integration of CubeMX into TrueStudio (CubeIDE). I think this problem is not yet fixed because it does not cause problems when opening existing DSP library projects, and only when generating new ones.
2019-10-14 08:41 PM
there is an ugly solution as we discussed above but as far as I know it is not resolved.
2019-11-25 05:05 PM
I've fount this tutorial pretty useful. Just include the "Include" folder in DSP.