X-CUBE-SPN1 problem with L6474: delayed step motor action after speed change
I'm using L6474h with X-CUBE-SPN1 Version 1.10.0. I think there is a bug with the X-CUBE-SPN1 library.
Step motor movement is delayed for a few seconds if the speed is adjusted more than two times (x2) of the previous speed. There is no problem if the speed changes less than or equal to two times.
I think the problem is with the states at backside in the library. You can try any stepping configuration. Problem is always same.
BSP_MotorControl_SetMaxSpeed(0,400);
BSP_MotorControl_SetMinSpeed(0,200);
BSP_MotorControl_Move(0,FORWARD,200);
BSP_MotorControl_WaitWhileActive(0);
// Speed is increased more than 2x times then
// The following movement starts after 1-2 seconds.
// Below; write 800 instead of 1000, and 400 instead of 500, then there is no delay.
BSP_MotorControl_SetMaxSpeed(0,1000); // If this is 800(less than x2 times of previos speed then works fine
BSP_MotorControl_SetMinSpeed(0,500); // If this is 400(less than x2 times of previous speed then works fine
BSP_MotorControl_Move(0,FORWARD,200);
BSP_MotorControl_WaitWhileActive(0);NOTE: This question and answer originated from a customer support case which was handled by us. We regularly review support cases and add any helpful ones here for all to benefit from.
