Device bmi270@68 is not ready when using nrf5340 and the BMI270 sample

I am trying to get the BMI270 working with a nrf5340 DK. I have read Unable to Connect nRF5340DK with BMI270 Over I2C - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com) and Falied to Connect nRF5340DK with BMI270 Over I2C - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com), but neither had an answer. I understand the comment that the BMI270 driver "does a lot of stuff", but that did not seem like a reasonable answer to me considering it seems to work with the nrf52833. I added the:

zephyr,concat-buf-size = <128>;

Which did not solve my issue which was that I ran the sample and got this error message:

Device bmi270@68 is not ready

Parents Reply
  • Hi, 

    This works for me:

    &i2c1 {
    status = "okay";
    compatible = "nordic,nrf-twim";
    clock-frequency = <I2C_BITRATE_FAST>;

    pinctrl-0 = <&i2c1_default>;
    pinctrl-1 = <&i2c1_sleep>;
    pinctrl-names = "default", "sleep";
    /* One-shot, contiguous transfers up to 257 bytes */
    zephyr,concat-buf-size = <257>;

    bmi270: bmi270@68 {
    status = "okay";
    compatible = "i2c-device";
    reg = <0x68>;
    label = "bmi270";
    };
    };
    &pinctrl {
    i2c1_default: i2c1_default {
    group1 {
    psels = <NRF_PSEL(TWIM_SDA, 1, 2)>,
    <NRF_PSEL(TWIM_SCL, 1, 3)>;
    bias-pull-up;
    nordic,drive-mode = <NRF_DRIVE_E0E1>;
    };
    };

    i2c1_sleep: i2c1_sleep {
    group1 {
    psels = <NRF_PSEL(TWIM_SDA, 1, 2)>,
    <NRF_PSEL(TWIM_SCL, 1, 3)>;
    low-power-enable;
    };
    };
    };

    I had a lot of difficulty with the welding. I needed to increase the pad to make the process easier.
Children
No Data
Related