2024-07-23 08:13 AM
Hello,
I have an STEVAL-ESC001V1 board and I want to drive a motor in "6-Steps" mode. I have generated a project using MCSDK 6.3.0 version. When I download the code to the board, it is connected to Motor Pilot. But when I send the "Start" commands, nothing happen and the connection to the board is lost. When I debug the code, I saw that after receiving the "Start" command, the code go to the "Default_Handler" and remains inside infinite loop. By tracing the source of Default_Handler, I found that it is "ADC4_IRQHandler" that is not handled inside the code. The ADC4 is used for reading phase BEMF and the interrupt is set for analog watchdog. When I disable this interrupt, the motor start to rotate for a few seconds and then the "Start Up Failure" is happened. How can I solve this problem?
Thanks in advance,