I am able to consistently send configuration data to the chip and read out what I’ve written.
However...
The manual says “The serial interface is very flexible. It works with CPOL = 0 , CPHA = 1 or CPOL = 1, CPHA = 0.”
I had to set CPOL = 1 and CPHA = 1 in order to get this to work.
Without doing this, it seemed as though I was always missing a bit from either the front or the end of the frame depending on which combination I tried. After seeing that, I changed the CS delays before and after the clock pulses to be very conservative (10us), but that didn’t make a difference.
I've also tried varying SPI clock speeds with no help.
Please help me figure out what's going on here.