Zoomed-in
Expected output: 0x0 0x0 0x0 0x58
We see the 0x58 being received on MOSI, but still not aligned with the clock.
The rx_buff received all zeroes.
Please help us resolve this and state a reason for the same.
Have you verified the SPI mode? With the little knowledge that I have regarding SPI clock not aligning might occur if the SPI mode (clock phase and polarity) is not set correctly.