cancel
Showing results for 
Search instead for 
Did you mean: 

How to include DSP library in to your project?

ControlFreak
Associate III

Environment: SW4STM32 System Workbench

MCU: STM32L432KCU

Driver: HAL Library

I am getting #error:define according to use ARM cortex.......................

1 ACCEPTED SOLUTION

Accepted Solutions
ControlFreak
Associate III

SOLVED IT

Just for FYI: I intended to used PID library for temperature control, so I added (#include "arm_math.h") and then built my project.

and then I got above mentioned error

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

Solution: Steps applicable only to SW4STM32

1)Right on project and go to properties

2) Click "C/C++ General", go to path and symbols

3)go to "symbols" tab and click "ADD"

4) Type "ARM_MATH_CM4" and click "apply" and click "OK"

5) Rebuilt the project

No more error!

View solution in original post

2 REPLIES 2
ControlFreak
Associate III

SOLVED IT

Just for FYI: I intended to used PID library for temperature control, so I added (#include "arm_math.h") and then built my project.

and then I got above mentioned error

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

Solution: Steps applicable only to SW4STM32

1)Right on project and go to properties

2) Click "C/C++ General", go to path and symbols

3)go to "symbols" tab and click "ADD"

4) Type "ARM_MATH_CM4" and click "apply" and click "OK"

5) Rebuilt the project

No more error!