last day (15 days later) » 

15:22
0
A: Instantiate a pointer, SPI controlled stepper motors

Andrey AkhmetovYou don't need to make any changes, as long as you have no more than four boards. number_of_boards is incremented each time you construct an XNucleoIHM02A1 instance, to keep track of the number of instances (presumably there's an underlying implementation detail that limits the number of boards y...

After I unsoldered SB23 and soldered SB7, that is what I first did: nothing. It does not work.
@AdamUraynar I don't understand your logic behind soldering SB7 and choosing pin A7; the table indicates that with SB7 closed, pin D2 is wired to that board's #CS pin. Have you attempted to use any test equipment such as logic analyzers or oscilloscopes to perform debugging to verify whether the lines you think ought to be asserted, actually are asserted?
On GitHub is the correct version that I am using (with D2 and not A7). But are you saying that nothing needs to be changed--XNucleoIHM02A1 *x_nucleo_ihm02a1two;--and the rest should not be added? Because I've done it both ways.
@AdamUraynar I can really only speculate further because I don't have your hardware in front of me. Is the microcontroller asserting the chip select lines you expect it to be asserting?
No signal results from pin D2 (PA10). That includes instantiating a pointer and leaving it as it was working before (just the first two motors). It's hard to believe nothing needs to be changed specifically because D2 (PA10) was physically changed.
15:22
@AdamUraynar In XNucleoIHM02A1, lines 86-88 and/or 133-136 clearly show that the pin ought to be driven high, and L6470.h shows that the L6470 library ought to be asserting #CS. Is it being driven high, or does it continue to be weakly pulled up or float?
It's driven high.
@AdamUraynar You might be improperly mixing SPI multiplexing using /CS vs daisy-chaining. The one thing I see that could be an issue is L6470.cc/.h having a single static number_of_devices. Can you reset this to zero after initializing the first XNucleoIHM02A1?
I don't know what you mean by setting it back to zero: github.com/stm32duino/X-NUCLEO-IHM02A1/blob/master/src/…
@AdamUraynar Create a function that allows you to manually set it, and call that function. Based on my ability to guess at your hardware without seeing it, the second board ends up with the wrong daisy-chain indices for its sub-component motor controllers.
I'm not going to realistically be able to respond in a timely manner in chat as I'm checking on Stack Overflow during occasional breaks at work.
From what I understand now, the necessary calls to assert /CS are there and should be made, and without being physically present or having an in-circuit debugger I wouldn't be able to speculate any further on why they may or may not be actually doing anything.
um, I only have a few more hours until I have to hand this off to someone else...
so I think I'll just give up
Thanks for trying to help.
16:17
Understood, apologies that I waasn't able to resolve this given the resources available here

last day (15 days later) »