Skip to main content
ControlFreak
Associate III
August 8, 2019
Solved

How to include DSP library in to your project?

  • August 8, 2019
  • 1 reply
  • 1121 views

Environment: SW4STM32 System Workbench

MCU: STM32L432KCU

Driver: HAL Library

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

This topic has been closed for replies.
Best answer by ControlFreak

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!

1 reply

ControlFreak
ControlFreakAuthorBest answer
Associate III
August 8, 2019

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!

Tesla DeLorean
Guru
August 9, 2019