Hi,
We have design a custom board that can read single frame from bmi160 without problems,
Now we want to read more imu data, so we modify the bmi160 and mcu setting.
Using WM trigger to triiger bmi160_get_fifo_data() function, but i got an error return 11(Hex).
which is #define BMI160_FOC_FAILURE INT8_C(-11), but the error can't be fix by calling rslt = start_foc(&s_spi_bmi160_sensor);
i read the datasheet and the repo from github:
https://github.com/piMagpie/IoT/blob/2fd729ea7dd2e3afe2a169f9798d4ef98656b70b/last Project/ble_app_uart/main.c
/mems-sensors-forum-jrmujtaw/post/bmi160-fifo-readings-are-not-updating-data-EivJRftdPBHrMlL
/knowledge-base-pg631enp/post/bmi160-fifo-advanced-usage-n7HOuG4Le1uKOSU
and compare the setting with these github repo with my code, still can't figure out why and how to fix it.
here is snip from my code:
https://gist.github.com/ttn115/82ab37c0e0acf89587ca60dbee63d51a
Please help me to fix the problem, thanks.