2017-08-16 12:28 AM
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
Solved! Go to Solution.
2017-08-17 02:11 AM
just add a preprocessor symbol ARM_MATH_CM4 in you project.
2017-08-16 04:56 AM
Hi
sbarkhori3020
,STM32F4 is a Cortex-M4 device.
Check the example provided with
(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.
2017-08-17 02:11 AM
just add a preprocessor symbol ARM_MATH_CM4 in you project.
2017-08-17 04:54 AM
Mr. @
Liu.Zhitai
and Mrs.@st.mcu
thank you for your help and advicest.mcu
I added USE_STM32F407_DISCO,ARM_MATH_CM4 ..now its ok!!
2019-02-25 01:23 AM
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.
2019-02-25 01:27 AM
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.