cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with IHM03A1_ExampleFor1Motor

ALomb
Senior

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?

1 REPLY 1
ALomb
Senior

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).