BMI270 I2C init error

[Current settings]
1. interface: I2C fast mode 400Khz
2. address: 0x68

[Problem]
As shown in the attached, -2, -9 error code is generated when BMI270 is initialized during initial boot of the terminal

Afterwards, if bmi270 is reinitialized, normal booting and reading sensor values (retry is random, but usually booting normally after about two times)

[Code]
rslt = bmi270_init(&bmi270Dev);
bmi2_error_codes_print_result(rslt); --> Outputs code generated here

I can't determine what the error code number is. I ask for your help me.
Best reply by BSTRobin

Hi mgchoi,

-2 return value means communication error. If communication error occurs, loading config file failed and return -9.
You can check your code in bmi2_interface_init() function.

View original
4 replies
Resolved