cancel
Showing results for 
Search instead for 
Did you mean: 

need help in dsp library for keil !!

saleh barkhori
Associate II
Posted on August 16, 2017 at 09:28

Hi every one!

I I have a problem when trying to use arm_math.h  and want to use fft function with keil software and stm32f497vgt but   I see this error

    #error 'Define according the used Cortex core ARM_MATH_CM7, ARM_MATH_CM4, ARM_MATH_CM3, ARM_MATH_CM0PLUS or ARM_MATH_CM0'

I included this headers in my main.c!!

#include 'main.h'

#include 'stm32f4xx_hal.h'

#include 'arm_math.h'

#include 'arm_const_structs.h'

#include 'arm_common_tables.h'

#include 'core_cm3.h'

#define ARM_MATH_CM3

#define __FPU_USED 1

what did I miss??thanks  very much

1 ACCEPTED SOLUTION

Accepted Solutions
Zt Liu
Senior III
Posted on August 17, 2017 at 11:11

just add a preprocessor symbol ARM_MATH_CM4 in you project.

0690X00000602RsQAI.bmp

View solution in original post

5 REPLIES 5
Amel NASRI
ST Employee
Posted on August 16, 2017 at 13:56

Hi

sbarkhori3020

‌,

STM32F4 is a Cortex-M4 device.

Check the example provided with

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-software/x-cube-dspdemo.html

(Digital Signal Processing with STM32), you can review the project configuration used there depending on the selected device.

-Amel

PS: There is no device

stm32f497, do you mean STM32F427?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Zt Liu
Senior III
Posted on August 17, 2017 at 11:11

just add a preprocessor symbol ARM_MATH_CM4 in you project.

0690X00000602RsQAI.bmp
saleh barkhori
Associate II
Posted on August 17, 2017 at 13:54

Mr. @

Liu.Zhitai

and Mrs.@

st.mcu

thank you for your help and advice

st.mcu

I added USE_STM32F407_DISCO,ARM_MATH_CM4 ..now its ok!!

AGorb
Associate

i have problem with the same part of code after importing keil project to the CLion.

CLion project includes all sources from "Drivers" folder. This is mistake.

Main difference between workable and non workable project is in the ".mxproject" file.

Hello,

Please avoid re-opening very old questions: you can submit a new question where you describe your problem and make a reference to any other content.

Thanks for your understanding.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.