Hello,
I observed a weird behavior when I changed to nRF52840-DK from nRF52840 Dongle. I am using the device as an SPI slave connected to a Raspberry PI as SPI master.
The following pins are used:
SCK: P1.10
MISO: P1.13
MOSI: P1.15
CS: P0.2
When I started to use the DK with the USB debugger with my laptop the some of the packages sent via SPI was missing one bit from the front (instead of 255 the value 127 was received), however in the debugger the correct value was present. The SPI speed is set to 4MHz, but I tried it with 400KHz too and the same issue was present. SPI mode is 0 on both sides (as defined in NRFX_SPIS_DEFAULT_CONFIG). The same exact software is tested with the nRF52840 Dongle and this issue is not present in that case.
My question is that, are any of these pins used for something different on the DK because of which I have this problem? Should I consider different pin configuration for SPI communication?
Thank you in advance for your support!
Best regards,
Bertalan