问题1:
报错
…\Libraries\CMSIS\Include\arm_math.h(299): error: #35: #error directive: "Define according the used Cortex core ARM_MATH_CM7, ARM_MATH_CM4, ARM_MATH_CM3, ARM_MATH_CM0PLUS or ARM_MATH_CM0"
问题1解决:
问题2:
在添加并连接成功arm_math.h后,报错
…\Output\project.axf: Error: L6218E: Undefined symbol arm_fir_f32 (referred from filter.o).
…\Output\project.axf: Error: L6218E: Undefined symbol arm_fir_init_f32 (referred from filter.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
在arm_math.h找到两个函数的申明,但没有找到定义。
问题2分析:
找不到函数arm_fir_f32和arm_fir_init_f32的定义c函数。
由于工程是移植野火的:
问题2解决:
从官方版本里找到函数对应的c文件,并添加进工程里。