cancel
Showing results for 
Search instead for 
Did you mean: 

IHM02A1 stepper motor driver with red led (FLAG signal) always ON

GFran.1
Associate II

Hi,

I've connected a IHM02A1 expansion to drive two stepper motor on a Nucleo-F302R8. I've followed the user manual UM1964 to setting up the example both in the standalone version and in the UART version. I can't achieve to have the motors move and I have all the time the red led on the IHM02A1 (connected to the L6470 FLAG signal) . I've check in the community and I've seen that somebody else has faced the same problem but I'm not able to find the way to solution it.

What could I try to do to check where is the problem?

Thanks in advance for any suggestion

3 REPLIES 3
GFran.1
Associate II

SOLVED

I add some information. Hope it helps!

The problem was in the SPI pins and I want add something that could be helpful for who has a problem like this.

There is a problem in the X-NUCLEO-IHM02A1 documentation:

In the documentation (UM1964-User manual-DocID028481-Rev 1- pag. 15/24):

SB10 >> PB15 as L6470_1_SDI

SB26 >> PA7 as L6470_1_SDI

SB32 >> PA6 as L6470_0_SD0

SB11 >> PB14 as L6470_0_SD0

SB34 >> PB3 as L64701_SCK/L64702_SCK

SB12 >> PA5 as L64701_SCK/L64702_SCK

SB13 >> PB13 as L64701_SCK/L64702_SCK

The real connection is:

SB10 >> PA7 as L6470_1_SDI

SB26 >> PB15 as L6470_1_SDI

SB32 >> PB14 as L6470_0_SD0

SB11 >> PA6 as L6470_0_SD0

SB34 >> PB3 as L64701_SCK/L64702_SCK

SB12 >> PB13 as L64701_SCK/L64702_SCK

SB13 >> PA5 as L64701_SCK/L64702_SCK

The example X-CUBE-SPN2 set SPI2 at this pins:

/**SPI2 GPIO Configuration

PB13 ------> SPI2_SCK

PB14 ------> SPI2_MISO

PB15 ------> SPI2_MOSI

So I finally use SB26, SB32, SB12 and everything works.

Francesco

Cristiana SCARAMEL
ST Employee

How did you configure the device​?

A wrong setup of the configuration parameters of the voltage mode driving could cause several issues.

For more details could you refer to AN4144: Voltage mode control operation and parameter optimization

Moreover, what sequence of commands did you use to move the motors?

Ffor more details, refer to the L6470 application Note: L6470 Resources

If you feel a post has answered your question, please click "Accept as Solution"
GFran.1
Associate II

Hi @Cristiana SCARAMEL​ , thanks for your reply. I'll read with attention the AN suggested about the voltage mode driving.

About the original issue I solved the problem reviewing the SPI pins.

I would like signal you the schematic error in the X-NUCLEO-IHM02A1 documentation (UM1964-User manual-DocID028481-Rev 1- pag. 15/24 https://www.st.com/resource/en/user_manual/dm00237629-getting-started-with-xnucleoihm02a1-twoaxis-stepper-motor-driver-expansion-board-based-on-l6470-for-stm32-nucleo-stmicroelectronics.pdf) about the SPI pins (details int the first reply at this post).

Many thanks for your interest and your kind reply.

Francesco