04-15-2021 06:04 PM
Hello,
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?
Thanks!
04-19-2021 08:16 AM
Hello ale_monta,
There were example code in github, could you refer it and check your SW code?
https://github.com/BoschSensortec/BHy1_driver_and_MCU_solution/blob/master/examples
04-20-2021 04:29 PM
Hi,
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.
Thanks
05-07-2021 11:22 AM
Hello ale_monta,
For your HW board, could you give out your BHI160B schematic for check?