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

SPI Master

I have been trying to implement a SPI Master on the nRF51822 Eval board in order to read data from an Analog Devices ADXL345 3-axis Accelerometer. I chose to start with the project spi_master_example, which is targeted at the nRF6310 board. All I did was to swap over the pin allocations (in example_config.h) for SPIM1_MOSI and SPIM1_MISO so that I could use 2 jumpers on header P5 to connect SPIM1_MOSI to SPIM0_MISO and SPIM1_MISO to SPIM0_MOSI. I also changed any references in the project options from NRF6310 to NRF10001. It compiles, loads and runs, but the LED shows an error with and without the jumpers installed. Please can anyone help.

Related