Using CMSIS DSP
Posted: Fri Oct 16, 2020 10:30 am
Hello!
I want to use the CMSIS DSP libraries with my STM32F746.
Therefore, I got CMSIS 5 from git and included it with a custom cmsis.mk:
I include the above file in my main makefile with
The functions are then found in my code, but I get compiler warnings:
I assume that I need to tell CMSIS about the feature set of my processor. What is the best way to do it? Is something like this already defined in ChibiOs?
Thanks in advance!
I want to use the CMSIS DSP libraries with my STM32F746.
Therefore, I got CMSIS 5 from git and included it with a custom cmsis.mk:
Code: Select all
DSP_ROOT := ./../cmsis/CMSIS/DSP
# List of the CMSIS DSP files
CMSISDSPSRC = ${DSP_ROOT}/Source/$(wildcard */*.c)
CMSISDSPINC = ${DSP_ROOT}/Include ${DSP_ROOT}/Include/dsp
# Shared variables
ALLCSRC += $(CMSISDSPSRC)
ALLINC += $(CMSISDSPINC)
I include the above file in my main makefile with
Code: Select all
include ./cmsis.mkThe functions are then found in my code, but I get compiler warnings:
Code: Select all
./../cmsis/CMSIS/DSP/Include/arm_math_types.h:102:5: warning: "__ARM_FEATURE_MVE" is not defined [-Wundef]
#if __ARM_FEATURE_MVEI assume that I need to tell CMSIS about the feature set of my processor. What is the best way to do it? Is something like this already defined in ChibiOs?
Thanks in advance!