在STM32CubeIDE(STM32F4)中使用DSP库(例如arm_math.h)时遇到的问题。使用CubeIDE v1.0时遇到了相同的问题。我已将arm_math.h、const_structs.h和arm_common_tables.h复制到Drivers/CMSIS/DSP/Include目录中。
在通过以下操作之前,我一直无法找到arm_math.h:进入Project > Properties > C/C++ General > Paths and Symbols > Includes,并添加Drivers/CMSIS/DSP/Include路径。这解决了找不到arm_math.h的问题。
但在此之后,遇到了一系列错误:
__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(
|
|