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

SPI example code for nRF51822 Eval Kit

Hi, I tried uploading the example code from \nrf6310\spi_master_example to nRF51822 evaluation kit board, but no matter what I do, I always get SPI error. Not compile or upload code error, but the actual SPI error.

I've set the ERROR_PIN_SPI0 to LED0 and ERROR_PIN_SPI0 to LED1, and both LED turns on when I run the code, which leads me to believe that the code is successfully compiled and uploaded, but the SPI is not working.

I've already changed the pin numbers on the spi_master_config.h for SS, MISO, MOSI and CLK to match the pins that connect to my SPI device (in my case, it's ADXL362 accelerometer, made by Analog Devices)

Also, I find it strange that there isn't any code for PCA10001 board regarding SPI. This makes me wonder if the code in \nrf6310\spi_master_example is actually usable or not for eval kit.

Parents Reply Children
No Data
Related