How to configure X-NUCLEO-IHM01A1 microstepping resolution?

According to X-NUCLEO-IHM01A1 hardware key features, IHM01A1 can be configured up to 1/16 microstepping resolution. Suppose this is done via hardware configuration like other motor drive products. Can someone explain how to do it?

Hi,

Look at this example:
https://os.mbed.com/teams/ST/code/HelloWorld_IHM01A1_mbedOS/
In the main.cpp there is
L6474_init_t init = {
where you can set the step:
L6474_STEP_SEL_1_8, /* Step selection (STEP_SEL field of STEP_MODE register). /
Use value STEP_MODE_1_16, /
1/16 microstep. */

Regards,
Pekka