AnsweredAssumed Answered

errors while using DSP lib

Question asked by eini.reza on Jan 17, 2016
Latest reply on Jan 17, 2016 by Clive One
hi everyone I'm going to apply FFT on a signal captured by ADC but I've some errors I've tried to fix them but I couldn't can someone kindly help me with a solution.
It is good to say that the errors are about repetitive line in  "ARMCM4.h" and "stm32f4xx.h" I deleted the repetitive lines but it didn't work. thanks in advance.
01.compiling main.c...
02..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(35): error:  #101: "IRQn" has already been declared in the current scope
03..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(38): error:  #101: "NonMaskableInt_IRQn" has already been declared in the current scope
04..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(39): error:  #101: "HardFault_IRQn" has already been declared in the current scope
05..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(40): error:  #101: "MemoryManagement_IRQn" has already been declared in the current scope
06..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(41): error:  #101: "BusFault_IRQn" has already been declared in the current scope
07..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(42): error:  #101: "UsageFault_IRQn" has already been declared in the current scope
08..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(43): error:  #101: "SVCall_IRQn" has already been declared in the current scope
09..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(44): error:  #101: "DebugMonitor_IRQn" has already been declared in the current scope
10..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(45): error:  #101: "PendSV_IRQn" has already been declared in the current scope
11..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(46): error:  #101: "SysTick_IRQn" has already been declared in the current scope
12..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(52): error:  #101: "TIM2_IRQn" has already been declared in the current scope
13..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(58): error:  #101: "UART4_IRQn" has already been declared in the current scope
14..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(72): error:  #256: invalid redeclaration of type name "IRQn_Type" (declared at line 240 of ".\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx.h")
15..\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(82): warning:  #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 132 of ".\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx.h")
16..\STM32F4xx_StdPeriph_Driver\inc\arm_math.h(281): warning:  #1215-D: #warning directive: "Define either ARM_MATH_CM4 OR ARM_MATH_CM3...By Default building on ARM_MATH_CM4....."
17.main.c(23): warning:  #940-D: missing return statement at end of non-void function "FFT"
18.Target not created

Outcomes