03-11-2020 08:39 PM - edited 03-11-2020 08:42 PM
Can anyone provide some reference firmware/drivers showing usage of the BHI160 device with using the default internal functionality? The following wasn't sufficient:
if ( bhy_initialize_support() == BHY_SUCCESS )
{
LOG("IMU Successfully initialized\n");
}
else
{
LOG("IMU init errors\n");
return;
};
uint8_t chip_control = 0x01; // CPU_RUN_REQUEST
bhy_write_reg(BHY_I2C_REG_CHIP_CONTROL_ADDR, &chip_control, 1);
Solved! Go to Solution.
03-12-2020 12:01 AM
Update: We forgot pull-ups on the BHI ASCK & ASDA pins. This may be the issue - TBD.
03-12-2020 05:09 PM
Adding the pull-ups gets us farther and allows us to use existing examples that program on patches. However, I cannot get the BHI160 to report sensor data unpatched.
03-12-2020 05:28 PM
It is mandatory to upload a RAM patch to the BHI160 (after every first power-on or reset) before it can report sensor data.