I am using the following git repositry and trying to get data from accelerometer using accelerometer_remapping_example.
I have connected the board with raspberry Pi Pico and ported the library as specified in the doc folder of the repositry.
After doing the above step I am successfully able to initialize BHI160 using function
But when i run the below code I don't get any accelerometer data.
Here I am pasting the complete code
You could refer attached example code on STM32. This example code supported poll mode and interrupt mode to get sensor data with macro Definition in the code.