I am trying to get the BHI160 to start. However, after uploading the RAM patch successfully the BHI160 generates an error meta event and stops working. More precisely, I can read the following sequence of bytes from the FIFO: "0xFD, 0x00, 0x00, 0xFC, 0x8F, 0x04, 0xFE, 0x04,
0x22, 0x15". According to the datasheet (Table 29), "0xFD, 0x00, 0x00" and "0xFC, 0x8F, 0x04" are timestamp events and "0xFE, 0x04,
0x22, 0x15" is a meta event signaling an error.
My question is, how to interpret the two payload bytes of this event? The datasheet states, that byte 1 contains the "Error Register" and byte 2 the "Debug State", but I cannot find any documentation on either of them.
in my case it turned out to be a hardware related problem. After I replaced the chip with a new one, my software worked just fine and the error was gone. It is unfortunate that BST does not provide documentation on these error code as this could have saved a lot of time.
Data sheet and shuttle board provided reference hardware design, https://www.bosch-sensortec.com/media/boschsensortec/downloads/shuttle_board_flyer/application_board...
If you use a mag sensor, the firmware is different. If you use a mag sensor, the firmware is different.