This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I want to test BMI160 connected to NRF52840 over I2C using nrf_connect_sdk 1.4.1

While using NRF52840 SDK with twi_scanner i am able to see i2c address 0x68, but while using zephyr unable to get the data.

I have seen I can configure i2c pins in board.dts and board.overlay file, but I would like to know the procedure configure the SCL and SDA pin with internal pull ups.

With nrf5 sdk, the i2c SCL and SDA pin are by default configured with internal pull ups but I am not sure of the configuration in zephyr!

Does NRF_CONNECT_SDK i2c SCL/SDA pin are default pulled up or are there any methods to accomplish the same?

Parents
  • Hello, 

    Have you verified that the BMI160 drivers in Zephyr support I2C? From what I can see the driver is only SPI. Ref. <NCS root>\zephyr\dts\bindings\sensor\bosch,bmi160.yaml.

    I see you have another case regarding the same topic (case #261533), where you use ADXL345. Have you been successful in using this sensor? E.g via sensor samples in zephyr\samples\sensor\adxl362, and use drivers for adxl345 instead (zephyr\drivers\sensor\adxl345)? 

    Unfortunately I'm currently without any sensors.

    Kind regards,
    Øyvind

Reply
  • Hello, 

    Have you verified that the BMI160 drivers in Zephyr support I2C? From what I can see the driver is only SPI. Ref. <NCS root>\zephyr\dts\bindings\sensor\bosch,bmi160.yaml.

    I see you have another case regarding the same topic (case #261533), where you use ADXL345. Have you been successful in using this sensor? E.g via sensor samples in zephyr\samples\sensor\adxl362, and use drivers for adxl345 instead (zephyr\drivers\sensor\adxl345)? 

    Unfortunately I'm currently without any sensors.

    Kind regards,
    Øyvind

Children
Related