2020-07-15 02:51 AM
Problem with IHM03A1_ExampleFor1Motor
Using STSW-SPIN002 I configured the parameters for my motor (both in voltage and current mode configurations).
I have checked the correct movements of my motor.
I then exported the header file powerstep01_target_config.h.
I then imported the IHM03A1_ExampleFor1Motor project form SPN3_V1.6.0 into STM32CubeIDE, replaced the powerstep01_target_config.h file with the one generated for my motor and compiled without problems (I have a STM32F401RE-NUCLEO board).
What I see is that only the first movement BSP_MotorControl_Move(0, FORWARD, 16000) is performed !
Using debug I see that the execution remains blocked in the BSP_MotorControl_WaitWhileActive (0);
What could be the problem?
2020-07-15 07:30 AM
I think I found the problem!
The ADC Under-voltage alarm was enabled. In the X-NUCLEO-IHM03A1 the Powerstep01 ADCIN pin is floating (R28, R27 and CS are not populated).