X-CUBE-SPN3 Demo Hanging on Wait Function
I'm attempting to run the X-CUBE-SPN3 demo for a single motor on the NUCLEO-F030R8 with the X-NUCLEO-IHM03A1 stepper motor driver. Importing the project into STM32CubeIDE went fine. I updated some of the parameters within the powerstep01_Init_u struct to match the stepper motor I'm using (Nema 17 Stepper Motor - 17LS13-0404E-100H), mainly the torque values.
When I build and run the project, the demo starts off fine, but then pauses for multiple minutes before continuing with the next motor command. When I took a look through the debugger, I found that the BSP_MotorControl_WaitWhileActive() function was hanging. Specifically, the nested function Powerstep01_IsDeviceBusy() defined in powerstep01.c always returns true. Has anyone had this experience and been able to fix it? I'm a bit lost on where to go from here.
