Skip to main content
ALomb
Senior
July 15, 2020
Question

Problem with IHM03A1_ExampleFor1Motor

  • July 15, 2020
  • 1 reply
  • 622 views

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?

    This topic has been closed for replies.

    1 reply

    ALomb
    ALombAuthor
    Senior
    July 15, 2020

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