Driver motor program error when I use hall sensor and encoder at the same time
My platform is:
STM32F407IG ,MotorControl Workbench 5.4.4,IAR EMARM V8,STM32 FW V1.24.1
When I use both the Hall sensor and the encoder, the encoder serves as the Main sensor and the Hall sensor as the Auxiliary sensor.The code it generates has a warning:
Warning[Pa181]: incompatible redefinition of macro "SPD_TIM_M1_IRQHandler" (declared at line 268)
It prompted me to define both the Hall sensor and the encoder timer as SPD_TIM_M1/2_IRQHandler.
And the notes are all hints as AUXILIARY ** TIMER MOTOR.
When I was debugging, the program got stuck after “HAL_NVIC_EnableIRQ(TIM5_IRQn);�?
It loops around here:
Is my engineering configuration not right or cannot be used in this way,If you encounter this problem, please communicate with me.
Thank you so much.

