Hi Bsoch Sensortec Community I've done more testing/invetigation today and I found the following: BMI270 is only triggering interrupt if TAP is enabled. This means if I enable FLAT only, this won't work - I need to enable TAP as well to make it work. See below my code. Is this an intented behaviour? struct bmi2_sens_int_config sens_int = {.type = BMI2_FLAT, .hw_int_pin = BMI2_INT1};
/* Get default configurations for the type of feature selected. */
struct bmi2_sens_config config;
config.type = BMI2_FLAT;
config.cfg.flat.hold_time = 1;
config.cfg.flat.theta = 0x33;
config.cfg.flat.hysteresis = 1;
config.cfg.flat.blocking = 0;
rslt = bmi270_legacy_set_sensor_config(&config, 1, &ss_sens);
bmi2_error_codes_print_result(rslt);
rslt = bmi270_legacy_get_sensor_config(&config, 1, &ss_sens);
bmi2_error_codes_print_result(rslt);
rslt = bmi270_legacy_map_feat_int(&sens_int, 1, &ss_sens);
bmi2_error_codes_print_result(rslt); In the interrupt status, only TAP is reported - see my code below. Is this an intented behaviour? uint16_t int_status;
int8_t rslt;
rslt = bmi2_get_int_status(&int_status, &ss_sens); // int_status is always equal to 8 Am I missing something? With BMI160, I can enable one interrupt at the time with no issue. Also interrupt status reports the correct interrupt using: bmi160_get_int_status(BMI160_INT_STATUS_ALL, &int_status, &ss_sens); Can't we get all interrupts status on BMI270 at all? Thank you
... View more