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,

     

    The initial steps when adding sensors is to ensure that the communication is up and running, and also check that the sensor is ACKing the messages that comes across.

     

    You can add these to your prj.conf for more verbose printing:

    CONFIG_LOG=y
    CONFIG_SENSOR_LOG_LEVEL_DBG=y
    CONFIG_I2C_LOG_LEVEL_DBG=y

     

    However, if there is no ACK on the I2C lines, you will only get the prompt "Device bmi270@68 is not ready".

     

    Kind regards,

    Håkon

Children
Related