LSM6DSM interface with STM32L476 in Sensortile board
Hello Team,
Recently I bought Sensortile board from ST. I tried to interface the LSM6DSM gyroscope and accelerometer sensor with STM32L476 microcontroller through SPI half duplex master, but I'm not able to read the device ID or 'Who Am I' register address in LSM6DSM. I hope SPI is working fine it seems, but not able to receive the device ID. It is returning constantly 0xFF instead 0x6A. Here I attached the source code of my project, please go through and let me know the solution to interface this module. Because of this problem I've stuck and I don't know how to proceed further, so please let me know the solution as soon as possible.
