How to initialise a LSM6DSRX sensor ?
Hello,
I am trying to implement a simple program on my STM32 NUCLEO F302R8, that reads data from a LSM6DSRX iNemo module (STEVAL MKI195V1) throught a NUCLEO-IKS01A2 extension board, and stores it in flash memory.
I am unable to find any kind of documentation, or code example for sensor reading using the lsd6dsrx library ('lsd6dsrx.h' file). For the time being I am using this structure but it lends me to an "Hard fault interrupt" that I don't know how to resolve.
If you could provide me an example of code using this captor it would be great.
For the record, I am currently initializing my captor this way :
/*USER CODE BEGIN 2*/
LSM6DSRX_Object_t gyro ;
if ( LSM6DSRX_Init(&gyro) == LSM6DSRX_OK){
LSM6DSRX_GYRO_Enable(&gyro);
}
Thank you in advance.
