cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Motor Control Example

MYu
Associate II

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

I was using below boards and generated the source code by MX.

But above error doesn't understand me.

Target: STM32F302R8Tx

Extension board: IHM001/002 3 shunt

/* USER CODE BEGIN PD */

#define (ARM_MATH_CM3) 1

#define (_ARM_MATH_H) 1

/* USER CODE END PD */

In order to remove the error, I include in the main. c.

Please let me know right firmware setting or other consideration for debugging.

0 REPLIES 0