Skip to main content
LLily.1
Associate II
March 26, 2020
Question

Is there a Standard DSP library for STM32F030R8 ,which uses a Cortex M0 ? Where can I download it?

  • March 26, 2020
  • 5 replies
  • 1857 views

I transplanted the general FFT algorithm ,but it took a lot of time for the CPU to run .I wonder if I can save time by using a Standard DSP library.

This topic has been closed for replies.

5 replies

Ozone
Principal
March 26, 2020

I never tried a DSP lib specifically for the M0, but I'm sure there is a package for the F0 family.

I got those for F10x, F3 and F4, and all of them contain code for M0 cores.

Check the ST software download section for the F030R8, there should even be a SPL-based package. Otherwise, a Cube based.

LLily.1
LLily.1Author
Associate II
April 20, 2020

Thank you very much.But,there is still something wrong.I downloaded the cube ide, and installed it.

I'm using the ARM CMSIS DSP libraries(libarm_cortexM0l_math.a), one of the functions I'm using is arm_rfft_q15. 

Build error: undefined reference to `arm_bitreversal_16'.The function that it is referring to is an assembly function found in the file arm_bitreversal2.s and I have made sure that file is in the source file.

Any suggestions or help would be very appreciated.

Best Regards.

ST Technical Moderator
March 26, 2020

Hello,

Here is STSW-STM32048 STM32F0xx standard peripherals library and there is no DSP feature for Cortex-M0. You can download and use the DSP library for any of the STM32F3/F4. You should update and add code in your project.

Within STM32CubeF0 firmware package, the files are in STM32Cube_FW_F0_V...\Drivers\CMSIS\DSP. Just ensure that your project has "Include Paths" set up properly in ../CMSIS/DSP/Include.

Best Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
LLily.1
LLily.1Author
Associate II
April 20, 2020

Hi,

In STM32CubeIDE, I downloaded STM32Cube_FW_F0_V1.11.0, but there is something wrong.

I'm using libarm_cortexM0l_math, the file is in STM32Cube_FW_F0_V1.11.0\Drivers\CMSIS\Lib\GCC, one of the functions I'm using is arm_rfft_q15. 

Build error: undefined reference to `arm_bitreversal_16'.The function that it is referring to is an assembly function found in the file arm_bitreversal2.s and I have made sure that file is in the source file.

I have added .h files which are in STM32Cube_FW_F0_V1.11.0\Drivers\CMSIS\DSP\Include and the source files which are in STM32Cube_FW_F0_V1.11.0\Drivers\CMSIS\DSP\Source to my project .

Any suggestions or help would be very appreciated.

Best regards.

Ozone
Principal
April 21, 2020

Which seems a duplicate of you qestion here: https://community.st.com/s/question/0D53W0000055YqzSAE/cmsis-fft-problem-in-stm32cubeide

As said, check the arm_bitreversal2.s source file.

Not doing much in assembly, but GCC, Keil and IAR assembly syntax is not fully compatible.

CubeIDE is supposedly GCC.