Digital Potentiometer Gets Stuck After a Certain Amount of Time

Hello,

I have an Analog Devices AD5293 digital potentiometer, controlled by SPI (16 of them connected in a huge chain). the 15th slave just gets stuck after some time and doesn't update itself in coordination to my code. This is NOT a faulty digipot because it already happened to us with the other digipot which was related to it, the 16th potentiometer in the chain. We thought it was broken so we replaced it but then the 15th digipot started doing monkey business. My code worked before, and now it suddenly doesn't after virtually no change. What should I do?

I am not posting my code because it is insanely long (1,000 lines) and I don't want to get flagged as spammed (if it's not possible then I will post the code).

Thank you very much!

My code worked before

Post your code or a smaller but complete example that illustrates the problem, along with a schematic of your project. Hand drawn and photographed is perfectly acceptable

after virtually no change.

If it worked before the change then something you changed caused the problem

OmerFlame:
connected in a huge chain...

Facts please.

SPI is fast, so can't go that far, and distance depends on the wiring.
Try dropping SPI speed.
Leo..

Its very hard to debug a circuit that's not been posted. Sounds like layout, decoupling, or fanout
issue, but I can't see the circuit yet...