i3g4250d - Getting same XYZAngRate value on every read
Hi,
I have a i3g4250d sensor chip on our custom board with STM32G474 MCU.
I have used the below driver
github.com STMicroelectronics stm32-i3g4250d
for reading the sensor chip registers through SPI interface
I am able to read "WHO_AM_I_ADDR" register without any issue that confirms my SPI interface is fine and communicating with sensor chip
but
when I read XYZ values I always get the same value irrespective of sensor position.
My sensor init configurations are
CTRL_REG1 = 0x3F
CTRL_REG4 = 0x10
When I read the STATUS_REG, the first read shows 0xFF and consecutive reads always shows 0x00
What could be the problem.
PS: I have a Accelero meter sensor chip lsm303agr on the same board configured with I2C interface which is working properly.
Thank You
Prabhu M K
