Thread: FIR Filters
View Single Post
Old 2021-02-13, 09:20   #2
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

5×1,889 Posts
Default

In the CMSIS standard package for Cortex M4 there are many samples of filtering implemented for STM32F4 and L4. You can install the STM32CubeMX package (you will need it anyhow, once you get that "box" we talked about), open any project for any F4 or L4 or F7 or H7 (thingies with DSP inside), assign some pins, turn on some peripherals, and click "generate code". You will get a tree of subfolders in the CMSIS folder, look into DSP subfolder, there are different samples and tutorial for FIR filters in DSPLib_TestSuite\commons (headers and sources), in "DSP\Examples", and in "DSP\Sources". AFAICT, they are different things, different dependencies, I will attach here the one in Examples, just for reference (and because it is by far the shortest) but I didn't dig into it and I don't know what you need and the dependencies to make it working. There are few other folders there with fir-decimate, fir-interpolate, fir-lattice, but those are far larger. No idea what they do. Therefore I searched for files containing the called function, and dropped them in a zip. Interesting, there are two versions of the function, one is optimized for the Neon "gpu". Better you can dig into it by yourself. You can pass me a skype ID by PM, if you need any support to play with CubeMX.
Attached Files
File Type: zip arm_fir_example.zip (49.3 KB, 27 views)

Last fiddled with by LaurV on 2021-02-13 at 09:24
LaurV is offline   Reply With Quote