This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 Preview DK -> SPI Master MISO Problem

I want to connect a ST Chip (LSM6DSL - Datasheet) via SPI with the nRF52840 Preview DK (SDK13) - NRF_DRV_SPI_MODE_0

When I am using the SPI Master example with different pins:

#define SPI_MISO_PIN NRF_GPIO_PIN_MAP(0, 26)
#define SPI_MOSI_PIN NRF_GPIO_PIN_MAP(1, 8) 
#define SPI_SCK_PIN NRF_GPIO_PIN_MAP(0, 27)
#define SPI_SS_PIN NRF_GPIO_PIN_MAP(1, 7)

I am not able to read valid values from the ST chip.

When I change the MISO pin to another pin

#define SPI_MISO_PIN NRF_GPIO_PIN_MAP(0, 4)

I can read valid values from the ST chip.

Does anyone have an idea why there is a diffrent behaviour on diffrent pins of the DK??

Related