2023-11-05 10:01 PM
I am using two ihmo2a1 expansion boards with STM32-Nucleo-F401RE to control 4 stepper motors. When I stack one expansion board on another. The signal given to the first board is transmitted to the second board. I removed comments to define the second expansion board in "xnucleoihm02a1.h" file but it did not work out. What changes have to be made to use more than one expansion board? I would be grateful if you could help me out.
Solved! Go to Solution.
2023-11-07 07:45 AM
Hello @PavanKaruchola,
Indeed, the pin configuration for each expansion board should be defined separately. You can refer to the user manual for more details about the hardware setup. You should check solder bridges mounted SB23 (OP0) and SB7 (OP1) and respectively R23, R25 should be ON accordingly.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-11-06 06:50 AM
Hello @PavanKaruchola
Which X Cube example are you using? Generally, you need to check the specifications of L6470 and align it with the configuration using the driver you have already shared.
I hope this help you get an idea how to customize this firmware package.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-11-06 08:10 PM
Thank you for your response. I am using X-CUDE-SPN2 and STM32Cube IDE for programming. I have checked L6470.c and L6470.h there are only functions and classes defined for driver control. The above mentioned file consists of expansion board definitions. I defined two expansion boards by removing comments, even when I tried to run by one expansion board by defining a second expansion board it didn't work. I think the pin configuration for each expansion board should be defined properly. I tried to find the GPIO pin configuration in this case they are mentioned as OP1, and OP2 like. I hope my description of the problem is clear. Hoping for a reply.
2023-11-07 07:45 AM
Hello @PavanKaruchola,
Indeed, the pin configuration for each expansion board should be defined separately. You can refer to the user manual for more details about the hardware setup. You should check solder bridges mounted SB23 (OP0) and SB7 (OP1) and respectively R23, R25 should be ON accordingly.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-11-15 08:26 PM
Do you mean, I have to remove the solder bridge from SB23 and place it on SB7 to use two expansion boards?
2023-11-17 03:31 AM
I got it. Thanks for the guidance.