Hello All,
I have connected nRF52840 with ADXL362 over SPI, and try to read/write data on "Power Control register".
The process I follow,
1. Rest ADXL362.
2. Write data 0x02 in "Power Control register" of ADXL362.
2. Read value of "Power Control register" of ADXL362.
But every time I read data form ADXL362 I got 0x00 value.
Logs are attached.
For testing this I have modify SPI test code located at "nRF5_SDK_15.0.0_a53641a\examples\peripheral\spi"
Code is also attached here, will you please guide me, If I did any wrong in SPI configuration?
I am little bit confuse of "tx_buffer_length" & "rx_buffer_length" value passing in nrf_drv_spi_transfer() function.
Does the values of "tx_buffer_length" & "rx_buffer_length" are correct at line no 101 & 118 in main.c file?
Thanks in advance.