2018-11-14 05:10 AM
The register CTRL_REG1_A is set with 0x57 and CTRL_REG4_A with 0x80.
All output Accelerometer registers give the same value 0xC0.
What is missing for correct accelerometer measurements?
2018-11-14 05:34 AM
You can use the platform independent drivers available in GitHub:
https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lsm303agr_STdC
There is also example for basic sensor setup and data reading.
For more details please read application note AN4825: