I'm using the 0.9.2 SDK SPI slave example to connect to a SPI master (Atmel SAM4S). When I initiate a SPI transfer from the master side I can see that all the data arrives correctly on the nrf52 side (ABCDEFGHIJKLMNOP) every time. However, on the master side I get only ORC (0x55) characters. Now I did some experimenting and if I request less data than the buffer I do get some of the data on the master side but it looks to be offset by the amount minus one. Eg.
Sending(amount) - Received data(on master):
1 Byte - a
2 Bytes - bc
5 Bytes - efghi
Due to the fact that I see data on both sides I do not assume the SPI connection is faulty. Otherwise I would just see garbage. This is way to systematic of an issue. Anybody have an idea what could go wrong here?