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?
There were example code in github, could you refer it and check your SW code?
I already use those examples.
I'm sure my code is correct because it works fine on the shuttle board.
However, I wanted to know if there is a way to debug the issue from the error codes logged.
For your HW board, could you give out your BHI160B schematic for check?