Hi William,
I have changed the code as you said. And read all status flags to clear them. DRV3201 registers have set to RESET values.
digital IO;
CSMode = 1
RSTN = 1
DRVOFF = 0
B_EN = 1
to run calibrate routine in the watch window,
1. set gGUIObj.EnableFlg=1,
2. set gGUIObj.calibrateEnable=1,
The motor starts rotating . While rotor is rotating ,the power decreases under 20 V and shut down. In debugger I get power loss failure.
Are there any other changes that should be applied in the code ?
I have changed the code as you said. And read all status flags to clear them. DRV3201 registers have set to RESET values.
digital IO;
CSMode = 1
RSTN = 1
DRVOFF = 0
B_EN = 1
to run calibrate routine in the watch window,
1. set gGUIObj.EnableFlg=1,
2. set gGUIObj.calibrateEnable=1,
The motor starts rotating . While rotor is rotating ,the power decreases under 20 V and shut down. In debugger I get power loss failure.
Are there any other changes that should be applied in the code ?