Hello, I'm using a BMI270 in my project. I have to detect any movement using INT1 pin. I'm using this code to init the BMI270: imu2.chip_addr = BMI2_I2C_PRIM_ADDR; imu2.intf = BMI2_I2C_INTF; imu2.read = i2c_read_bytes; imu2.write = i2c_write_bytes; imu2.read_write_len = 128; // Initialize BMI270 if(bmi270_legacy_init(&imu2) == BMI2_OK) { // CONFIGURE ACCELEROMETER SENSOR !! Need to do it before Sensor Enable! uint8_t sensor_list[2] = { BMI2_ACCEL, MOTION_TYPE }; struct bmi2_sens_config config; config.type = BMI2_ACCEL; config.cfg.acc.odr = BMI2_ACC_ODR_100HZ; config.cfg.acc.bwp = BMI2_ACC_NORMAL_AVG4; config.cfg.acc.filter_perf = BMI2_PERF_OPT_MODE; config.cfg.acc.range = BMI2_ACC_RANGE_2G; bmi270_legacy_set_sensor_config(&config, 1, &imu2); bmi270_legacy_sensor_enable(sensor_list, 2, &imu2); motdet_setConfiguration(nvmInfo.motConfInfo, false); // No need to runtime apply conf here, will be done in motdet_init motdet_init(imu2); motdet_enable(); } The problem is that BMI270 raise alwais an INT during the startup, and the put the INT pin down(I also analyzed it with an oscilloscope). Why BMI270 raise and INT during the startup? Thanks a lot!
... View more