Abstract
stm32 add dsp, add with 2 functions
- add with cubeMx(lib)
- add with MDK(sourceCode)
recommand function is function 2.
Referance
dsp api sheet:
D:/environment/Arm/Packs/ARM/CMSIS/5.8.0/CMSIS/Documentation/DSP/html/index.html
create project whit cubeMx
create base configure then open with keil
add dsp
then you need to remove this item
if you not delete this you will see like this
- too many errors
then add the arm_math.h
to which file you want to add . don't need to add Macro ARM_MATH_CMx
can use is directly. this time reduced about 34% than matlab coder.
// arm 通过输入的参数类型将fft分为2大类[real,complex]分别对应的函数名为:
// arm_rfft_xxxx
// arm_cfft_xxxx
[128];
float32_t output[128];
float32_t input
// 初始化FFT状态
;
arm_rfft_fast_instance_f32 fft_inst(&fft_inst, 128);
arm_rfft_fast_init_f32
// 执行FFT
(&fft_inst, input, output,0); arm_rfft_fast_f32
Other
Wrong method, don’t see below this line
add macro
,ARM_MATH_CM4//H7是CM7,F4是CM4,F1是CM3
use dsp
#include "arm_math.h"
#include "arm_const_structs.h"
build
you need to rebuild not build
if you see like this means you succesfull
there are many warnings, don’t care this this means lack of an empty line