cancel
Showing results for 
Search instead for 
Did you mean: 

errors while using DSP lib

ghfa0098
Associate
Posted on January 17, 2016 at 17:09

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.


compiling main.c...

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(35): error: #101: ''IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(38): error: #101: ''NonMaskableInt_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(39): error: #101: ''HardFault_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(40): error: #101: ''MemoryManagement_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(41): error: #101: ''BusFault_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(42): error: #101: ''UsageFault_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(43): error: #101: ''SVCall_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(44): error: #101: ''DebugMonitor_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(45): error: #101: ''PendSV_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(46): error: #101: ''SysTick_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(52): error: #101: ''TIM2_IRQn'' has already been declared in the current scope

.\STM32F4xx_StdPeriph_Driver\inc\ARMCM4.h(58): error: #101: ''UART4_IRQn'' has already been declared in the current scope

.\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'')

.\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'')

.\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.....''

main.c(23): warning: #940-D: missing return statement at end of non-void function ''FFT''

Target not created

1 REPLY 1
Posted on January 17, 2016 at 18:58

Likely to depend on the tool chain in question, and command line defines passed into the compiler. Check also include paths and order.

#warning directive: ''Define either ARM_MATH_CM4 OR ARM_MATH_CM3...By Default building on ARM_MATH_CM4.....''

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..