I'm using a BHI160B on my custom PCB, I can detect the sensor with an I2C scan and I can read and write its registers fine. The firmware gets loaded without problems.
However, when I configure the sensor to sample the accelerometer, the configuration works fine but when I start reading the FIFO I get the Meta Event Type 0x4 (Error).
The values of the bhy_data_meta_event_t struct are the following:
meta_event_id = 0xFE
event_number = 0x4
sensor_type = 0x21
event_specific = 0x15
I tried several sensors and they all have the same issue.
I know the code works because when I use it on the BHI160B shuttle board, it works fine, I can read the sensor data without problems.
The firmware I'm using is bosch_pcb_7183_di03_bmi160-7183_di03-2-1-11696_20180502
Can you please advise on what could be the problem?