Hi,
I tried interfacing LIS3Dh using SPI, I used the SPI example to start with, when I didn't get the desired result, I look numerous question on the forum and tried to modify the code but it does not seem to be working.
I am simply trying to read WHO_AM_I register/or any other register, I am getting FF always,
the sensor is embedded on PCB with following configurations:
Configurations:
LIS3DH | nrf 51822 pin | sdk_config.h |
SCK | 9 | SPI_SCK_PIN 9 |
SDI | 10 | SPI_MOSI_PIN 10 |
CS | 12 | SPI_SS_PIN 12 |
SDO | 7 | SPI_MISO_PIN 11 |
Below code is trying to read who_am_i ( 0x0F)
log output ( in every case I am getting FF value in rx_buff )
SDK Used: 12.2
using JLink to transfer the via SWO
I have tried with different modes and frequencies also but no luck.
Please help.