04-05-2023 09:18 AM - edited 04-05-2023 09:25 AM
Hi,
I am currently working with an old library 2.53.2 and got it working, upgraded to v2.71.8 and suddenly everything broke, I have two major issues, which I have a solution for on
1) bmi270_init() does not finish correctly, the ASIC does not initialize.
- The/* Wait till ASIC is initialized */
dev->delay_us(150000, dev->intf_ptr); was removed from write_config_file. When adding that back, it works. What could be the reason for this?
2) The enable/disable sensor sometimes crashes with communication error, this does not happen in old version (same I2C read/write functions and parameters), I have noticed one difference in the driver:
- The bmi2_set_regs function writes per byte if aps is enabled in old version, but not in new version.
This must have been extensively tested, so what is the reason for this errors?
Solved! Go to Solution.
04-05-2023 12:56 PM
Hi jensb1,
For the waiting time after config file loading, we will check the delay time between odl version and new version.
Enable/disable sensor, we could operate it normal without error, you can compare the difference with example code.
After writing operation, delay time depends on the power mode.
04-05-2023 06:51 PM
Ok, i think i have resolved everything. Thanks
04-06-2023 03:26 AM
Welcome, jensb1.