SPI reading accelerometer


I am working on a project for using the ADXL375 accelerometer. For my setup, I am using Mbed Studio, alternatively sometimes I also use the Mbed Online Compiler. For the board, I am using a Nucleo-L496ZG-P. I found a library for ADXL345 in Mbed Studio and the commands are almost similar to the ADXL375 thru SPI. So, I used the library but when I try to get the device ID in SPI, I always get a different value when I press the reset button. What do you think causes this problem. I was expecting a constact devID value of the device. Hope someone can shed some light on this.

Thanks in advance.