Hello. I've followed the data synchronization guide from GitHub and I've used the example as a reference to work with this sensor. I've configured the interrupts as indicated in the example, with the difference that I'm working with the STM32, so I'm not using the COINES library. while (1) { previous_time = sensor_time * BMI08X_SENSORTIME_RESOLUTION; rslt = bmi08a_get_synchronized_data(&bmi08x_accel, &bmi08x_gyro, &bmi08xdev); rslt = bmi08a_get_sensor_time(&bmi08xdev, &sensor_time); elapsed_time = sensor_time * BMI08X_SENSORTIME_RESOLUTION; duration = (elapsed_time - previous_time) * 1000; } The problem I have is that when I run the function to obtain the data from the sensors, the accelerometer is always reading the same data. The gyroscope appears to work correctly. When I read the data separately, I mean without using synchronization, I have no problem reading the data of both sensors. /* Read accel x,y sensor data */ reg_addr = BMI08X_REG_ACCEL_GP_0; rslt = bmi08a_get_regs(reg_addr, &data[0], 4, dev); ... /* Read accel sensor data */ reg_addr = BMI08X_REG_ACCEL_GP_4; rslt = bmi08a_get_regs(reg_addr, &data[4], 2, dev); I've noticed that the bmi08a_get_synchronized_data function reads different registers than the bmi08a_get_data function does. It does the reading of two general purpose registers, so I see first of length 4 and then of length 2. I assume to read x and y first, and then z. The problem here is that I've observed that even though it's performing the SPI reading correctly, it always reads the same values in the data array. /* Read accel sensor data */ rslt = bmi08a_get_regs(BMI08X_REG_ACCEL_X_LSB, data, 6, dev); So, I tried to modify the bmi08a_get_synchronized_data function in order to make the SPI reading in the same register as the bmi08a_get_data function, as shown above. This way, it's reading the accelerometer data correctly. The problem with doing something like this is that I'm not supposed to modify the library, so I don't know if that means there is no longer synchronization in reading the data from both sensors, since it's reading it in a different register. I attach the file with the initialization functions. I've followed the examples, so it shouldn't make any difference how I did it.
... View more