This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

cmsis dsp

Note: This was originally posted on 6th March 2013 at http://forums.arm.com

i am trying to add cmsis dsp library in ngx audio example lpc4330 explorer board. i include arm_math.h it gives error i dont know how to aad cmsis library pleas any one help i shall be thank full to you. Is there some kind of modification require in cmsis dsp library?

i got these error
Rebuild target 'Internal SRAM
assembling startup_LPC43xx.s..
compiling lpc43xx_cgu.c...
compiling lpc43xx_scu.c...
compiling lpc43xx_gpio.c...
compiling lpc43xx_i2c.c...
compiling lpc43xx_i2s.c...
compiling system_LPC43xx.c...
compiling Main.c...
C:\Keil\ARM\CMSIS\Include\arm_math.h(271): warning: #1215-D: #warning directive: "Define either ARM_MATH_CM4 OR ARM_MATH_CM3...By Default building on ARM_MATH_CM4...C:\Keil\ARM\CMSIS\Include\arm_math.h(414): error: #20: identifier "__STATIC_INLINE" is undefined
C:\Keil\ARM\CMSIS\Include\arm_math.h(414): error: #101: "q31_t" has already been declared in the current scope
C:\Keil\ARM\CMSIS\Include\arm_math.h(414): error: #65: expected a ";"
C:\Keil\ARM\CMSIS\Include\arm_math.h(525): warning: #12-D: parsing restarts here after previous syntax error
C:\Keil\ARM\CMSIS\Include\arm_math.h(529): error: #169: expected a declaration
C:\Keil\ARM\CMSIS\Include\arm_math.h(539): warning: #12-D: parsing restarts here after previous syntax error
C:\Keil\ARM\CMSIS\Include\arm_math.h(542): error: #169: expected a declaration
C:\Keil\ARM\CMSIS\Include\arm_math.h(544): error: #169: expected a declaration
C:\Keil\ARM\CMSIS\Include\arm_math.h(576): warning: #12-D: parsing restarts here after previous syntax error
C:\Keil\ARM\CMSIS\Include\arm_math.h(580): error: #169: expected a declaration
C:\Keil\ARM\CMSIS\Include\arm_math.h(589): warning: #12-D: parsing restarts here after previous syntax erro
C:\Keil\ARM\CMSIS\Include\arm_math.h(592): error: #169: expected a declaration
C:\Keil\ARM\CMSIS\Include\arm_math.h(594): error: #169: expected a declaration
C:\Keil\ARM\CMSIS\Include\arm_math.h(1032): warning: #12-D: parsing restarts here after previous syntax erro
C:\Keil\ARM\CMSIS\Include\arm_math.h(1050): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1051): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1074): error: #20: identifier "arm_fir_instance_q7" is undefined
C:\Keil\ARM\CMSIS\Include\arm_math.h(1090): error: #20: identifier "arm_fir_instance_q7" is undefined
C:\Keil\ARM\CMSIS\Include\arm_math.h(1153): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1154): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1167): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1168): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1183): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1184): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1237): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1238): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1317): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1318): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1332): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1333): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1349): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1350): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1415): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1660): error: #757: variable "q31_t" is not a type name
C:\Keil\ARM\CMSIS\Include\arm_math.h(1678): error: #757: variable "q31_t" is not a type name
Parents
  • Note: This was originally posted on 7th March 2013 at http://forums.arm.com


    Hello

    I think you need to add ARM_MATH_CM4 like as shown in CM4.jpg

    There is a lab for this board that has a DSP example you can try out:  www.keil.com/appnotes/docs/apnt_233.asp
    I added the CMSIS-DAP library as shown in DSP_Lib.jpg
    Download the lab and see if you can get the DSP example to work.  Hopefully it will help.

    Bob

    Sir there is already defined core_cm4 when i replace it , compiler gives error define cor_m0 or core_m4
    now what i can do? can i mail you my project file ?

Reply
  • Note: This was originally posted on 7th March 2013 at http://forums.arm.com


    Hello

    I think you need to add ARM_MATH_CM4 like as shown in CM4.jpg

    There is a lab for this board that has a DSP example you can try out:  www.keil.com/appnotes/docs/apnt_233.asp
    I added the CMSIS-DAP library as shown in DSP_Lib.jpg
    Download the lab and see if you can get the DSP example to work.  Hopefully it will help.

    Bob

    Sir there is already defined core_cm4 when i replace it , compiler gives error define cor_m0 or core_m4
    now what i can do? can i mail you my project file ?

Children
No data